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

Infinity lock #4926

Closed
LEv145 opened this issue Jan 19, 2022 · 12 comments
Closed

Infinity lock #4926

LEv145 opened this issue Jan 19, 2022 · 12 comments
Labels
Category: Pip Requires pip update to address Type: Bug 🐛 This issue is a bug. Type: Bugfix This issue provides a fix for a known bug. Type: Vendored Dependencies This issue affects vendored dependencies within pipenv.

Comments

@LEv145
Copy link

LEv145 commented Jan 19, 2022

When I use pipenv lock pipenv infinitely generates a lock file
Maybe it is because discord.py required aiohttp>=3.6.0,<3.8.0, but last version of aiohttp is 3.8.1

$ pipenv --support

Pipenv version: '2021.11.23'

Pipenv location: '/usr/lib/python3.10/site-packages/pipenv'

Python location: '/usr/bin/python'

Python installations found:

  • 3.10.1: /usr/bin/python
  • 3.10.1: /usr/bin/python3
  • 3.10.1: /bin/python
  • 3.10.1: /bin/python3
  • 3.9.8: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu/bin/python3.9
  • 3.9.8: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu/bin/python
  • 3.9.8: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu/bin/python3
  • 3.9.8: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu/bin/python3.9
  • 3.9.8: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu/bin/python
  • 2.7.18: /usr/bin/python2
  • 2.7.18: /usr/bin/python2.7
  • 2.7.18: /bin/python2
  • 2.7.18: /bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.10.1',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.15.12',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Wed Dec 29 18:08:07 UTC 2021',
 'python_full_version': '3.10.1',
 'python_version': '3.10',
 'sys_platform': 'linux'}

System environment variables:

  • SHELL
  • SESSION_MANAGER
  • PYENV_SHELL
  • XDG_SESSION_PATH
  • HISTCONTROL
  • GNOME_DESKTOP_SESSION_ID
  • PYCHARM_JDK
  • TERMINAL_EMULATOR
  • LC_ADDRESS
  • LC_NAME
  • SSH_AUTH_SOCK
  • CINNAMON_VERSION
  • TERM_SESSION_ID
  • DESKTOP_SESSION
  • LC_MONETARY
  • GTK_MODULES
  • XDG_SEAT
  • PWD
  • PYENV_VIRTUALENV_INIT
  • XDG_SESSION_DESKTOP
  • LOGNAME
  • QT_QPA_PLATFORMTHEME
  • XDG_SESSION_TYPE
  • XAUTHORITY
  • XDG_GREETER_DATA_DIR
  • GJS_DEBUG_TOPICS
  • MOTD_SHOWN
  • GDM_LANG
  • PYCHARM_CLASSPATH
  • HOME
  • LANG
  • LC_PAPER
  • LS_COLORS
  • XDG_CURRENT_DESKTOP
  • VIRTUAL_ENV
  • XDG_SEAT_PATH
  • GJS_DEBUG_OUTPUT
  • XDG_SESSION_CLASS
  • TERM
  • LC_IDENTIFICATION
  • GTK_OVERLAY_SCROLLING
  • USER
  • DISPLAY
  • SHLVL
  • LC_TELEPHONE
  • LC_MEASUREMENT
  • XDG_VTNR
  • XDG_SESSION_ID
  • XDG_RUNTIME_DIR
  • PS1
  • LC_TIME
  • GTK3_MODULES
  • XDG_DATA_DIRS
  • GDK_BACKEND
  • PATH
  • GDMSESSION
  • DBUS_SESSION_BUS_ADDRESS
  • MAIL
  • GIO_LAUNCHED_DESKTOP_FILE_PID
  • GIO_LAUNCHED_DESKTOP_FILE
  • LC_NUMERIC
  • _
  • PIP_SHIMS_BASE_MODULE
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu/bin
  • SHELL: /bin/bash
  • LANG: ru_RU.utf8
  • PWD: /home/lev145/Flirty Kitty
  • VIRTUAL_ENV: /home/lev145/.local/share/virtualenvs/Flirty_Kitty-6UYt8Wcu

Contents of Pipfile ('/home/lev145/Flirty Kitty/Pipfile'):

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
discord = "*"
aiohttp = "*"


[dev-packages]

[requires]
python_version = "3.9"
@matteius
Copy link
Member

@LEv145 I am wondering if this is a duplicate report of #4651

Also noting from your $ pipenv --support that while on a fairly new version there is actually an even newer version 2022.1.8.

Could you check if this seems like the same as the other issue, and if so I'll close this one out and request that you comment on the other issue with details of your experience and if the issue persists on the latest version 2022.1.8? Thanks for your help in making pipenv better.

@LEv145
Copy link
Author

LEv145 commented Jan 21, 2022

I update version to 2022.1.8 and the problem has not been solved

And in another project there was a similar problem, but after a long time(6m) he created a lock file with warning:

Warning: ERROR:pip.subprocessor:Command errored out with exit status 1:
 command: /home/lev145/.local/share/virtualenvs/NewMusicBot-16PlW1yO/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pipenv-qk6vev6z-build/greenlet_9b2d4ad29ca1445f8d4de029e3c06cef/setup.py'"'"'; __file__='"'"'/tmp/pipenv-qk6vev6z-build/greenlet_9b2d4ad29ca1445f8d4de029e3c06cef/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2b5y5jpt
     cwd: /tmp/pipenv-qk6vev6z-build/greenlet_9b2d4ad29ca1445f8d4de029e3c06cef/
Complete output (8 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pipenv-qk6vev6z-build/greenlet_9b2d4ad29ca1445f8d4de029e3c06cef/setup.py", line 3, in <module>
    import ez_setup
  File "/tmp/pipenv-qk6vev6z-build/greenlet_9b2d4ad29ca1445f8d4de029e3c06cef/ez_setup/__init__.py", line 98
    except pkg_resources.VersionConflict, e:
                                        ^
SyntaxError: invalid syntax
----------------------------------------
ERROR:pip.subprocessor:Command errored out with exit status 1:
 command: /home/lev145/.local/share/virtualenvs/NewMusicBot-16PlW1yO/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pipenv-qk6vev6z-build/greenlet_430d939f841e4dfd8ab159073987a7fe/setup.py'"'"'; __file__='"'"'/tmp/pipenv-qk6vev6z-build/greenlet_430d939f841e4dfd8ab159073987a7fe/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-maif6arh
     cwd: /tmp/pipenv-qk6vev6z-build/greenlet_430d939f841e4dfd8ab159073987a7fe/
Complete output (8 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pipenv-qk6vev6z-build/greenlet_430d939f841e4dfd8ab159073987a7fe/setup.py", line 3, in <module>
    import ez_setup
  File "/tmp/pipenv-qk6vev6z-build/greenlet_430d939f841e4dfd8ab159073987a7fe/ez_setup/__init__.py", line 176
    print "Setuptools version",version,"or greater has been installed."
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")?
----------------------------------------

From #2598

@matteius
Copy link
Member

@LEv145 Thanks for triaging the report against latest version.

From #2598

That particular error output is the result of python2 code running against python3 and how that happened seems to be related to the version of greenlet being requested for install, or the version of setuptools the user had.

I am going to mark this issue as triage to see about the reproduction of the issue.

@LEv145
Copy link
Author

LEv145 commented Jan 25, 2022

There was also an infinite loop when I tried to install package by the wrong url

pipenv install git://@github.com/...

@matteius

This comment was marked as outdated.

@matteius
Copy link
Member

Interestingly, if I add allow_prereleases = true to the Pipfile then it doesn't hit the above mentioned code block at all, and doesn't fail. I think the issue is that the context processor for with TempDirectory(kind="standalone-pip") as tmp_dir: can destroy the Temporary directory after it exits that block, but the path returned from the function relies on it.

with TempDirectory(kind="standalone-pip") as tmp_dir:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
discord = "*"
aiohttp = "*"

[dev-packages]

[requires]
python_version = "3.10"

[pipenv]
allow_prereleases = true

@matteius

This comment was marked as outdated.

@matteius

This comment was marked as outdated.

@matteius matteius added Type: Bug 🐛 This issue is a bug. Type: Bugfix This issue provides a fix for a known bug. labels Feb 20, 2022
@matteius
Copy link
Member

#4969

@matteius
Copy link
Member

@LEv145 I pushed some updates to my branch last night and just retested this example case and it locked without the --pre flag now in my branch 👍 Check it out:

matteius@matteius-VirtualBox:~/shared-projects/pipenv-triage/pipenv-4926$ pipenv lock
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success! 
Updated Pipfile.lock (38ffb7)!
Pipfile.lock ``` matteius@matteius-VirtualBox:~/shared-projects/pipenv-triage/pipenv-4926$ cat Pipfile.lock { "_meta": { "hash": { "sha256": "71e10426923cdf4609490337f026d6177bc9d54fcde9c1c5051e1d94af38ffb7" }, "pipfile-spec": 6, "requires": { "python_version": "3.9" }, "sources": [ { "name": "pypi", "url": "https://pypi.org/simple", "verify_ssl": true } ] }, "default": { "aiohttp": { "hashes": [ "sha256:3a253332a0d8f82549e65035ebe7199580c3ea0e47071b7428f25b109b3c0310", "sha256:3ac6fa105355928e2fc02e876d0d72d6230557d4637017ebf09aec7611124155", "sha256:3bfcb76553d7f6296d1a598162d5fb890198f98c021540cbbb85bb604ff198db", "sha256:714c62532ca6be90be4b54002743e7ea277ec78b45f04ae86cdc6f45a8400abd", "sha256:81a6aaace2b9e8a87531277a5d5f998efbd3554c15bf47173834386966d1bbe1", "sha256:ad374a5d7be1de271ecd0fb0ef87c0f8dd9fb062e6fae350fa6c098360018978", "sha256:c3e1897726f97d40e067e8b658b2dbdfe216f32b801c5c589212e1b1f9aa8388", "sha256:c579ec606f25b3f756f177fee6db344f8d7ef75cfc0603a94c9fa1d1c645789d", "sha256:e1985766a4c83fcbdf7dde06544231fc9fb3de8929788179e623d6f9f9f321d2" ], "index": "pypi", "version": "==1.0.5" }, "async-timeout": { "hashes": [ "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15", "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c" ], "markers": "python_version >= '3.6'", "version": "==4.0.2" }, "chardet": { "hashes": [ "sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa", "sha256:f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==4.0.0" }, "discord": { "hashes": [ "sha256:e6892abef55f66c918832afc57a8ec86ee82b6dd649cc4dd50aae024901be634" ], "index": "pypi", "version": "==0.16.12" }, "discord.py": { "hashes": [ "sha256:17fb8814100fbaf7a79468baa432184db6cef3bbea4ad194fe297c7407d50108" ], "version": "==0.16.12" }, "multidict": { "hashes": [ "sha256:0327292e745a880459ef71be14e709aaea2f783f3537588fb4ed09b6c01bca60", "sha256:041b81a5f6b38244b34dc18c7b6aba91f9cdaf854d9a39e5ff0b58e2b5773b9c", "sha256:0556a1d4ea2d949efe5fd76a09b4a82e3a4a30700553a6725535098d8d9fb672", "sha256:05f6949d6169878a03e607a21e3b862eaf8e356590e8bdae4227eedadacf6e51", "sha256:07a017cfa00c9890011628eab2503bee5872f27144936a52eaab449be5eaf032", "sha256:0b9e95a740109c6047602f4db4da9949e6c5945cefbad34a1299775ddc9a62e2", "sha256:19adcfc2a7197cdc3987044e3f415168fc5dc1f720c932eb1ef4f71a2067e08b", "sha256:19d9bad105dfb34eb539c97b132057a4e709919ec4dd883ece5838bcbf262b80", "sha256:225383a6603c086e6cef0f2f05564acb4f4d5f019a4e3e983f572b8530f70c88", "sha256:23b616fdc3c74c9fe01d76ce0d1ce872d2d396d8fa8e4899398ad64fb5aa214a", "sha256:2957489cba47c2539a8eb7ab32ff49101439ccf78eab724c828c1a54ff3ff98d", "sha256:2d36e929d7f6a16d4eb11b250719c39560dd70545356365b494249e2186bc389", "sha256:2e4a0785b84fb59e43c18a015ffc575ba93f7d1dbd272b4cdad9f5134b8a006c", "sha256:3368bf2398b0e0fcbf46d85795adc4c259299fec50c1416d0f77c0a843a3eed9", "sha256:373ba9d1d061c76462d74e7de1c0c8e267e9791ee8cfefcf6b0b2495762c370c", "sha256:4070613ea2227da2bfb2c35a6041e4371b0af6b0be57f424fe2318b42a748516", "sha256:45183c96ddf61bf96d2684d9fbaf6f3564d86b34cb125761f9a0ef9e36c1d55b", "sha256:4571f1beddff25f3e925eea34268422622963cd8dc395bb8778eb28418248e43", "sha256:47e6a7e923e9cada7c139531feac59448f1f47727a79076c0b1ee80274cd8eee", "sha256:47fbeedbf94bed6547d3aa632075d804867a352d86688c04e606971595460227", "sha256:497988d6b6ec6ed6f87030ec03280b696ca47dbf0648045e4e1d28b80346560d", "sha256:4bae31803d708f6f15fd98be6a6ac0b6958fcf68fda3c77a048a4f9073704aae", "sha256:50bd442726e288e884f7be9071016c15a8742eb689a593a0cac49ea093eef0a7", "sha256:514fe2b8d750d6cdb4712346a2c5084a80220821a3e91f3f71eec11cf8d28fd4", "sha256:5774d9218d77befa7b70d836004a768fb9aa4fdb53c97498f4d8d3f67bb9cfa9", "sha256:5fdda29a3c7e76a064f2477c9aab1ba96fd94e02e386f1e665bca1807fc5386f", "sha256:5ff3bd75f38e4c43f1f470f2df7a4d430b821c4ce22be384e1459cb57d6bb013", "sha256:626fe10ac87851f4cffecee161fc6f8f9853f0f6f1035b59337a51d29ff3b4f9", "sha256:6701bf8a5d03a43375909ac91b6980aea74b0f5402fbe9428fc3f6edf5d9677e", "sha256:684133b1e1fe91eda8fa7447f137c9490a064c6b7f392aa857bba83a28cfb693", "sha256:6f3cdef8a247d1eafa649085812f8a310e728bdf3900ff6c434eafb2d443b23a", "sha256:75bdf08716edde767b09e76829db8c1e5ca9d8bb0a8d4bd94ae1eafe3dac5e15", "sha256:7c40b7bbece294ae3a87c1bc2abff0ff9beef41d14188cda94ada7bcea99b0fb", "sha256:8004dca28e15b86d1b1372515f32eb6f814bdf6f00952699bdeb541691091f96", "sha256:8064b7c6f0af936a741ea1efd18690bacfbae4078c0c385d7c3f611d11f0cf87", "sha256:89171b2c769e03a953d5969b2f272efa931426355b6c0cb508022976a17fd376", "sha256:8cbf0132f3de7cc6c6ce00147cc78e6439ea736cee6bca4f068bcf892b0fd658", "sha256:9cc57c68cb9139c7cd6fc39f211b02198e69fb90ce4bc4a094cf5fe0d20fd8b0", "sha256:a007b1638e148c3cfb6bf0bdc4f82776cef0ac487191d093cdc316905e504071", "sha256:a2c34a93e1d2aa35fbf1485e5010337c72c6791407d03aa5f4eed920343dd360", "sha256:a45e1135cb07086833ce969555df39149680e5471c04dfd6a915abd2fc3f6dbc", "sha256:ac0e27844758d7177989ce406acc6a83c16ed4524ebc363c1f748cba184d89d3", "sha256:aef9cc3d9c7d63d924adac329c33835e0243b5052a6dfcbf7732a921c6e918ba", "sha256:b9d153e7f1f9ba0b23ad1568b3b9e17301e23b042c23870f9ee0522dc5cc79e8", "sha256:bfba7c6d5d7c9099ba21f84662b037a0ffd4a5e6b26ac07d19e423e6fdf965a9", "sha256:c207fff63adcdf5a485969131dc70e4b194327666b7e8a87a97fbc4fd80a53b2", "sha256:d0509e469d48940147e1235d994cd849a8f8195e0bca65f8f5439c56e17872a3", "sha256:d16cce709ebfadc91278a1c005e3c17dd5f71f5098bfae1035149785ea6e9c68", "sha256:d48b8ee1d4068561ce8033d2c344cf5232cb29ee1a0206a7b828c79cbc5982b8", "sha256:de989b195c3d636ba000ee4281cd03bb1234635b124bf4cd89eeee9ca8fcb09d", "sha256:e07c8e79d6e6fd37b42f3250dba122053fddb319e84b55dd3a8d6446e1a7ee49", "sha256:e2c2e459f7050aeb7c1b1276763364884595d47000c1cddb51764c0d8976e608", "sha256:e5b20e9599ba74391ca0cfbd7b328fcc20976823ba19bc573983a25b32e92b57", "sha256:e875b6086e325bab7e680e4316d667fc0e5e174bb5611eb16b3ea121c8951b86", "sha256:f4f052ee022928d34fe1f4d2bc743f32609fb79ed9c49a1710a5ad6b2198db20", "sha256:fcb91630817aa8b9bc4a74023e4198480587269c272c58b3279875ed7235c293", "sha256:fd9fc9c4849a07f3635ccffa895d57abce554b467d611a5009ba4f39b78a8849", "sha256:feba80698173761cddd814fa22e88b0661e98cb810f9f986c54aa34d281e4937", "sha256:feea820722e69451743a3d56ad74948b68bf456984d63c1a92e8347b7b88452d" ], "markers": "python_version >= '3.7'", "version": "==6.0.2" }, "websockets": { "hashes": [ "sha256:09dfec40e9b73e8808c39ecdbc1733e33915a2b26b90c54566afc0af546a9ec3", "sha256:2aa6d52264cecb08d39741e8fda49f5ac4872aef02617230c84d02e861f3cc5a", "sha256:2f5b7f3920f29609086fb0b63552bb1f86a04b8cbdcc0dbf3775cc90d489dfc8", "sha256:3d38f76f71654268e5533b45df125ff208fee242a102d4b5ca958da5cf5fb345", "sha256:3fcc7dfb365e81ff8206f950c86d1e73accdf3be2f9110c0cb73be32d2e7a9a5", "sha256:4128212ab6f91afda03a0c697add261bdf6946b47928db83f07298ea2cd8d937", "sha256:43e5b9f51dd0000a4c6f646e2ade0c886bd14a784ffac08b9e079bd17a63bcc5", "sha256:4a932c17cb11c361c286c04842dc2385cc7157019bbba8b64808acbc89a95584", "sha256:5ddc5fc121eb76771e990f071071d9530e27d20e8cfb804d9f5823de055837af", "sha256:7347af28fcc70eb45be409760c2a428f8199e7f73c04a621916c3c219ed7ad27", "sha256:85ae1e4b36aa2e90de56d211d2de36d7c093d00277a9afdd9b4f81e69c0214ab", "sha256:8a29100079f5b91a72bcd25d35a7354db985d3babae42d00b9d629f9a0aaa8ac", "sha256:a7e7585c8e3c0f9277ad7d6ee6ccddc69649cd216255d5e255d68f90482aeefa", "sha256:aa42ecef3aed807e23218c264b1e82004cdd131a6698a10b57fc3d8af8f651fc", "sha256:b19e7ede1ba80ee9de6f5b8ccd31beee25402e68bef7c13eeb0b8bc46bc4b7b7", "sha256:c4c5b5ce2d66cb0cf193c14bc9726adca095febef0f7b2c04e5e3fa3487a97a4", "sha256:de743ef26b002efceea7d7756e99e5d38bf5d4f27563b8d27df2a9a5cc57340a", "sha256:e1e568136ad5cb6768504be36d470a136b072acbf3ea882303aee6361be01941", "sha256:e8992f1db371f2a1c5af59e032d9dc7c1aa92f16241efcda695b7d955b4de0c2", "sha256:e9c1cdbb591432c59d0b5ca64fd30b6d517024767f152fc169563b26e7bcc9da" ], "version": "==3.4" } }, "develop": {} } ```

@matteius matteius added Type: Vendored Dependencies This issue affects vendored dependencies within pipenv. Category: Pip Requires pip update to address PR: awaiting-review The PR related to this issue is awaiting review by a maintainer. and removed reported bug triage labels Mar 11, 2022
@matteius

This comment was marked as resolved.

@matteius
Copy link
Member

pipenv==2022.4.20 has the new vendoring we had been waiting on.

@matteius matteius removed the PR: awaiting-review The PR related to this issue is awaiting review by a maintainer. label Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Pip Requires pip update to address Type: Bug 🐛 This issue is a bug. Type: Bugfix This issue provides a fix for a known bug. Type: Vendored Dependencies This issue affects vendored dependencies within pipenv.
Projects
None yet
Development

No branches or pull requests

2 participants