question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ImportError: No module named entry_points_selectable`

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 20.04 LST
  • Poetry version: 1.1.8 -> 1.1.11

Issue

I have been to make a new repository but I got this issue with any command of poetry.

/home/tindang/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads. "program uses threads.", RuntimeWarning) Traceback (most recent call last): File "/home/tindang/.poetry/bin/poetry", line 16, in <module> from poetry.console import main File "/home/tindang/.poetry/lib/poetry/console/__init__.py", line 1, in <module> from .application import Application File "/home/tindang/.poetry/lib/poetry/console/application.py", line 7, in <module> from .commands.about import AboutCommand File "/home/tindang/.poetry/lib/poetry/console/commands/__init__.py", line 4, in <module> from .check import CheckCommand File "/home/tindang/.poetry/lib/poetry/console/commands/check.py", line 2, in <module> from poetry.factory import Factory File "/home/tindang/.poetry/lib/poetry/factory.py", line 18, in <module> from .repositories.pypi_repository import PyPiRepository File "/home/tindang/.poetry/lib/poetry/repositories/pypi_repository.py", line 33, in <module> from ..inspection.info import PackageInfo File "/home/tindang/.poetry/lib/poetry/inspection/info.py", line 25, in <module> from poetry.utils.env import EnvCommandError File "/home/tindang/.poetry/lib/poetry/utils/env.py", line 23, in <module> import virtualenv File "/home/tindang/.poetry/lib/poetry/_vendor/py2.7/virtualenv/__init__.py", line 3, in <module> from .run import cli_run, session_via_cli File "/home/tindang/.poetry/lib/poetry/_vendor/py2.7/virtualenv/run/__init__.py", line 13, in <module> from .plugin.activators import ActivationSelector File "/home/tindang/.poetry/lib/poetry/_vendor/py2.7/virtualenv/run/plugin/activators.py", line 6, in <module> from .base import ComponentBuilder File "/home/tindang/.poetry/lib/poetry/_vendor/py2.7/virtualenv/run/plugin/base.py", line 5, in <module> from backports.entry_points_selectable import entry_points ImportError: No module named entry_points_selectable

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
andrewrossscommented, Nov 18, 2021

Same bug. Uninstalling and re-installing with

curl -sSL https://install.python-poetry.org/ | python3 - 

worked for me.

For convenience, if you installed poetry via get-poetry.py you can uninstall with:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --uninstall
5reactions
abncommented, Nov 18, 2021

@TinDang97 try uninstalling Poetry (assuing you used the get-poetry.py script) and then using the following command to install Poetry. Looks like you installed it under python 2.7, which is no longer supported.

curl -sSL https://install.python-poetry.org/ | python3 - 

Alternatively, you can install poetry using pipx.

pip install pipx
pipx install poetry
Read more comments on GitHub >

github_iconTop Results From Across the Web

module not found during load_entry_point in Python
I am invoking awesome-tool one directory above the package contents (i.e. awesome_tool/.. ) and the python interpreter in the same location, but when...
Read more >
ImportError: No module named entry_points_selectable
Python 2.7: import virtualenv error: ImportError: No module named entry_points_selectable.
Read more >
[Fixed] ModuleNotFoundError: No module named 'entrypoints'
Quick Fix: Python raises the ImportError: No module named 'entrypoints' when it cannot find the library entrypoints . The most frequent source of...
Read more >
python2-pytest - AUR (en) - Arch Linux
... python2-backports.entry-points-selectable (check) ... packaging.version import Version ImportError: No module named packaging.version.
Read more >
MicroPython Basics: Loading Modules - Digikey
If you aren't familiar with Python's module support be sure to read the official documentation first. Python allows you to put code in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found