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 vstinner
Recipients barry, orsenthil, vdupras, vinay.sajip, vstinner
Date 2014-06-03.13:18:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401801499.59.0.362722720186.issue21643@psf.upfronthosting.co.za>
In-reply-to
Content
Full traceback (I modified venv/__main__.py):

haypo@smithers$ /opt/py34/bin/python3 -m venv --upgrade ENV
Error: [Errno 17] File exists: '/home/haypo/ENV/lib' -> '/home/haypo/ENV/lib64'
Traceback (most recent call last):
  File "/opt/py34/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/py34/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/py34/lib/python3.4/venv/__main__.py", line 6, in <module>
    main()
  File "/opt/py34/lib/python3.4/venv/__init__.py", line 438, in main
    builder.create(d)
  File "/opt/py34/lib/python3.4/venv/__init__.py", line 82, in create
    context = self.ensure_directories(env_dir)
  File "/opt/py34/lib/python3.4/venv/__init__.py", line 147, in ensure_directories
    os.symlink(p, link_path)
FileExistsError: [Errno 17] File exists: '/home/haypo/ENV/lib' -> '/home/haypo/ENV/lib64'

It looks like a regression introduced by the issue #21197.

Attached patch should fix it.
History
Date User Action Args
2014-06-03 13:18:19vstinnersetrecipients: + vstinner, barry, vinay.sajip, orsenthil, vdupras
2014-06-03 13:18:19vstinnersetmessageid: <1401801499.59.0.362722720186.issue21643@psf.upfronthosting.co.za>
2014-06-03 13:18:19vstinnerlinkissue21643 messages
2014-06-03 13:18:19vstinnercreate