I am running python inside a shell of a virtual environment and I am trying to import a UUID. Here is what I get:
python -v >>> import uuid # /home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/site-packages/uuid.pyc matches /home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/site-packages/uuid.py import uuid # precompiled from /home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/site-packages/uuid.pyc import ctypes # directory /usr/lib/python2.7/ctypes # /usr/lib/python2.7/ctypes/__init__.pyc matches /usr/lib/python2.7/ctypes/__init__.py import ctypes # precompiled from /usr/lib/python2.7/ctypes/__init__.pyc dlopen("/home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/lib-dynload/_ctypes.dll", 2); import _ctypes # dynamically loaded from /home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/lib-dynload/_ctypes.dll # /usr/lib/python2.7/struct.pyc matches /usr/lib/python2.7/struct.py import struct # precompiled from /usr/lib/python2.7/struct.pyc dlopen("/home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/lib-dynload/_struct.dll", 2); import _struct # dynamically loaded from /home/tanzaho/.virtualenvs/django_wordiz/lib/python2.7/lib-dynload/_struct.dll # /usr/lib/python2.7/ctypes/_endian.pyc matches /usr/lib/python2.7/ctypes/_endian.py import ctypes._endian # precompiled from /usr/lib/python2.7/ctypes/_endian.pyc # /usr/lib/python2.7/ctypes/util.pyc matches /usr/lib/python2.7/ctypes/util.py import ctypes.util # precompiled from /usr/lib/python2.7/ctypes/util.pyc
After that, the python just stops without any other warning. I tried reinstalling the library from Cygwin, but that didn't help.
Is there any way to fix this?
I must indicate that I am using python 2.7 under 64-bit versions of Windows7.
Edit The following link helped me find a possible eerror soure: Bython python 18784 . But I looked at the code indicated in the patch, and it seems that python does not even reach this point.
Solution Because I cannot “enter the solution” because my reputation is too low, I post it as an edit here. I found a solution through the following patch: http://bugs.python.org/file20685/issue11063.patch
python uuid cygwin
Tanzaho
source share