arkrow/PyMusicLooper

Version on pip is not the latest

Closed this issue · 7 comments

Despite https://pypi.org/project/pymusiclooper/ showing 3.1.0, installing it with pipx and running pymusiclooper --version tells you that 2.5.3 is installed.

My current workaround: downloading the repo, running poetry install, aliasing pymusiclooper to poetry --directory [repo directory] run -q pymusiclooper, although poetry has to startup each time, which is slow, so this isn't that great a workaround.

arkrow commented

There are likely several pymusiclooper installations on your system, the order/priority of which are determined by your PATH order. Since you're getting 2.5.3, you likely installed it through pip, so remove your current alias and run pip uninstall pymusiclooper to remove the old version. pymusiclooper should be using the version installed by pipx then.

To confirm, run where.exe pymusiclooper (Windows) or which pymusiclooper (Linux) to determine the path of the invoked pymusiclooper command.

That's not the case I'm afraid. pipx even says "installed package pymusiclooper 2.5.3" when I run pipx install pymusiclooper.

arkrow commented

Which python version are you using? PyMusicLooper versions >=3.0 support Python 3.9 - 3.11. If you have a lower version, I imagine that is most likely why it is installing 2.5.3, since that is the last version compatible with Python 3.6 and above.

Ah I see. Unfortunately I get this error when specifying the python version. Although I guess this is a pipx issue?

$ pipx install pymusiclooper --python $(which python3.11)
/usr/bin/pipx:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
Error: Command '['/home/user/.local/pipx/venvs/pymusiclooper/bin/python3.11', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
'/usr/bin/python3.11 -m venv /home/user/.local/pipx/venvs/pymusiclooper' failed
arkrow commented

Since pipx was installed using a relatively outdated Python version, I'd assume pipx is also on a lower version for compatibility reasons. If you need the older Python installation, you can use something like pyenv to manage your python versions. Uninstall pymusiclooper and pipx (if PyMusicLooper was the only library installed using it), switch python versions using pyenv to a compatible Python version (3.9-3.11) and follow the installation as normal, namely:

pip install pipx
pipx ensurepath
pipx install pymusiclooper

I believe that should be the simplest and least disruptive solution to your issue.

arkrow commented

Since the problem is related to your machine's environment, rather than an issue with PyMusicLooper itself, I will be closing this issue.

I haven't been able to sort this out fully, but yeah it doesn't seem to be a pymusiclooper issue.