missing library in order to remove library, not possible to install libraries either…
Expected behavior:
being ever able to uninstall packages and reinstall if it couldnt load old ones, duh…
Actual behavior:
errors which popped up in terminal section after every try to modify:
Replit: Updating package configuration
--> poetry remove discord.py
Traceback (most recent call last):
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/bin/poetry", line 5, in <module>
from poetry.console import main
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/application.py", line 7, in <module>
from .commands.about import AboutCommand
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/commands/__init__.py", line 4, in <module>
from .check import CheckCommand
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/commands/check.py", line 2, in <module>
from poetry.factory import Factory
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/factory.py", line 16, in <module>
from .packages.locker import Locker
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/packages/__init__.py", line 2, in <module>
from .locker import Locker
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/packages/locker.py", line 38, in <module>
from poetry.utils.extras import get_extra_package_names
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/utils/extras.py", line 7, in <module>
from poetry.utils.helpers import canonicalize_name
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/utils/helpers.py", line 11, in <module>
import requests
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
ModuleNotFoundError: No module named 'urllib3'
exit status 1
Replit: Package operation failed.
Steps to reproduce:
had a project long time ago but broked it and left non-running code along with imported libraries
logged in today cause wanted to fix bugs and bring thing back
editor was loading half hour and by itself was asking me for subscription due to YOUR updating of operating system (thank god i could deny it)
tried to run that project and see all the bug part
bug was in your computer not seeing installed libraries, not allowing me to install/remove/do anything with libraries
Have you tried invoking pip remove discord.py? If that doesn’t work, try poetry add urllib3, and if that doesn’t work, try pip install urllib3. If either one of the previous two works, go back and try the poetry and pip variations of removing discord.py
Will fail since poetry relies on urllib3. Also, the pip install will succeed, but still break poetry. Here’s a command that will install the correct version of urllib3:
edit: tried these commands but nothing looks like it’s gonna work here outputs:
~/Tux-bot-cogged-update-as-of-8122$ pip install --force-reinstall urllib3==1.26.15
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Collecting urllib3==1.26.15
Using cached https://package-proxy.replit.com/pypi/packages/7b/f5/890a0baca17a61c1f92f72b81d3c31523c99bec609e60c292ea55b387ae8/urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
WARNING: pip is using a content-addressable pool to install files from. This experimental feature is enabled through --use-feature=content-addressable-pool and it is not ready for production.
Installing collected packages: urllib3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
poetry 1.1.14 requires packaging<21.0,>=20.4, which is not installed.
Successfully installed urllib3-1.26.15
~/Tux-bot-cogged-update-as-of-8122$ poetry add urllib3==1.26.15
Traceback (most recent call last):
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/bin/poetry", line 5, in <module>
from poetry.console import main
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/application.py", line 7, in <module>
from .commands.about import AboutCommand
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/commands/__init__.py", line 4, in <module>
from .check import CheckCommand
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/console/commands/check.py", line 2, in <module>
from poetry.factory import Factory
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/factory.py", line 18, in <module>
from .repositories.pypi_repository import PyPiRepository
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/repositories/pypi_repository.py", line 37, in <module>
from ..inspection.info import PackageInfo
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/inspection/info.py", line 25, in <module>
from poetry.utils.env import EnvCommandError
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/poetry/utils/env.py", line 23, in <module>
import virtualenv
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/virtualenv/run/__init__.py", line 7, in <module>
from virtualenv.app_data import make_app_data
File "/home/runner/Tux-bot-cogged-update-as-of-8122/venv/lib/python3.8/site-packages/virtualenv/app_data/__init__.py", line 8, in <module>
from platformdirs import user_data_dir
ModuleNotFoundError: No module named 'platformdirs'
edit v3:
installed all libraries which popped up in console as errors (packaging v20.4 and these platformdirs) , not smh works and is up, may i close thread? looks like fixed…