You are not logged in.

#1 2022-05-23 11:07:55

paul4936
Member
Registered: 2022-05-23
Posts: 4

python-pipenv broken after last update

Hello everyone.

Before all was fine(pipenv worked as intended).
Today after update i found myself unable to create any VENV by pipenv.
I tried to fix it, no result.
In brief it were:
Reboot(always a good option). No result.
Removing python caches. No result.
Removing whole python dirs and "repopulate" them by installing python packages again via packet manager. No result again.
Also i tried to create another user(in case if thee is something with current one). No result.
And just to try something else - tried pipenv as superuser, and delete all files since no result again.
Removing pipenv with package manager and installing(system wide) with pip - bring no results too.

Of course i tried to rollback my updates(few dates were checked, 2 days ago, five, 2 weeks, 2 months) - no result.
It's looks like something missing, but i cant realize what exactly.

Lets say pipfile contains this:

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

[packages]
requests = "==2.18.4"

[requires]
python_version = "3.6"

If Pipfile.lock exist i get:

Installing dependencies from Pipfile.lock (8c2845)...
An error occurred while installing certifi==2022.5.18.1; python_version >= '3.6' --hash=sha256:9c5705e395cd70084351dd8ad5c41e65655e08ce46f2ec9cf6c2c08390f71eb7 --hash=sha256:f1d53542ee8cbedbe2118b5686372fb33c297fcd6379b050cca0ef13a597382a! Will try again.
An error occurred while installing chardet==3.0.4 --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae! Will try again.
An error occurred while installing idna==2.6 --hash=sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4 --hash=sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f! Will try again.
An error occurred while installing requests==2.18.4 --hash=sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b --hash=sha256:9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e! Will try again.
An error occurred while installing urllib3==1.22 --hash=sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b --hash=sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f! Will try again.
  ?   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 5/5 — 00:00:01
Installing initially failed dependencies...
ERROR: Couldn't install package: certifi5 — 00:00:00
 Package installation failed...
  ☤  ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 4/5 — 00:00:01
/usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 40574 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=4 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=7 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 40575 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=6 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=9 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 40576 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=8 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=11 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 40577 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=10 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb' closefd=True>
ResourceWarning: Enable tracemalloc to get the object allocation traceback

If Pipfile.lock does not exist - i get:

Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed! 

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pipenv/resolver.py", line 857, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/pipenv/resolver.py", line 852, in main
    dev=parsed.dev,
  File "/usr/lib/python3.10/site-packages/pipenv/resolver.py", line 823, in _main
    pre, clear, verbose, system, write, requirements_dir, packages, dev
  File "/usr/lib/python3.10/site-packages/pipenv/resolver.py", line 778, in resolve_packages
    requirements_dir=requirements_dir,
  File "/usr/lib/python3.10/site-packages/pipenv/resolver.py", line 759, in resolve
    req_dir=requirements_dir,
  File "/usr/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 1076, in resolve_deps
    req_dir=req_dir,
  File "/usr/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 860, in actually_resolve_deps
    deps, project, index_lookup, markers_lookup, sources, req_dir, clear, pre
  File "/usr/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 407, in create
    clear=clear,
  File "/usr/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 177, in get_metadata
    project=project,
  File "/usr/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 231, in parse_line
    req = Requirement.from_line(line)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2672, in from_line
    if isinstance(line, pip_shims.shims.InstallRequirement):
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/shims.py", line 61, in __getattr__
    return locations[args[0]].shim()
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 737, in shim
    result = self.traverse(top_path)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 729, in traverse
    result = shim.shim()
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 577, in shim
    return self.shim_class(imported, self.name_to_import)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 519, in shim_class
    imported, result = self._shim_parent(imported, attribute_name)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 503, in _shim_parent
    result = self._shim_base(imported, attribute_name)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 492, in _shim_base
    return self._apply_aliases(imported, result)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/models.py", line 497, in _apply_aliases
    target = apply_alias(imported, target, *alias_list)
  File "/usr/lib/python3.10/site-packages/pipenv/vendor/pip_shims/utils.py", line 326, in apply_alias
    setattr(target, alias, alias_value)
AttributeError: 'NoneType' object has no attribute 'build_location'

Steps to replicate
Select(cd) any directory with pipfile(mentioned above) inside and type

pipenv install

Not sure if this good idea but i download precteated VM(VirtualBox) with ArchLinux and added there Python, PipEnv and other stuff(+ Mate DE for convenience).
https://mega.nz/file/Fa4BHTgb#CNSPnKsVe … FXX9Taugag
Password is:
archlinux
Username the same as password.
On VM i get the same error.

I can rollback all packages to state of 2022/04/08, and on VM all fine again.
On my machine - nope.

Offline

#2 2022-05-23 12:53:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: python-pipenv broken after last update

Mod note: moving to Apps/DEs.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-05-23 19:28:29

paul4936
Member
Registered: 2022-05-23
Posts: 4

Re: python-pipenv broken after last update

On VM - latest archive version which works - 2022/04/22.
I saved packages (list) by pacman -Q.
So i get packages on VM and on my machine.
So i tried to DIFF them. And downgrade anything that looks "pythonic".
Aaand nothing happened.

Gonna compare two states on VM at point when "it still works" and at earliest "all broken".

Last edited by paul4936 (2022-05-23 19:28:57)

Offline

#4 2022-05-24 13:06:34

paul4936
Member
Registered: 2022-05-23
Posts: 4

Re: python-pipenv broken after last update

Okay, there it is:

archlinux-keyring 20220224-1  20220424-1
audit 3.0.7-1  3.0.8-1
brotli 1.0.9-7  1.0.9-8
curl 7.82.0-2  7.82.0-3
gtk-update-icon-cache 1:4.6.2-2  1:4.6.3-1
gtk3 1:3.24.33-2  1:3.24.33-3
gvfs 1.50.0+r5+g747c7f6e-1  1.50.1-1
harfbuzz 4.2.0-3  4.2.1-1
harfbuzz-icu 4.2.0-3  4.2.1-1
libhandy 1.6.1-1  1.6.2-1
libinih 53-2  55-2
libmanette 0.2.6-2  0.2.6-3
libmm-glib 1.18.6-1  1.18.6-2
libpgm 5.3.128-1  5.3.128-2
librsvg 2:2.54.0-2  2:2.54.1-1
libseccomp 2.5.3-3  2.5.4-1
mesa 22.0.1-3  22.0.2-1
pciutils 3.7.0-2  3.8.0-1
python-pipenv 2022.4.8-1 2022.4.21-2
zlib 1:1.2.12-1  1:1.2.12-2

There 1st - name, 2nd - version on VM with working pipenv, 3rd - version on VM with broken VM.
Most suspicious is python-pipenv(not big surprise).
And with VM(2022/04/27) - downgrade python-pipenv  to 2022.4.8-1 makes the difference.
If VM is up to date(current) - downgrade of python-pipenv fix the issue too. mad
But somehow not on my machine.

Offline

#5 2022-05-27 19:19:16

paul4936
Member
Registered: 2022-05-23
Posts: 4

Re: python-pipenv broken after last update

Ok, i get it. I think so.
In brief: 3.6 support is dropped.
And looks like its mean the python 3.6 the one in pipenv, not default one in system(or both, but internal one for sure).

Looks like sometimes is better to add to ignore packages like this so the will not be updated.

Last edited by paul4936 (2022-05-27 19:44:21)

Offline

#6 2022-05-27 20:52:15

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: python-pipenv broken after last update

paul4936 wrote:

Looks like sometimes is better to add to ignore packages like this so the will not be updated.

Ignoring something like python that is used by so many packages in the repos will definately lead to your system breaking at some point when you upgrade.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB