Note that there are some explanatory texts on larger screens.

plurals
  1. POUUID python import fails on Cygwin 64bits
    primarykey
    data
    text
    <p>I am running python within a virtual environment wrapper and I try to import UUID. Here is the trace of what I receive :</p> <pre><code>python -v &gt;&gt;&gt; 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 </code></pre> <p>After that, python just stops without any other warning. I tried to reinstall the library from Cygwin, but that did not help. </p> <p>Is there a way I can fix this?</p> <p>I should specify that I am using python 2.7 under Windows7 64bits.</p> <p><strong>Edit</strong> The following link helped me to find a possible eerror soure : <a href="http://bugs.python.org/issue18784">Bug python 18784</a> . But I looked at the code specified in the patch and it seems that python does not even reach that point.</p> <p><strong>Solution</strong> As I cannot 'enter the solution' because my reputation is too low, I post it as an edit here. I found the solution via the following patch : <a href="http://bugs.python.org/file20685/issue11063.patch">http://bugs.python.org/file20685/issue11063.patch</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload