libzt icon indicating copy to clipboard operation
libzt copied to clipboard

pip install libzt returns a "Could not find a version that satisfies the requirement libzt (from versions: none)" error

Open TZR-Redstonemaniac opened this issue 3 years ago • 15 comments

Every time I try and install it, it gives me that error. I am trying to install it in a virtual environment from windows powershell.

TZR-Redstonemaniac avatar Apr 18 '22 10:04 TZR-Redstonemaniac

libzt doesn't support Python 3.10 yet, it only supports Python3.5 to 3.9. You will need to use one of these versions in order to be able to install it.

tralph3 avatar May 03 '22 02:05 tralph3

Sorry for the late reply, when I use python -V It returns "Python 3.9.5" and it still won't install.

TZR-Redstonemaniac avatar May 10 '22 05:05 TZR-Redstonemaniac

Are you sure pip is using that same python version? You can try installing it in the form of python -m pip install libzt instead of calling pip directly, that way you ensure the python version you're using is the one you expect.

If it still fails, then I don't really know. I could install it, but I'm still having troubles importing it (#180) and I can't find a solution, which is halting a project of mine.

tralph3 avatar May 10 '22 05:05 tralph3

I've been away from this repo for some time but I'll try to take a look at these python issues and update it soon.

joseph-henry avatar May 12 '22 16:05 joseph-henry

Here's some new test builds for Python 3.10, I haven't uploaded them to PyPI yet but feel free to test them out by downloading the artifact, extracting the .whl files and installing via something like:

pip3.10 install libzt-1.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

I'm not sure why cibuildwheel's name generation is so wacky this time around but this seems to work on my Linux machine. I'll try to look into making some Windows builds soon.

joseph-henry avatar May 13 '22 15:05 joseph-henry

I will try this on my other pc that has Linux on it when I get a chance and let you know.

TZR-Redstonemaniac avatar May 13 '22 16:05 TZR-Redstonemaniac

Looks like something in Python 3.10's import system broke the package. Nothing in the package structure changed so I'll need to find a workaround.

joseph-henry avatar May 13 '22 19:05 joseph-henry

Ok, I could install the Python 3.10 version, but when I try to import it it fails due to a circular import... apparently.

Python 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libzt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/tralph3/.local/lib/python3.10/site-packages/libzt/__init__.py", line 1, in <module>
    from .libzt import *
  File "/home/tralph3/.local/lib/python3.10/site-packages/libzt/libzt.py", line 13, in <module>
    from . import _libzt
ImportError: cannot import name '_libzt' from partially initialized module 'libzt' (most likely due to a circular import) (/home/tralph3/.local/lib/python3.10/site-packages/libzt/__init__.py)
>>>

tralph3 avatar May 13 '22 23:05 tralph3

No other version of libzt was installed.

tralph3 avatar May 13 '22 23:05 tralph3

Hi! I am having a similar issue when using Pip.

image

I am using python 3.9.13 on Windows 11. Though trying on windows 10 has the same issue!

I see a lot of references to MacOS and linux. Does this not work with Windows?

fregapple avatar Aug 14 '22 07:08 fregapple

bump! Wondering if there has been any work on Windows versions for python 3.10 and above. I halted my project and started something else while I wait as I'd like to use this rather than python's sockets

fregapple avatar Jan 05 '23 22:01 fregapple

@joseph-henry Has this project been abandoned for Windows?

Edit:

For Windows python that is

fregapple avatar Jan 15 '23 06:01 fregapple

@joseph-henry Just checking up and seeing if you have a windows python wheel available.

Cheers

fregapple avatar Feb 14 '23 07:02 fregapple

@joseph-henry bump

fregapple avatar Feb 26 '23 01:02 fregapple

@joseph-henry saw a reddit post recently where you said you'd said you be looking into windows builds. Any luck?

fregapple avatar Mar 22 '23 19:03 fregapple