Can't create virtual environments using Python 3.0.1 #381

Closed
tsroten opened this Issue Jan 3, 2013 · 7 comments

Comments

Projects
None yet
3 participants
@tsroten

tsroten commented Jan 3, 2013

First, let me say that the problem is most likely user error. I'm rather new to using Python and virtualenv. If you could help in any way, even if just to point me in the right direction, that would be great.

I'm trying to setup a virtualenv for Python 3.0.1 for testing a module I wrote. virtualenv works on my system with Python 2.6-3.3, minus 3.0. Below is the traceback and errors I see.

Traceback (most recent call last):
  File "setup.py", line 240, in <module>
    scripts = scripts,
  File "/Users/tsr/.pythonz/pythons/CPython-3.0.1/lib/python3.0/distutils/core.py", line 135, in setup
    ok = dist.parse_command_line()
  File "/private/var/folders/4r/99792l2s55588nfqrzcck8sw0000gn/T/tmpy4Qo9u/distribute-0.6.31/build/src/setuptools/dist.py", line 232, in parse_command_line
    result = _Distribution.parse_command_line(self)
  File "/Users/tsr/.pythonz/pythons/CPython-3.0.1/lib/python3.0/distutils/dist.py", line 441, in parse_command_line
    if self.handle_display_options(option_order):
  File "/private/var/folders/4r/99792l2s55588nfqrzcck8sw0000gn/T/tmpy4Qo9u/distribute-0.6.31/build/src/setuptools/dist.py", line 673, in handle_display_options
    sys.stdout.detach(), 'utf-8', errors, newline, line_buffering)
AttributeError: 'TextIOWrapper' object has no attribute 'detach'
Something went wrong during the installation.
See the error message above.
----------------------------------------
...Installing distribute...done.
Traceback (most recent call last):
  File "/usr/local/lib/python3.3/site-packages/virtualenv.py", line 2560, in <module>
    main()
  File "/usr/local/lib/python3.3/site-packages/virtualenv.py", line 964, in main
    never_download=options.never_download)
  File "/usr/local/lib/python3.3/site-packages/virtualenv.py", line 1071, in create_environment
    search_dirs=search_dirs, never_download=never_download)
  File "/usr/local/lib/python3.3/site-packages/virtualenv.py", line 616, in install_distribute
    search_dirs=search_dirs, never_download=never_download)
  File "/usr/local/lib/python3.3/site-packages/virtualenv.py", line 583, in _install_req
    cwd=cwd)
  File "/usr/local/lib/python3.3/site-packages/virtualenv.py", line 1042, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /Users/tsr/.virtualenvs/test/bin/python30 -c "#!python
\"\"\"Bootstra...   sys.exit(main())
" failed with error code 2
@pnasrat

This comment has been minimized.

Show comment Hide comment
@pnasrat

pnasrat Jan 3, 2013

Contributor

What version of virtualenv do you have installed?

Contributor

pnasrat commented Jan 3, 2013

What version of virtualenv do you have installed?

@tsroten

This comment has been minimized.

Show comment Hide comment
@tsroten

tsroten Jan 3, 2013

The latest - 1.8.4.

tsroten commented Jan 3, 2013

The latest - 1.8.4.

@pnasrat

This comment has been minimized.

Show comment Hide comment
@pnasrat

pnasrat Jan 3, 2013

Contributor

Looks like underlying distribute expects TextIOWrapper to support detach which is 3.1 http://bugs.python.org/issue5883

Is there a specific reason you need 3.0.1 as per http://www.python.org/download/releases/3.0.1/

Python 3.0 is end-of-lifed with the release of Python 3.1.

Can you try with virtualenv --setuptools to force using setuptools

Contributor

pnasrat commented Jan 3, 2013

Looks like underlying distribute expects TextIOWrapper to support detach which is 3.1 http://bugs.python.org/issue5883

Is there a specific reason you need 3.0.1 as per http://www.python.org/download/releases/3.0.1/

Python 3.0 is end-of-lifed with the release of Python 3.1.

Can you try with virtualenv --setuptools to force using setuptools

@tsroten

This comment has been minimized.

Show comment Hide comment
@tsroten

tsroten Jan 4, 2013

Exact same error when I run virtualenv --setuptools

There is no particular reason I need 3.0.1. I had just setup tox to automatically test my code on 2.6, 2.7, 3.1, 3.2, and 3.3. 3.0 was the only version I had problems with, and I thought maybe I was doing something wrong. If getting it working becomes a hassle, I have no problem just using >=python 3.1.

tsroten commented Jan 4, 2013

Exact same error when I run virtualenv --setuptools

There is no particular reason I need 3.0.1. I had just setup tox to automatically test my code on 2.6, 2.7, 3.1, 3.2, and 3.3. 3.0 was the only version I had problems with, and I thought maybe I was doing something wrong. If getting it working becomes a hassle, I have no problem just using >=python 3.1.

@pnasrat

This comment has been minimized.

Show comment Hide comment
@pnasrat

pnasrat Jan 4, 2013

Contributor

We probably should fix this but 3.0 isn't a priority, so I'll leave open to investigate further.

Contributor

pnasrat commented Jan 4, 2013

We probably should fix this but 3.0 isn't a priority, so I'll leave open to investigate further.

@hugovk

This comment has been minimized.

Show comment Hide comment
@hugovk

hugovk Jan 20, 2018

This is old issue can be closed now because EOL Python 3.0 was dropped a long time ago.

hugovk commented Jan 20, 2018

This is old issue can be closed now because EOL Python 3.0 was dropped a long time ago.

@tsroten

This comment has been minimized.

Show comment Hide comment
@tsroten

tsroten Jan 20, 2018

Agreed, closing.

tsroten commented Jan 20, 2018

Agreed, closing.

@tsroten tsroten closed this Jan 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment