Starting web2py fails silently with Cygwin python

190 views
Skip to first unread message

Razvan Teslaru

unread,
Aug 28, 2013, 6:00:20 PM8/28/13
to web...@googlegroups.com
Trying to run web2py under cygwin. Python 2.7.5 installed, plus all necessary dependencies. 

Downloaded and unzipped web2py_src.zip; when running ./web2py, it hangs for a few seconds and then exits, without any message. Initially I thought it might attempt (and fail) to spawn the GUI to get a password, but starting it with -a 'passwd' yields the same behavior. 

Tried uninstalling the cygwin python and using the regular Windows python under Cygwin -- now it works as expected, so it appears to be a Cygwin Python + web2py specific issue, but I'm not sure how to proceed from here, without any sort of error message.

Razvan Teslaru

unread,
Aug 29, 2013, 9:04:26 AM8/29/13
to web...@googlegroups.com
Update: I managed to trace execution in web2py.py until "import gluon.widget" -- execution doesn't continue in web2py.py after that line, but again, no error message.

Massimo Di Pierro

unread,
Aug 29, 2013, 9:29:53 AM8/29/13
to web...@googlegroups.com
I have experienced the same problem. Yet I do not have a windows/cygwin machine here to debug it. Can you help us and figure out exactly where in gluon/widget.py it gets stuck?

Razvan Teslaru

unread,
Aug 29, 2013, 10:34:55 AM8/29/13
to web...@googlegroups.com
This is really strange -- apparently, the execution never seems to reach gluon/widget.py at all. 

I edited widget.py and now the first line is a 'print "1"' statement, which never gets executed. Still no error messages. 

This seems to imply that the 'import gluon.widget' statement does not get executed at all.

Razvan Teslaru

unread,
Aug 29, 2013, 10:52:47 AM8/29/13
to web...@googlegroups.com
PS: I have both cygwin python and Windows python installed on the same machine, if relevant.


On Thursday, August 29, 2013 3:29:53 PM UTC+2, Massimo Di Pierro wrote:

Massimo Di Pierro

unread,
Aug 29, 2013, 2:56:24 PM8/29/13
to web...@googlegroups.com
very weird. 

Niphlod

unread,
Aug 29, 2013, 3:03:53 PM8/29/13
to web...@googlegroups.com
isn't it related to tk and cygwin being a little bit stubborn ?
see http://stackoverflow.com/questions/9393462/cannot-launch-git-gui-using-cygwin-on-windows

Razvan Teslaru

unread,
Aug 29, 2013, 3:36:03 PM8/29/13
to web...@googlegroups.com
Interesting; I tried following the solution outlined there (installed xinit, started X Server, export DISPLAY=:0.0), but the behavior remains exactly the same.

In any case, ./web2py -a "passwd" (which behaves the same way under X too) should not even attempt to bring up any GUI at all.

Razvan Teslaru

unread,
Aug 29, 2013, 4:37:52 PM8/29/13
to web...@googlegroups.com
Here is the stack trace:

  /usr/lib/python2.7/bdb.py(400)run()
-> exec cmd in globals, locals
  <string>(1)<module>()
  /home/eraztes/web2py/web2py.py(19)<module>()
-> import gluon.widget
  /home/eraztes/web2py/gluon/__init__.py(15)<module>()
-> from globals import current
  /home/eraztes/web2py/gluon/globals.py(21)<module>()
-> from html import xmlescape, TABLE, TR, PRE, URL
  /home/eraztes/web2py/gluon/html.py(28)<module>()
-> from utils import web2py_uuid, simple_hash, compare
  /home/eraztes/web2py/gluon/utils.py(16)<module>()
-> import uuid
  /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(353)<module>()
-> if hasattr(lib, 'uuid_generate_random'):
  /usr/lib/python2.7/ctypes/__init__.py(378)__getattr__()
-> func = self.__getitem__(name)
> /usr/lib/python2.7/ctypes/__init__.py(383)__getitem__()
-> func = self._FuncPtr((name_or_ordinal, self))

-- execution stops here without any error message. Cannot 'step' further.

Full trace:

eraztes@mycomputer ~/web2py
$ python -m pdb web2py.py
> /home/eraztes/web2py/web2py.py(4)<module>()
-> import os
(Pdb) next
> /home/eraztes/web2py/web2py.py(5)<module>()
-> import sys
(Pdb)
> /home/eraztes/web2py/web2py.py(7)<module>()
-> if '__file__' in globals():
(Pdb)
> /home/eraztes/web2py/web2py.py(8)<module>()
-> path = os.path.dirname(os.path.abspath(__file__))
(Pdb)
> /home/eraztes/web2py/web2py.py(9)<module>()
-> print "1"
(Pdb)
1
> /home/eraztes/web2py/web2py.py(14)<module>()
-> os.chdir(path)
(Pdb)
> /home/eraztes/web2py/web2py.py(15)<module>()
-> print path
(Pdb)
/home/eraztes/web2py
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(16)<module>()
-> sys.path = [path] + [p for p in sys.path if not p == path]
(Pdb)
> /home/eraztes/web2py/web2py.py(17)<module>()
-> print sys.path
(Pdb)
['/home/eraztes/web2py', '', '/usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
> /home/eraztes/web2py/web2py.py(19)<module>()
-> import gluon.widget
(Pdb) step
--Call--
> /home/eraztes/web2py/gluon/__init__.py(11)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/__init__.py(11)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/__init__.py(13)<module>()
-> __all__ = ['A', 'B', 'BEAUTIFY', 'BODY', 'BR', 'CAT', 'CENTER', 'CLEANUP', 'CODE', 'CRYPT', 'DAL', 'DIV', 'EM', 'EMBED', 'FIELDSET', 'FORM', 'Field', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'HEAD', 'HR', 'HTML', 'HTTP', 'I', 'IFRAME', 'IMG', 'INPUT', 'IS_ALPHANUMERIC', 'IS_DATE', 'IS_DATETIME', 'IS_DATETIME_IN_RANGE', 'IS_DATE_IN_RANGE', 'IS_DECIMAL_IN_RANGE', 'IS_EMAIL', 'IS_EMPTY_OR', 'IS_EQUAL_TO', 'IS_EXPR', 'IS_FLOAT_IN_RANGE', 'IS_IMAGE', 'IS_JSON', 'IS_INT_IN_RANGE', 'IS_IN_DB', 'IS_IN_SET', 'IS_IPV4', 'IS_LENGTH', 'IS_LIST_OF', 'IS_LOWER', 'IS_MATCH', 'IS_NOT_EMPTY', 'IS_NOT_IN_DB', 'IS_NULL_OR', 'IS_SLUG', 'IS_STRONG', 'IS_TIME', 'IS_UPLOAD_FILENAME', 'IS_UPPER', 'IS_URL', 'LABEL', 'LEGEND', 'LI', 'LINK', 'LOAD', 'MARKMIN', 'MENU', 'META', 'OBJECT', 'OL', 'ON', 'OPTGROUP', 'OPTION', 'P', 'PRE', 'SCRIPT', 'SELECT', 'SPAN', 'SQLFORM', 'SQLTABLE', 'STRONG', 'STYLE', 'TABLE', 'TAG', 'TBODY', 'TD', 'TEXTAREA', 'TFOOT', 'TH', 'THEAD', 'TITLE', 'TR', 'TT', 'UL', 'URL', 'XHTML', 'XML', 'redirect', 'current', 'embed64']
(Pdb)
> /home/eraztes/web2py/gluon/__init__.py(15)<module>()
-> from globals import current
(Pdb)
--Call--
> /home/eraztes/web2py/gluon/globals.py(15)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/globals.py(15)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/globals.py(17)<module>()
-> from storage import Storage, List
(Pdb)
--Call--
> /home/eraztes/web2py/gluon/storage.py(13)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/storage.py(13)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/storage.py(15)<module>()
-> import cPickle
(Pdb)
--Call--
> <string>(1)<module>()
(Pdb)
> <string>(1)<module>()
(Pdb)
--Return--
> <string>(1)<module>()->None
(Pdb) u
> /home/eraztes/web2py/gluon/storage.py(15)<module>()
-> import cPickle
(Pdb) next
> /home/eraztes/web2py/gluon/storage.py(16)<module>()
-> import portalocker
(Pdb)
> /home/eraztes/web2py/gluon/storage.py(18)<module>()
-> __all__ = ['List', 'Storage', 'Settings', 'Messages',
(Pdb)
> /home/eraztes/web2py/gluon/storage.py(19)<module>()
-> 'StorageList', 'load_storage', 'save_storage']
(Pdb)
> /home/eraztes/web2py/gluon/storage.py(21)<module>()
-> DEFAULT = lambda:0
(Pdb)
> /home/eraztes/web2py/gluon/storage.py(23)<module>()
-> class Storage(dict):
(Pdb) u
> /home/eraztes/web2py/gluon/globals.py(17)<module>()
-> from storage import Storage, List
(Pdb) next
> /home/eraztes/web2py/gluon/globals.py(18)<module>()
-> from streamer import streamer, stream_file_or_304_or_206, DEFAULT_CHUNK_SIZE
(Pdb)
> /home/eraztes/web2py/gluon/globals.py(19)<module>()
-> from xmlrpc import handler
(Pdb)
> /home/eraztes/web2py/gluon/globals.py(20)<module>()
-> from contenttype import contenttype
(Pdb)
> /home/eraztes/web2py/gluon/globals.py(21)<module>()
-> from html import xmlescape, TABLE, TR, PRE, URL
(Pdb) step
--Call--
> /home/eraztes/web2py/gluon/html.py(8)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/html.py(8)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/html.py(10)<module>()
-> import cgi
(Pdb)
--Call--
> /usr/lib/python2.7/cgi.py(16)<module>()
-> """
(Pdb)
> /usr/lib/python2.7/cgi.py(16)<module>()
-> """
(Pdb)
> /usr/lib/python2.7/cgi.py(31)<module>()
-> __version__ = "2.6"
(Pdb)
> /usr/lib/python2.7/cgi.py(37)<module>()
-> from operator import attrgetter
(Pdb)
> /usr/lib/python2.7/cgi.py(38)<module>()
-> import sys
(Pdb)
> /usr/lib/python2.7/cgi.py(39)<module>()
-> import os
(Pdb)
> /usr/lib/python2.7/cgi.py(40)<module>()
-> import UserDict
(Pdb)
> /usr/lib/python2.7/cgi.py(41)<module>()
-> import urlparse
(Pdb)
> /usr/lib/python2.7/cgi.py(43)<module>()
-> from warnings import filterwarnings, catch_warnings, warn
(Pdb)
> /usr/lib/python2.7/cgi.py(44)<module>()
-> with catch_warnings():
(Pdb) u
> /home/eraztes/web2py/gluon/html.py(10)<module>()
-> import cgi
(Pdb) next
> /home/eraztes/web2py/gluon/html.py(11)<module>()
-> import os
(Pdb)
> /home/eraztes/web2py/gluon/html.py(12)<module>()
-> import re
(Pdb)
> /home/eraztes/web2py/gluon/html.py(13)<module>()
-> import copy
(Pdb)
> /home/eraztes/web2py/gluon/html.py(14)<module>()
-> import types
(Pdb)
> /home/eraztes/web2py/gluon/html.py(15)<module>()
-> import urllib
(Pdb)
> /home/eraztes/web2py/gluon/html.py(16)<module>()
-> import base64
(Pdb)
> /home/eraztes/web2py/gluon/html.py(17)<module>()
-> import sanitizer
(Pdb)
> /home/eraztes/web2py/gluon/html.py(18)<module>()
-> import itertools
(Pdb)
> /home/eraztes/web2py/gluon/html.py(19)<module>()
-> import decoder
(Pdb)
> /home/eraztes/web2py/gluon/html.py(20)<module>()
-> import copy_reg
(Pdb)
> /home/eraztes/web2py/gluon/html.py(21)<module>()
-> import cPickle
(Pdb)
> /home/eraztes/web2py/gluon/html.py(22)<module>()
-> import marshal
(Pdb)
> /home/eraztes/web2py/gluon/html.py(24)<module>()
-> from HTMLParser import HTMLParser
(Pdb)
> /home/eraztes/web2py/gluon/html.py(25)<module>()
-> from htmlentitydefs import name2codepoint
(Pdb)
> /home/eraztes/web2py/gluon/html.py(27)<module>()
-> from storage import Storage
(Pdb)
> /home/eraztes/web2py/gluon/html.py(28)<module>()
-> from utils import web2py_uuid, simple_hash, compare
(Pdb) step
--Call--
> /home/eraztes/web2py/gluon/utils.py(10)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/utils.py(10)<module>()
-> """
(Pdb)
> /home/eraztes/web2py/gluon/utils.py(12)<module>()
-> import threading
(Pdb)
> /home/eraztes/web2py/gluon/utils.py(13)<module>()
-> import struct
(Pdb)
> /home/eraztes/web2py/gluon/utils.py(14)<module>()
-> import hashlib
(Pdb)
> /home/eraztes/web2py/gluon/utils.py(15)<module>()
-> import hmac
(Pdb)
--Call--
> /usr/lib/python2.7/hmac.py(4)<module>()
-> """
(Pdb)
> /usr/lib/python2.7/hmac.py(4)<module>()
-> """
(Pdb)
> /usr/lib/python2.7/hmac.py(6)<module>()
-> import warnings as _warnings
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb)
> /usr/lib/python2.7/hmac.py(8)<module>()
-> trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
(Pdb) u
> /home/eraztes/web2py/gluon/utils.py(15)<module>()
-> import hmac
(Pdb) next
> /home/eraztes/web2py/gluon/utils.py(16)<module>()
-> import uuid
(Pdb) step
--Call--
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(45)<module>()
-> """
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(45)<module>()
-> """
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(47)<module>()
-> __author__ = 'Ka-Ping Yee <pi...@zesty.ca>'
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(48)<module>()
-> __date__ = '$Date: 2006/06/12 23:15:40 $'.split()[1].replace('/', '-')
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(49)<module>()
-> __version__ = '$Revision: 1.30 $'.split()[1]
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(52)<module>()
-> 'reserved for NCS compatibility', 'specified in RFC 4122',
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(53)<module>()
-> 'reserved for Microsoft compatibility', 'reserved for future definition']
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(55)<module>()
-> class UUID(object):
(Pdb)
--Call--
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(55)UUID()
-> class UUID(object):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(55)UUID()
-> class UUID(object):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(95)UUID()
-> """
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(97)UUID()
-> def __init__(self, hex=None, bytes=None, fields=None, int=None,
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(98)UUID()
-> version=None):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(167)UUID()
-> def __cmp__(self, other):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(172)UUID()
-> def __hash__(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(175)UUID()
-> def __int__(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(178)UUID()
-> def __repr__(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(181)UUID()
-> def __setattr__(self, name, value):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(184)UUID()
-> def __str__(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(189)UUID()
-> def get_bytes(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(195)UUID()
-> bytes = property(get_bytes)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(197)UUID()
-> def get_fields(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(201)UUID()
-> fields = property(get_fields)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(203)UUID()
-> def get_time_low(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(206)UUID()
-> time_low = property(get_time_low)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(208)UUID()
-> def get_time_mid(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(211)UUID()
-> time_mid = property(get_time_mid)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(213)UUID()
-> def get_time_hi_version(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(216)UUID()
-> time_hi_version = property(get_time_hi_version)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(218)UUID()
-> def get_clock_seq_hi_variant(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(221)UUID()
-> clock_seq_hi_variant = property(get_clock_seq_hi_variant)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(223)UUID()
-> def get_clock_seq_low(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(226)UUID()
-> clock_seq_low = property(get_clock_seq_low)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(228)UUID()
-> def get_time(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(232)UUID()
-> time = property(get_time)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(234)UUID()
-> def get_clock_seq(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(238)UUID()
-> clock_seq = property(get_clock_seq)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(240)UUID()
-> def get_node(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(243)UUID()
-> node = property(get_node)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(245)UUID()
-> def get_hex(self):
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(248)UUID()
-> hex = property(get_hex)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(250)UUID()
-> def get_urn(self):
(Pdb) u
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(55)<module>()
-> class UUID(object):
(Pdb)
> /home/eraztes/web2py/gluon/utils.py(16)<module>()
-> import uuid
(Pdb) d
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(55)<module>()
-> class UUID(object):
(Pdb) next
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(274)<module>()
-> def _ifconfig_getnode():
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(288)<module>()
-> def _ipconfig_getnode():
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(309)<module>()
-> def _netbios_getnode():
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(341)<module>()
-> _uuid_generate_random = _uuid_generate_time = _UuidCreate = None
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(342)<module>()
-> try:
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(343)<module>()
-> import ctypes, ctypes.util
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(344)<module>()
-> _buffer = ctypes.create_string_buffer(16)
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(348)<module>()
-> for libname in ['uuid', 'c']:
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(349)<module>()
-> try:
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(350)<module>()
-> lib = ctypes.CDLL(ctypes.util.find_library(libname))
(Pdb)
> /usr/lib/python2.7/site-packages/uuid-1.30-py2.7.egg/uuid.py(353)<module>()
-> if hasattr(lib, 'uuid_generate_random'):
(Pdb) step
--Call--
> /usr/lib/python2.7/ctypes/__init__.py(375)__getattr__()
-> def __getattr__(self, name):
(Pdb)
> /usr/lib/python2.7/ctypes/__init__.py(376)__getattr__()
-> if name.startswith('__') and name.endswith('__'):
(Pdb)
> /usr/lib/python2.7/ctypes/__init__.py(378)__getattr__()
-> func = self.__getitem__(name)
(Pdb)
--Call--
> /usr/lib/python2.7/ctypes/__init__.py(382)__getitem__()
-> def __getitem__(self, name_or_ordinal):
(Pdb)
> /usr/lib/python2.7/ctypes/__init__.py(383)__getitem__()
-> func = self._FuncPtr((name_or_ordinal, self))
(Pdb)

eraztes@mycomputer ~/web2py
$

Massimo Di Pierro

unread,
Aug 29, 2013, 9:14:34 PM8/29/13
to web...@googlegroups.com
I think the version in trunk (and the nightly build) does not.

Razvan Teslaru

unread,
Aug 31, 2013, 3:10:39 PM8/31/13
to web...@googlegroups.com
I uninstalled Cygwin and the Windows Python, and reinstalled Cygwin to make sure there's no conflict between the two Python versions. Unfortunately I get the same behavior. As mentioned before, the last statement traced is "func = self._FuncPtr((name_or_ordinal, self))".

Raul Romay Barrero

unread,
Nov 22, 2013, 3:51:41 PM11/22/13
to web...@googlegroups.com
I had exactly the same behavior when using cygwin x64. 

I installed cygwin x32 version and web2py was working ok (but AVG detected python.exe as a virus...)

Regards,
Raúl.


Razvan Teslaru

unread,
Nov 23, 2013, 9:30:20 AM11/23/13
to web...@googlegroups.com, Raul Romay Barrero
Interesting — never thought of that. Wondering if it’s cygwin or web2py that’s causing the problem. 

Thanks for the feedback — hope this helps someone — in the meantime I gave up Win altogether and moved to MacOS.  

-- 
Razvan 
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Gqt6trAQd0Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kiran Subbaraman

unread,
Feb 12, 2014, 12:40:13 AM2/12/14
to web...@googlegroups.com
Thanks for this observation; I was trying to run this in cygwin64, and no luck. cygwin32 makes it work.
Reply all
Reply to author
Forward
0 new messages