This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2008-09-09.06:56:36
SpamBayes Score 8.3135815e-10
Marked as misclassified No
Message-id <1220943399.18.0.51803892566.issue3812@psf.upfronthosting.co.za>
In-reply-to
Content
Hello. I failed to build py3k on cygwin (configure --without-threads).
It's because io.py imports _dummy_thread, and it imports traceback, and
it tries to import c-module itertools which is not built yet.

Attached file is workaround patch.

/////////////////////////////

Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "/home/WhiteRabbit/python-dev/py3k/Lib/io.py", line 64, in <module>
    from _thread import allocate_lock as Lock
ImportError: No module named _thread

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/WhiteRabbit/python-dev/py3k/Lib/io.py", line 66, in <module>
    from _dummy_thread import allocate_lock as Lock
  File "/home/WhiteRabbit/python-dev/py3k/Lib/_dummy_thread.py", line
19, in <mo
dule>
    import traceback as _traceback
  File "/home/WhiteRabbit/python-dev/py3k/Lib/traceback.py", line 6, in
<module>

    import itertools
ImportError: No module named itertools
Aborted (core dumped)
History
Date User Action Args
2008-09-09 06:56:39ocean-citysetrecipients: + ocean-city
2008-09-09 06:56:39ocean-citysetmessageid: <1220943399.18.0.51803892566.issue3812@psf.upfronthosting.co.za>
2008-09-09 06:56:38ocean-citylinkissue3812 messages
2008-09-09 06:56:37ocean-citycreate