-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Comments
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. |
hi,
downgrading |
please do run the command by setting the environment variable |
i run with
|
Sorry VIRTUALENV_VERBOSE. |
sorry, it seems to give the same thing. nothing is new... can you reproduce the problem from your side?
|
Eh, dunno what wrapper you're using but make it pass more verbosity flags. |
i'm using the command that hangs when i used
it seems that the flag
the issue seems to be originated here:
thanks |
Is the path not write-able? 🤔 not sure why the path can't be acquired. |
this is the permission on the file
link suggests to clean |
If you can start with a fresh |
is there something wrong with the permission?
|
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)? |
ok. i see. sorry, i don't know how to get this log.
can you tell me the command? if you are talking about the log of $ 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]
|
i found out that thanks |
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
Output of the virtual environment creation
The above case execution:
The text was updated successfully, but these errors were encountered: