Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment created from another environment ignores --no-pip, --no-wheel, --no-setuptools options #1712

Closed
xvik opened this issue Mar 11, 2020 · 15 comments · Fixed by #1713
Closed
Labels

Comments

@xvik
Copy link

@xvik xvik commented Mar 11, 2020

Issue

Affected: virtualenv 20.0.x

When environment created from another environment with --no-pip option, pip is still installed.
It is working with virtualenv 16.x (regression)

Case:

  • Create first environt and install vitrtualenv inside it:
    virtualenv one
    one/bin/python -m pip install virtualenv

  • Create second environment with no pip:
    one/bin/python -m virtualenv two --no-pip

Result: pip installed
Expected: no pip should be installed

(same with other flags)

Environment

  • OS: ubuntu 19.10
  • packages: python3, python3-pip
  • pip updated, virtualenv installed with pip

Output of the virtual environment creation

The above case execution:

xvik@xvik:/tmp$ python3 --version
Python 3.7.5
xvik@xvik:/tmp$ python3 -m pip --version
pip 20.0.2 from /home/xvik/.local/lib/python3.7/site-packages/pip (python 3.7)
xvik@xvik:/tmp$ python3 -m virtualenv --version
virtualenv 20.0.10 from /home/xvik/.local/lib/python3.7/site-packages/virtualenv/__init__.py

xvik@xvik:/tmp$ python3 -m virtualenv one
created virtual environment CPython3.7.5.final.0-64 in 140ms
  creator CPython3Posix(dest=/tmp/one, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/xvik/.local/share/virtualenv/seed-app-data/v1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

xvik@xvik:/tmp$ one/bin/python -m pip install virtualenv
Collecting virtualenv
  Using cached virtualenv-20.0.10-py2.py3-none-any.whl (4.6 MB)
Collecting six<2,>=1.9.0
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting importlib-metadata<2,>=0.12; python_version < "3.8"
  Using cached importlib_metadata-1.5.0-py2.py3-none-any.whl (30 kB)
Collecting filelock<4,>=3.0.0
  Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting appdirs<2,>=1.4.3
  Using cached appdirs-1.4.3-py2.py3-none-any.whl (12 kB)
Processing /home/xvik/.cache/pip/wheels/a2/19/da/a15d4e2bedf3062c739b190d5cb5b7b2ecfbccb6b0d93c861b/distlib-0.3.0-py3-none-any.whl
Collecting zipp>=0.5
  Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
Installing collected packages: six, zipp, importlib-metadata, filelock, appdirs, distlib, virtualenv
Successfully installed appdirs-1.4.3 distlib-0.3.0 filelock-3.0.12 importlib-metadata-1.5.0 six-1.14.0 virtualenv-20.0.10 zipp-3.1.0

xvik@xvik:/tmp$ one/bin/python -m virtualenv two --no-pip -v
find interpreter for spec PythonSpec(path=/tmp/one/bin/python)
proposed PythonInfo(spec=CPython3.7.5.final.0-64, system=/usr/bin/python3.7, exe=/tmp/one/bin/python, platform=linux, version='3.7.5 (default, Nov 20 2019, 09:21:52) \n[GCC 9.2.1 20191008]', encoding_fs_io=utf-8-UTF-8)
create virtual environment via CPython3Posix(dest=/tmp/two, clear=False, global=False)
add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/xvik/.local/share/virtualenv/seed-app-data/v1)
changing mode of /tmp/two/bin/wheel to 755
changing mode of /tmp/two/bin/wheel-3.7 to 755
changing mode of /tmp/two/bin/wheel3 to 755
changing mode of /tmp/two/bin/easy_install to 755
changing mode of /tmp/two/bin/easy_install-3.7 to 755
changing mode of /tmp/two/bin/easy_install3 to 755
changing mode of /tmp/two/bin/pip3 to 755
changing mode of /tmp/two/bin/pip-3.7 to 755
changing mode of /tmp/two/bin/pip to 755
add activators for Bash, CShell, Fish, PowerShell, Python, Xonsh
created virtual environment CPython3.7.5.final.0-64 in 133ms
  creator CPython3Posix(dest=/tmp/two, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/xvik/.local/share/virtualenv/seed-app-data/v1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

xvik@xvik:/tmp$ two/bin/python -m pip --version
pip 20.0.2 from /tmp/two/lib/python3.7/site-packages/pip (python 3.7)
@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Mar 19, 2020

Hello, a fix for this issue has been released via virtualenv 20.0.11; see https://pypi.org/project/virtualenv/20.0.11/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-11-2020-03-18). Please give a try and report back if your issue has not been addressed; if not, please comment here, and we'll reopen the ticket. We want to apologize for the inconvenience this has caused you and say thanks for having patience while we resolve the unexpected bugs with this new major release.
thanks

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 12, 2020

hi,
sorry, i don't know if i should create a new issue or not. but the version 20.0.23 of virtualenv causes a freeze in the command mkvirtualenv of the package virtualenvwrapper ([website] version: 4.8.4 (https://virtualenvwrapper.readthedocs.io/en/latest/index.html#)). after searching using the keyword create virtual environment via CPython3Posix. none has reported mkvirualenv freezing.

$ mkvirtualenv test2 -v
find interpreter for spec PythonSpec(path=the-correct-path-to-python)
proposed PythonInfo(spec=CPython3.7.0.final.0-64, exe=/export/livia/home/vision/sbelharbi/anaconda3/bin/python, platform=linux, version='3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) \n[GCC 7.3.0]', encoding_fs_io=utf-8-utf-8)
create virtual environment via CPython3Posix(dest=the-correct-path-to-the-env-folder/Venvs/test2, clear=False, global=False)
add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=correc-path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1)

downgrading virtualenv to 16.0.0 which happens to work correctly on another server, allowed mkvirtualenv to work correctly. i use python 3.7.0 installed within conda3. let me know if you need more details. this is the first time virtualenvwrapper hangs.
thanks

@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Jun 12, 2020

please do run the command by setting the environment variable PYTHON_VERBOSE=5, to see more information about what's hanging.

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 12, 2020

i run with PYTHON_VERBOSE=5 with and without -v and it showed the same thing. let me know if something is wrong. thanks

$PYTHON_VERBOSE=5

$ mkvirtualenv test4 -v
find interpreter for spec PythonSpec(path=correct-path)
proposed PythonInfo(spec=CPython3.7.0.final.0-64, exe=home-path/anaconda3/bin/python, platform=linux, version='3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) \n[GCC 7.3.0]', encoding_fs_io=utf-8-utf-8)
create virtual environment via CPython3Posix(dest=home-path/Venvs/test4, clear=False, global=False)
add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=home-path/.local/share/virtualenv/seed-app-data/v1.0.1)

@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Jun 12, 2020

Sorry VIRTUALENV_VERBOSE.

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 12, 2020

sorry, it seems to give the same thing. nothing is new... can you reproduce the problem from your side?

$ echo $VIRTUALENV_VERBOSE
5
$ mkvirtualenv test6 -v
find interpreter for spec PythonSpec(path=path-home/anaconda3/bin/python)
proposed PythonInfo(spec=CPython3.7.0.final.0-64, exe=path-home/anaconda3/bin/python, platform=linux, version='3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) \n[GCC 7.3.0]', encoding_fs_io=utf-8-utf-8)
create virtual environment via CPython3Posix(dest=path-home/Venvs/test6, clear=False, global=False)
add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=path-home/.local/share/virtualenv/seed-app-data/v1.0.1)

@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Jun 13, 2020

Eh, dunno what wrapper you're using but make it pass more verbosity flags.

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 13, 2020

i'm using virtualenvwrapper site 4.8.4.

the command that hangs mkvirtualenv does not have a verbosity flag according to its doc. i tried -v and it seems to help.

when i used mkvirtualenv --help, i get this:

$ mkvirtualenv --help
Usage: mkvirtualenv [-a project_path] [-i package] [-r requirements_file] [virtualenv options] env_name

 -a project_path

    Provide a full path to a project directory to associate with
    the new environment.

 -i package

    Install a package after the environment is created.
    This option may be repeated.

 -r requirements_file

    Provide a pip requirements file to install a base set of packages
    into the new environment.

virtualenv help:

usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed]
                  [--activators comma_sep_list] [--clear] [--system-site-packages] [--symlinks | --copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip]
                  [--no-setuptools] [--no-wheel] [--symlink-app-data] [--prompt prompt] [-h]
                  dest

