Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems install #460

Closed
ruipe90 opened this issue Jul 20, 2023 · 6 comments
Closed

Problems install #460

ruipe90 opened this issue Jul 20, 2023 · 6 comments

Comments

@ruipe90
Copy link

ruipe90 commented Jul 20, 2023

Hello,
I am trying to install pylinac but i am having problems and i don't know how to fix it.
When I write pip install pylinac in anaconda prompt, it appears that:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002242C630FD0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pylinac/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002242B1733D0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pylinac/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002242C6521D0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pylinac/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002242C668A10>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pylinac/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002242C63CDD0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pylinac/
ERROR: Could not find a version that satisfies the requirement pylinac (from versions: none)
ERROR: No matching distribution found for pylinac

Can somebody help me, please?
i have python 3.11.3 and pip 23.1.2

@crcrewso
Copy link
Contributor

Looks like pip couldn't find pypi.org, so it's not a pylinac issue.
Try pip install wheel

@ruipe90
Copy link
Author

ruipe90 commented Jul 25, 2023

Thank you. Now I have fix it but when I have this lines:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Usuario\AppData\Roaming\Python\Python311\site-packages\pylinac_init_.py", line 12, in
from pylinac.ct import CatPhan504, CatPhan600, CatPhan503, CatPhan604
File "C:\Users\Usuario\AppData\Roaming\Python\Python311\site-packages\pylinac\ct.py", line 29, in
from .core import image
File "C:\Users\Usuario\AppData\Roaming\Python\Python311\site-packages\pylinac\core\image.py", line 21, in
from .utilities import is_close, minmax_scale
File "C:\Users\Usuario\AppData\Roaming\Python\Python311\site-packages\pylinac\core\utilities.py", line 2, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (C:\ProgramData\anaconda3\Lib\collections_init_.py)

I have a problem because cannot import name 'Iterable'. Had anyone had this error?

@crcrewso
Copy link
Contributor

crcrewso commented Jul 25, 2023

I'm assuming after installing wheel you've run
pip install -r requirements.txt

I don't know if I've done any testing with Python 3.11. I'd recommend installing 3.10 and seeing what happens

@LuisOlivaresJ
Copy link
Contributor

LuisOlivaresJ commented Jul 25, 2023 via email

@jrkerns
Copy link
Owner

jrkerns commented Jul 26, 2023

@ruipe90 What version are you trying to install? This issue was fixed in 2021: 8de1b54#diff-a59a5d128ea7943015f7f559429a5ede8c9f35de4e8e1164b6bd7f6d91e124cc

@jrkerns
Copy link
Owner

jrkerns commented Aug 15, 2023

Closing due to being stale

@jrkerns jrkerns closed this as completed Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants