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

Python version error #30

Open
sam150122 opened this issue Dec 29, 2023 · 1 comment
Open

Python version error #30

sam150122 opened this issue Dec 29, 2023 · 1 comment

Comments

@sam150122
Copy link

I'm getting this error

ERROR: Package 'party' requires a different Python: 3.8.10 not in '>=3.9,<4.0'

I have python 3.8.10 installed but I've tried 3.11 too
Could it be an issue with python3-pip not installing the correct version?

@darkdragn
Copy link
Owner

I'm so sorry it took me a while to get around to this. A change from 3.8 to 3.9 included some of the typehints and automatic typing I use for the CLI.

But, things get weird if you have multiple versions of python installed and pip likes to default to the system default, so python3-pip would do that a lot too.

The usual solution to this dilemma is to use a virtual environment. Most people use a helper for that like virtualenvwrapper or poetry. But that isn't a requirement. You could always just use the built in venv if those seem too complicated or you don't have the time to familiarize yourself with them.

Here is an example of doing just that:

python3.11 -m venv venv
source venv/bin/activate

# Now the first pip on your path chain will only be for 3.11 from the venv
pip install https://github.com/darkdragn/party/releases/download/v0.7.3/party-0.7.3-py3-none-any.whl

# you can use it without issue now
#if you want to have the CLI available without having to activate the venv every time you can do the following
# this works because the execution path for python is in the CLI wrapper header

cp `which party` $HOME/.local/bin

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

2 participants