Bug 1668447

Summary: [abrt] pipenv: do_uninstall(): core.py:2012:do_uninstall:ModuleNotFoundError: No module named 'pipenv.vendor.packaging'
Product: [Fedora] Fedora Reporter: Sander Alberink <alberink>
Component: pipenvAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 29CC: h3x, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/d0f3c2d09273cfb5830324c150e20e891fdcd535
Whiteboard: abrt_hash:9a468151e837915a9d18b88ab0775285859ceb02;VARIANT_ID=workstation;
Fixed In Version: pipenv-2018.11.26-5.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-05 02:17:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Sander Alberink 2019-01-22 18:43:12 UTC
Version-Release number of selected component:
pipenv-2018.11.26-1.fc29

Additional info:
reporter:       libreport-2.9.7
cmdline:        /usr/bin/python3 /usr/bin/pipenv uninstall fcm_django
crash_function: do_uninstall
exception_type: ModuleNotFoundError
executable:     /usr/bin/pipenv
interpreter:    python3-3.7.2-1.fc29.x86_64
kernel:         4.19.13-300.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
core.py:2012:do_uninstall:ModuleNotFoundError: No module named 'pipenv.vendor.packaging'

Traceback (most recent call last):
  File "/usr/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==2018.11.26', 'console_scripts', 'pipenv')()
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/cli/command.py", line 301, in uninstall
    ctx=ctx
  File "/usr/lib/python3.7/site-packages/pipenv/core.py", line 2012, in do_uninstall
    from .vendor.packaging.utils import canonicalize_name
ModuleNotFoundError: No module named 'pipenv.vendor.packaging'

Local variables in innermost frame:
packages: ['fcm_django']
editable_packages: []
three: None
python: False
system: False
lock: True
all_dev: False
all: False
keep_outdated: None
pypi_mirror: None
ctx: <click.core.Context object at 0x7fb9ec508dd8>
PIPENV_USE_SYSTEM: False
Requirement: <class 'pipenv.vendor.requirementslib.models.requirements.Requirement'>

Comment 1 Sander Alberink 2019-01-22 18:43:15 UTC
Created attachment 1522490 [details]
File: backtrace

Comment 2 Sander Alberink 2019-01-22 18:43:16 UTC
Created attachment 1522491 [details]
File: cgroup

Comment 3 Sander Alberink 2019-01-22 18:43:17 UTC
Created attachment 1522492 [details]
File: cpuinfo

Comment 4 Sander Alberink 2019-01-22 18:43:19 UTC
Created attachment 1522493 [details]
File: environ

Comment 5 Sander Alberink 2019-01-22 18:43:20 UTC
Created attachment 1522494 [details]
File: mountinfo

Comment 6 Sander Alberink 2019-01-22 18:43:21 UTC
Created attachment 1522495 [details]
File: namespaces

Comment 7 Sander Alberink 2019-01-22 18:43:22 UTC
Created attachment 1522496 [details]
File: open_fds

Comment 9 Fedora Update System 2019-01-23 21:50:44 UTC
pipenv-2018.11.26-4.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e28eddd04d

Comment 10 Fedora Update System 2019-01-24 05:31:54 UTC
pipenv-2018.11.26-4.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e28eddd04d

Comment 11 David Bauer 2019-01-24 17:41:26 UTC
The problem still persist.

Python 3.7.2
pipenv-2018.11.26-4.fc29

/usr/bin/python3 /usr/bin/pipenv uninstall fcm_django


Traceback (most recent call last):
  File "/usr/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==2018.11.26', 'console_scripts', 'pipenv')()
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pipenv/cli/command.py", line 301, in uninstall
    ctx=ctx
  File "/usr/lib/python3.7/site-packages/pipenv/core.py", line 2012, in do_uninstall
    from .vendor.packaging.utils import canonicalize_name
ModuleNotFoundError: No module named 'pipenv.vendor.packaging'

Comment 12 Miro Hrončok 2019-01-24 17:49:55 UTC
Thanks for the report. I'll stop that update and fix the fix :(

Comment 13 Miro Hrončok 2019-01-24 19:27:44 UTC
https://src.fedoraproject.org/rpms/pipenv/pull-request/14

Any chance you could test the simple koji ci result (on the right side) of that PR?

I can eventually get to it, but not fast enough.

Comment 14 David Bauer 2019-01-26 15:59:56 UTC
The version pipenv-2018.11.26-5.fc30.noarch.rpm fixed the issue.
pipenv uninstall fcm_django was successful without any error.

Comment 15 Fedora Update System 2019-01-27 08:57:40 UTC
pipenv-2018.11.26-5.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ef440e9861

Comment 16 Fedora Update System 2019-01-28 02:24:48 UTC
pipenv-2018.11.26-5.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-ef440e9861

Comment 17 Fedora Update System 2019-02-05 02:17:29 UTC
pipenv-2018.11.26-5.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.