8000 not able to pip install the library · Issue #82 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

not able to pip install the library #82

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

Closed
akshayacharya97 opened this issue Jul 3, 2020 · 12 comments
Closed

not able to pip install the library #82

akshayacharya97 opened this issue Jul 3, 2020 · 12 comments

Comments

@akshayacharya97
Copy link
akshayacharya97 commented Jul 3, 2020

pip3 install python-kasa
is giving me error "Could not find a version that satisfies the requirement python-kasa (from versions: )
No matching distribution found for python-kasa"
how do i resolve it?
i am using python 3.6 on ubuntu.

@rytilahti
Copy link
Member

There is only a pre-release available at the moment, so you have to define --pre to install.

@mirsella
Copy link
mirsella commented Jul 4, 2020

sorry my problem is probably dumb but....

pip3 install --pre python-kasa
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement python-kasa (from versions: none)
ERROR: No matching distribution found for python-kasa

@rytilahti
Copy link
Member

That's odd, it's working just fine here (just tested with a clean virtualenv):

$ pip install python-kasa --pre
Collecting python-kasa
  Downloading python_kasa-0.4.0.dev0-py3-none-any.whl (81 kB)
     |████████████████████████████████| 81 kB 74 kB/s 
Processing /home/hass/.cache/pip/wheels/41/3b/01/545c87f0b59245a1306d7e3b926200fb640e976b814863b16b/asyncclick-7.0.9-py2.py3-none-any.whl
Collecting importlib-metadata
  Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting anyio
  Downloading anyio-1.3.1-py3-none-any.whl (35 kB)
Collecting zipp>=0.5
  Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
Collecting async-generator
  Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting sniffio>=1.1
  Using cached sniffio-1.1.0-py3-none-any.whl (4.5 kB)
Installing collected packages: async-generator, sniffio, anyio, asyncclick, zipp, importlib-metadata, python-kasa
Successfully installed anyio-1.3.1 async-generator-1.10 asyncclick-7.0.9 importlib-metadata-1.7.0 python-kasa-0.4.0.dev0 sniffio-1.1.0 zipp-3.1.0

@mirsella
Copy link
mirsella commented Jul 5, 2020

lmao. just tested by replacing pip with pip3.8 (i tested every pip2 version and pip3 version but not pip3.8). in any case it's sad that we can't anymore use kava after the firmware update :(

for me issue is closed. thanks

@akshayacharya97
Copy link
Author

@rytilahti still getting the same error

$ pip3 install python-kasa --pre
Collecting python-kasa
Could not find a version that satisfies the requirement python-kasa (from versions: )
No matching distribution found for python-kasa

$ pip install python-kasa --pre
Collecting python-kasa
Could not find a version that satisfies the requirement python-kasa (from versions: )
No matching distribution found for python-kasa

@mirsella
Copy link
mirsella commented Jul 6, 2020

@akshayacharya97 did you try with pip3.8 ? it's the only one who worked for me.

1 similar comment
@mirsella
Copy link
mirsella commented Jul 6, 2020

@akshayacharya97 did you try with pip3.8 ? it's the only one who worked for me.

@akshayacharya97
Copy link
Author

@akshayacharya97 did you try with pip3.8 ? it's the only one who worked for me.

i did try and i am getting an error...
$ pip3.8 install python-kasa --pre
bash: pip3.8: command not found

@mirsella
Copy link
mirsella commented Jul 6, 2020

it's because pip3.8 is not installed or in your path.
if you have python3.8 installed, try python3.8 -m pip install python-kasa --pre

@rytilahti
Copy link
Member

What does pip --version say? Are you sure you are using python3?

If yes, you can also try to request install the specific version directly:

$ pip install python-kasa==0.4.0.dev0
Collecting python-kasa==0.4.0.dev0
  Using cached python_kasa-0.4.0.dev0-py3-none-any.whl (81 kB)
Collecting importlib-metadata
  Using cached importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Processing /home/hass/.cache/pip/wheels/41/3b/01/545c87f0b59245a1306d7e3b926200fb640e976b814863b16b/asyncclick-7.0.9-py2.py3-none-any.whl
Collecting zipp>=0.5
  Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
Collecting anyio
  Using cached anyio-1.3.1-py3-none-any.whl (35 kB)
Collecting async-generator
  Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting sniffio>=1.1
  Using cached sniffio-1.1.0-py3-none-any.whl (4.5 kB)
Installing collected packages: zipp, importlib-metadata, async-generator, sniffio, anyio, asyncclick, python-kasa
Successfully installed anyio-1.3.1 async-generator-1.10 asyncclick-7.0.9 importlib-metadata-1.7.0 python-kasa-0.4.0.dev0 sniffio-1.1.0 zipp-3.1.0

@akshayacharya97
Copy link
Author

@mirsella @rytilahti thanks a lot guys.
i had python 2.7 as default which i had no idea. i changed the default to 3.8 and upgraded pip.
its working now.
Cheers!

@rytilahti
Copy link
Member

Glad you got it working, let's close this then!

< 4CAD /div>
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

3 participants
0