optional arguments:
  --version                     display the version of the virtualenv package and it's location, then exit
  --with-traceback              on failure also display the stacktrace internals of virtualenv (default: False)
  --app-data APP_DATA           a data folder used as cache by the virtualenv (default: /export/livia/home/vision/sbelharbi/.local/share/virtualenv)
  --reset-app-data              start with empty app data folder (default: False)
  -h, --help                    show this help message and exit

verbosity:
  verbosity = verbose - quiet, default INFO, mapping => CRITICAL=0, ERROR=1, WARNING=2, INFO=3, DEBUG=4, NOTSET=5

  -v, --verbose                 increase verbosity (default: 2)
  -q, --quiet                   decrease verbosity (default: 0)

discovery:
  discover and provide a target interpreter

  --discovery {builtin}         interpreter discovery method (default: builtin)
  -p py, --python py            target interpreter for which to create a virtual (either absolute path or identifier string) (default: /export/livia/home/vision/sbelharbi/anaconda3/bin/python)

creator:
  options for creator builtin

  --creator {builtin,cpython3-posix,venv}
                                create environment via (builtin = cpython3-posix) (default: builtin)
  dest                          directory to create virtualenv at
  --clear                       remove the destination directory if exist before starting (will overwrite files otherwise) (default: False)
  --system-site-packages        give the virtual environment access to the system site-packages dir (default: False)
  --symlinks                    try to use symlinks rather than copies, when symlinks are not the default for the platform (default: True)
  --copies, --always-copy       try to use copies rather than symlinks, even when symlinks are the default for the platform (default: False)

seeder:
  options for seeder app-data

  --seeder {app-data,pip}       seed packages install method (default: app-data)
  --no-seed, --without-pip      do not install seed packages (default: False)
  --no-download, --never-download
                                pass to disable download of the latest pip/setuptools/wheel from PyPI (default: True)
  --download                    pass to enable download of the latest pip/setuptools/wheel from PyPI (default: False)
  --extra-search-dir d [d ...]  a path containing wheels the seeder may also use beside bundled (can be set 1+ times) (default: [])
  --pip version                 pip version to install, bundle for bundled (default: latest)
  --setuptools version          setuptools version to install, bundle for bundled (default: latest)
  --wheel version               wheel version to install, bundle for bundled (default: latest)
  --no-pip                      do not install pip (default: False)
  --no-setuptools               do not install setuptools (default: False)
  --no-wheel                    do not install wheel (default: False)
  --symlink-app-data            symlink the python packages from the app-data folder (requires seed pip>=19.3) (default: False)

activators:
  options for activation scripts

  --activators comma_sep_list   activators to generate - default is all supported (default: bash,cshell,fish,powershell,python,xonsh)
  --prompt prompt               provides an alternative prompt prefix for this environment (default: None)

config file path-to-home/.config/virtualenv/virtualenv.ini missing (change via env var VIRTUALENV_CONFIG_FILE)

it seems that the flag -v is passed to virtualenv. this last one accepts --with-traceback. when typing mkvirtualenv test8 --with-traceback the command hangs, and when using ctrl+c, i get this trace:

$ mkvirtualenv test8   --with-traceback 
^CTraceback (most recent call last):
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/util/lock.py", line 86, in _lock_file
    lock.acquire(0.0001)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/util/lock.py", line 23, in acquire
    super(_CountedFileLock, self).acquire(timeout=timeout, poll_intervall=poll_intervall)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/filelock.py", line 280, in acquire
    raise Timeout(self._lock_file)
filelock.Timeout: The file lock 'path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock' could not be acquired.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "path-to-home/anaconda3/lib/python3.7/site-packages/filelock.py", line 389, in _acquire
    fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "path-to-home/anaconda3/bin/virtualenv", line 8, in <module>
    sys.exit(run_with_catch())
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/__main__.py", line 51, in run_with_catch
    run(args, options)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/__main__.py", line 20, in run
    session = cli_run(args, options)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/run/__init__.py", line 26, in cli_run
    session.run()
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/session.py", line 47, in run
    self._seed()
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/session.py", line 60, in _seed
    self.seeder.run(self.creator)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/seed/via_app_data/via_app_data.py", line 42, in run
    with self._get_seed_wheels(creator, base_cache) as name_to_whl:
  File "path-to-home/anaconda3/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/seed/via_app_data/via_app_data.py", line 62, in _get_seed_wheels
    with base_cache.lock_for_key("wheels"):
  File "path-to-home/anaconda3/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/util/lock.py", line 101, in lock_for_key
    self._lock_file(lock)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/util/lock.py", line 90, in _lock_file
    lock.acquire()
  File "path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/util/lock.py", line 23, in acquire
    super(_CountedFileLock, self).acquire(timeout=timeout, poll_intervall=poll_intervall)
  File "path-to-home/anaconda3/lib/python3.7/site-packages/filelock.py", line 273, in acquire
    self._acquire()
  File "path-to-home/anaconda3/lib/python3.7/site-packages/filelock.py", line 389, in _acquire
    fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
KeyboardInterrupt

the issue seems to be originated here:

filelock.Timeout: The file lock 'path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock' could not be acquired.

thanks

@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Jun 15, 2020

Is the path not write-able? 🤔 not sure why the path can't be acquired.

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 15, 2020

this is the permission on the file wheels.lock which seems that i can write on it.

$ls path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/
total 2
drwxr-xr-x 2 myid g1 3 Jun 12 15:41 .
drwxr-xr-x 3 myid g1 3 Jun 12 15:41 ..
-rwxr-xr-x 1 myid g1 0 Jun 15 15:09 wheels.lock

link suggests to clean ~/.cache/pip which is done at every login, so it is not the issue. others suggest the possibility of the existence of another lock file/folder, but i am not sure about that since this lock is specific to virtualenv if i understand correctly.
thanks

@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Jun 15, 2020

If you can start with a fresh path-to-home/.local/share/virtualenv or fix permissions on that file would fix it.

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 15, 2020

  • just deleted ~/.local/shared/virtualenv/* and tried mkvirtualenv test10, it hangs the same way. it did create a new file wheels.lock with the same permission.
$ ls .local/share/virtualenv/seed-app-data/v1.0.1/3.7/
total 2
drwxr-xr-x 2 myid g 3 Jun 15 15:51 .
drwxr-xr-x 3 myid g1 3 Jun 15 15:51 ..
-rwxr-xr-x 1 myid g1 0 Jun 15 15:51 wheels.lock

is there something wrong with the permission?
it is weird that the file is empty.

  • also, i checked, and there is only one file named wheels.lock in ~.
    thanks

@gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Jun 15, 2020

It's alright for it to be empty, as it's only used to hold a lock; not a content. So the existence itself is what locks. Can you provide the full creation log post delete (-vvv)?

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 15, 2020

ok. i see.

sorry, i don't know how to get this log.

Can you provide the full creation log post delete (-vvv)?

can you tell me the command?

if you are talking about the log of mkvirtualenv test11 after deleting ~/.local/shared/virtualenv/* here it is. thanks

$ mkvirtualenv test11 -vvv
194 setup logging to NOTSET [DEBUG report:42]
319 find interpreter for spec PythonSpec(path=path-to-home/anaconda3/bin/python) [INFO builtin:44]
320 proposed PythonInfo(spec=CPython3.7.0.final.0-64, exe=path-to-home/anaconda3/bin/python, platform=linux, version='3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) \n[GCC 7.3.0]', encoding_fs_io=utf-8-utf-8) [INFO builtin:50]
320 accepted PythonInfo(spec=CPython3.7.0.final.0-64, exe=path-to-home/anaconda3/bin/python, platform=linux, version='3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) \n[GCC 7.3.0]', encoding_fs_io=utf-8-utf-8) [DEBUG builtin:52]
325 filesystem is case-sensitive [DEBUG info:28]
438 create virtual environment via CPython3Posix(dest=path-to-home/Venvs/test11, clear=False, global=False) [INFO session:52]
439 write path-to-home/Venvs/test11/pyvenv.cfg [DEBUG pyenv_cfg:34]
439 	home = path-to-home/anaconda3 [DEBUG pyenv_cfg:38]
439 	implementation = CPython [DEBUG pyenv_cfg:38]
440 	version_info = 3.7.0.final.0 [DEBUG pyenv_cfg:38]
440 	virtualenv = 20.0.23 [DEBUG pyenv_cfg:38]
440 	include-system-site-packages = false [DEBUG pyenv_cfg:38]
440 	base-prefix = path-to-home/anaconda3 [DEBUG pyenv_cfg:38]
440 	base-exec-prefix = path-to-home/anaconda3 [DEBUG pyenv_cfg:38]
440 	base-executable = path-to-home/anaconda3/bin/python [DEBUG pyenv_cfg:38]
458 remove file path-to-home/Venvs/test11/bin/python [DEBUG _sync:38]
462 symlink path-to-home/anaconda3/bin/python to path-to-home/Venvs/test11/bin/python [DEBUG _sync:44]
511 create virtualenv import hook file path-to-home/Venvs/test11/lib/python3.7/site-packages/_virtualenv.pth [DEBUG api:95]
519 create path-to-home/Venvs/test11/lib/python3.7/site-packages/_virtualenv.py [DEBUG api:98]
533 ============================== target debug ============================== [DEBUG session:54]
534 debug via path-to-home/Venvs/test11/bin/python path-to-home/anaconda3/lib/python3.7/site-packages/virtualenv/create/debug.py [DEBUG creator:206]
533 {
  "sys": {
    "executable": "path-to-home/Venvs/test11/bin/python",
    "_base_executable": null,
    "prefix": "path-to-home/Venvs/test11",
    "base_prefix": "path-to-home/anaconda3",
    "real_prefix": null,
    "exec_prefix": "path-to-home/Venvs/test11",
    "base_exec_prefix": "path-to-home/anaconda3",
    "path": [
      "path-to-home/anaconda3/lib/python37.zip",
      "path-to-home/anaconda3/lib/python3.7",
      "path-to-home/anaconda3/lib/python3.7/lib-dynload",
      "path-to-home/Venvs/test11/lib/python3.7/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) \n[GCC 7.3.0]",
  "makefile_filename": "path-to-home/anaconda3/lib/python3.7/config-3.7m-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' from 'path-to-home/anaconda3/lib/python3.7/os.py'>",
  "site": "<module 'site' from 'path-to-home/anaconda3/lib/python3.7/site.py'>",
  "datetime": "<module 'datetime' from 'path-to-home/anaconda3/lib/python3.7/datetime.py'>",
  "math": "<module 'math' from 'path-to-home/anaconda3/lib/python3.7/lib-dynload/math.cpython-37m-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from 'path-to-home/anaconda3/lib/python3.7/json/__init__.py'>"
} [DEBUG session:55]
675 add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1) [INFO session:59]
720 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
16586 Timeout on acquiring lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:279]
16586 lock file path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock present, will block until released [DEBUG lock:88]
16586 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
41161 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
41212 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
65737 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
65788 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
90313 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
90364 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
114889 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
114940 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
139465 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
139516 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
164041 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
164092 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
188617 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
188668 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
213193 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
213243 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
237769 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
237820 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
262345 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
262396 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
286921 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
286971 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
311497 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
311547 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
336073 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
336124 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
360649 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
360700 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
385225 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
385275 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
409801 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
409852 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
434377 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
434427 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
458953 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
459003 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
483529 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
483579 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
508105 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
508155 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
532681 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
532732 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
557257 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
557307 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
581833 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
581884 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
606409 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
606460 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
630985 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
631035 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
655561 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
655612 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
680137 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
680187 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
704713 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
704763 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
729289 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
729339 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
753865 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
753915 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
778441 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
778491 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
803017 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
803067 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
827593 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
827643 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
852169 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
852220 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
876745 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
876796 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
901321 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
901371 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
925897 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
925948 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
950473 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
950524 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
975049 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
975100 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
999625 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
999676 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
1024201 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
1024252 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
1048777 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
1048828 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
1073353 Lock 140531398727720 not acquired on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock, waiting 0.05 seconds ... [DEBUG filelock:284]
1073404 Attempting to acquire lock 140531398727720 on path-to-home/.local/share/virtualenv/seed-app-data/v1.0.1/3.7/wheels.lock [DEBUG filelock:272]
^C1097930 KeyboardInterrupt:  [ERROR __main__:57]

@sbelharbi
Copy link

@sbelharbi sbelharbi commented Jun 16, 2020

i found out that ipython hangs as well. so, i am not sure that the issue comes from virtualenv (it could be the case because virtualenv 16.0.0 works fine). so, i suggest to stop investigating. something weird is going on in my ~ due to some changes in ~ (move from old to new home). although, if you have any suggestion, do not hesitate.

thanks

@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants