Potential Python 3.3.2 pyvenv bug on Windows

P

peter

I've recently hit an issue with pyvenv that is causing AttributeErrors in other packages on Windows (see https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4). Here's what I believe is going on:

On Windows, the pyvenv pydoc script has a .py extension - so import finds it instead of the system's pydoc module. On Linux, the pyvenv pydoc script doesn't have an extension - so import finds the system's pydoc module.

I believe the Windows pyvenv pydoc.py script should be renamed to pydocs.py.

Has anyone else hit this issue?

Peter
 
F

Fábio Santos

I've recently hit an issue with pyvenv that is causing AttributeErrors inother packages on Windows (see https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4). Here's what I believe is going on:

On Windows, the pyvenv pydoc script has a .py extension - so import findsit instead of the system's pydoc module. On Linux, the pyvenv pydoc script doesn't have an extension - so import finds the system's pydoc module.

I believe the Windows pyvenv pydoc.py script should be renamed to pydocs.py.

Has anyone else hit this issue?

Peter

Don't think that's so good of a fix. Following documentation for
open-source software is already hard enough on windows, people will
not be able to use pydoc.py because it was renamed.

It would be slightly better to use pydoc.bat (which could then call
pydocs.py), but even so it would be pretty bad.
 
P

peter

Agreed. I did submit a bug report. If the core developers fix this, I suspect they will do so in a manner that does not break existing docs. However, my workaround (rename the pyvenv created scripts\pydoc.py file) should suffice for those who need the problem solved now.

Take care,

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top