Public bug reported:

I installed poetry via apt (on Jammy amd64) and when I try to call the
program, I get:

$ poetry 
Traceback (most recent call last):
  File "/usr/bin/poetry", line 5, in <module>
    from poetry.console import main
  File "/usr/lib/python3/dist-packages/poetry/console/__init__.py", line 1, in 
<module>
    from .application import Application
  File "/usr/lib/python3/dist-packages/poetry/console/application.py", line 7, 
in <module>
    from .commands.about import AboutCommand
  File "/usr/lib/python3/dist-packages/poetry/console/commands/__init__.py", 
line 4, in <module>
    from .check import CheckCommand
  File "/usr/lib/python3/dist-packages/poetry/console/commands/check.py", line 
2, in <module>
    from poetry.factory import Factory
  File "/usr/lib/python3/dist-packages/poetry/factory.py", line 18, in <module>
    from .repositories.pypi_repository import PyPiRepository
  File "/usr/lib/python3/dist-packages/poetry/repositories/pypi_repository.py", 
line 11, in <module>
    from cachecontrol import CacheControl
ModuleNotFoundError: No module named 'cachecontrol'


$ dpkg -l|grep python3-poetry
ii  python3-poetry                                   1.1.12+dfsg-1              
                all          Python dependency management and packaging made 
easy (Python 3)
ii  python3-poetry-core                              1.0.7-2                    
                all          Poetry PEP 517 Build Backend

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: python3-poetry 1.1.12+dfsg-1
ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
Uname: Linux 5.13.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Jan 18 10:49:59 2022
InstallationDate: Installed on 2020-12-08 (405 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: poetry
UpgradeStatus: Upgraded to jammy on 2021-11-30 (49 days ago)

** Affects: poetry (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958227

Title:
  Traceback when calling "poetry" command: ModuleNotFoundError: No
  module named 'cachecontrol'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/poetry/+bug/1958227/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to