virtualenv 15.0.2 breaks "m quickinstall" on Windows

Issue #554 resolved
RogerHaase
created an issue

virtualenv 15.0.2 creates a "tcl" directory in the moin2 virtual env. When "m quickinstall" is executed, a traceback occurs:

Traceback (most recent call last):
  File "quickinstall.py", line 147, in <module>
    QuickInstall(os.path.dirname(os.path.realpath(sys.argv[0])), venv=args.venv, download_cache=args.download_cache)()
  File "quickinstall.py", line 66, in __call__
    self.do_venv()
  File "quickinstall.py", line 77, in do_venv
    virtualenv.create_environment(self.dir_venv)
  File "C:\Python27\lib\site-packages\virtualenv.py", line 924, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "C:\Python27\lib\site-packages\virtualenv.py", line 1136, in install_python
    copy_tcltk(prefix, home_dir, symlink)
  File "C:\Python27\lib\site-packages\virtualenv.py", line 1077, in copy_tcltk
    copyfileordir(srcdir, dstdir, symlink)
  File "C:\Python27\lib\site-packages\virtualenv.py", line 327, in copyfileordir
    shutil.copytree(src, dest, symlink)
  File "C:\Python27\lib\shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "C:\Python27\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 183] Cannot create a file when that file already exists: 'C:\\Bitbucket\\moin2-venv-python/tcl/tcl8.5'
Error: quickinstall passed non-zero return code: 1

See https://github.com/pypa/virtualenv/issues/929

Workarounds:

  • delete <venv>/tcl before running m quickinstall
  • install virtualenv 15.0.1 or earlier (or >15.0.2 when released) in the main Python library

Comments (1)

  1. Log in to comment