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

Metadata Generation Issue #1383

Open
savagemiguel opened this issue Dec 12, 2024 · 0 comments
Open

Metadata Generation Issue #1383

savagemiguel opened this issue Dec 12, 2024 · 0 comments

Comments

@savagemiguel
Copy link

Hello,

I am still very new to GitHub, so I do heavily apologize if this was not the correct way to go about submitting an issue when it comes to this kind of thing.

I wanted to reference this line here on your upgrade script:

pip install --upgrade setuptools packaging

I had a plethora of python nonsense spit out at me when I tried to upgrade using CP's documentation on upgrading from the website with the one line of code. At the very end of the 45 lines of errors was this:
TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'.

Naturally, I opened the file to see why I was given the TypeError... nothing was wrong.

Turns out this is an error I believe within setuptools? Not 100% sure. However, there are multiple PRs on GitHub with similar if not same exact issues and errors that I had. I did some testing of my own and found that if you get rid of the fix you implemented "## fix for pip issue on ubuntu 22" and change the packages you install to something like this:
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libssl-dev libffi-dev python3-dev
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-venv
DEBIAN_FRONTEND=noninteractive add-apt-repository universe -y
DEBIAN_FRONTEND=noninteractive apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip

and then go down and replace each of your lines that have:
pip install --upgrade setuptools packaging

with this:
pip install --upgrade setuptools>=75 packaging>=25

the 45 lines of errors I received will go away and the upgrade script will be able to run successfully.

Also, the very last thing that I am very confused about is:
wget https://cyberpanel.sh/www.litespeedtech.com/packages/lsapi/wsgi-lsapi-2.1.tgz
just returns a 500 error. Even doing http:// and even doing http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-2.1.tgz

That's the very last part of the script that I cannot get to work and I cannot find anywhere on Google except for 10 year old posts on the forum when that litespeed API version was released.

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

1 participant