Open C10H opened 1 year ago
See issue https://github.com/google-deepmind/alphafold/issues/812 which may offer a resolution that works for you
Well again, I don't have idea if the issue was fixed it, however share solution I've found:
pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'
Running above line command worked for me ...
Well again, I don't have idea if the issue was fixed it, however share solution I've found:
pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'
Running above line command worked for me ...
Thanks a lot!
Well again, I don't have idea if the issue was fixed it, however share solution I've found:
pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'
Running above line command worked for me ...
Well again, I don't have idea if the issue was fixed it, however share solution I've found:
pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'
Running above line command worked for me ...
thanks, this works for me, I think this method could be the issue's solution
Thanks, This worked
Hey, does anyone know how to fix this on ubuntu when you have:
root@ubuntu:~# pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
PS: It's Ubuntu server 24.04 LTS
PPS:
root@ubuntu:~# apt list --installed | grep python3-requests
python3-requests/noble,now 2.31.0+dfsg-1ubuntu1 all [installed,automatic]
root@ubuntu:~# apt list --installed | grep python3-urllib3
python3-urllib3/noble,now 2.0.7-1 all [installed,automatic]
I have the exact same problem as @dodancs Im running Ubuntu desktop 24.04 LTS and when i run pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0' it gives me this: error: externally-managed-environment
× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.
And just to clarify the docker error "chunked" occurs whenever i do something like docker-compose up, down and build. Also on my windows 10 I can do all the stuff of the above and it works Does anyone have a good fix for this?
if you use docker-compose that is the error, use docker compose, with space not with line, that works for me
if you use docker-compose that is the error, use docker compose, with space not with line, that works for me
That works for Ubuntu 24.04 LTS. Super pretty dope solution
I get it working by re-installing the correct version of docker on Ubuntu 24.04 LTS : https://docs.docker.com/engine/install/ubuntu/
and using the docker compose
command instead of docker-compose
where do we have to write docker compose
where do we have to write docker compose
Just inside your terminal. Use docker compose up -d
with a space instead of docker-compose up -d
with the hyphen.
Confirmed worked for me as well on Ubuntu 24.04 - no need to mess with the pip3 install --force-reinstall ...
command.
I get it working by re-installing the correct version of docker on Ubuntu 24.04 LTS : https://docs.docker.com/engine/install/ubuntu/ and using the
docker compose
command instead ofdocker-compose
I really thank you, I was trying to do it all the time with docker-compose
and it didn't work at all, but with the space it worked!
Same where working on Ubuntu 24.04 LTS. Running the commando without -
works, docker compose
.
To people still having problems (like me) on Ubuntu 24.04 LTS you have to apt install docker-compose-v2
This remains a fatal problem for those of us on Ubuntu 24 using the docker python module. Cannot downgrade the python requests module because the environment is "externally managed" and I don't use docker compose. Dead in the water.
Edit: See the suggestion from storm-legacy below. I'm convinced that moving to use of virtual python environments is the way to go given Ubuntu's lockdown of python installations and the inevitable package conflicts.
I stumbled upon this post while searching for a fix to Ansible Docker deployment on Ubuntu 24.04. While it might not help everyone, I found out that it's possible to just create a .venv and install the required packages. Then, as the interpreter, choose the Python executable in the .venv directory. There is a chance that this is applicable to this problem as well.
python3 -m venv ~/.venv
~/.venv/bin/python -m pip install 'requests<2.29.0' 'urllib3<2.0'
; hosts
[servers]
127.0.0.1
[all:vars]
ansible_ssh_user=user
ansible_ssh_port=22
ansible_ssh_private_key_file=~/.ssh/id_ed25519
ansible_python_interpreter=/home/user/.venv/bin/python
I hope this helps somebody.
@storm-legacy or this workaround works as well:
curl -LO http://mirrors.kernel.org/ubuntu/pool/universe/p/python-docker/python3-docker_7.1.0-1_all.deb
sudo dpkg -i python3-docker_7.1.0-1_all.deb
python3-docker package is broken in 24.04 LTS anyway as of today. No harm to install the one from upcoming Ubuntu 24.10, it has no binary dependencies.
Same here Ubuntu 24.04 LT , fails with "docker-compose" and works with: "docker compose"
where do we have to write docker compose
from the folder where is your docker-compose.yml file. :)
I only got Ansible working with python3-docker by using an Ubuntu 22.04 machine (AMI on AWS).
I get it working by re-installing the correct version of docker on Ubuntu 24.04 LTS : https://docs.docker.com/engine/install/ubuntu/ and using the
docker compose
command instead ofdocker-compose
this work for me on Ubuntu 24.04 LTS. Need to install docker-compose-plugin, then have the command "docker compose". Is a bug of docker-compose
? On Ubuntu 22, docker-compose
work fine.
apt install docker-compose-v2 docker compose up -d
apt install docker-compose-v2 docker compose up -d
Thx
Well again, I don't have idea if the issue was fixed it, however share solution I've found:
pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'
Running above line command worked for me ...
you are great
The traceback is as follows:
my environment is as follows: windows11-WSL2-ubuntu22.04,anaconda 23.7.4, docker-for wsl 4.25.0,NVIDIA 4090,cuda12.2 conda list: