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

pls help me ./Storm-Breaker #356

Open
360Gm opened this issue Aug 19, 2024 · 1 comment
Open

pls help me ./Storm-Breaker #356

360Gm opened this issue Aug 19, 2024 · 1 comment

Comments

@360Gm
Copy link

360Gm commented Aug 19, 2024

ERROR: Invalid requirement: './requirements.txt': Expected package name at the start of dependency specifier
./requirements.txt
^
Hint: It looks like a path. The path does exist. The argument you provided (./requirements.txt) appears to be a requirements file. If that is the case, use the '-r' flag to install the packages specified within it.
An error occurred! seems pip doesn't work.

i have try
pip install -r requirements.txt
pip3 install -r requirements.txt
chmod 644 requirements.txt
Screenshot from 2024-08-20 01-57-24
Screenshot from 2024-08-20 01-57-24

@Gr3ghammett
Copy link

Gr3ghammett commented Sep 7, 2024

This is what I did to fix the issue when I ran into this.

First I backed up the current install file (I always do this when I'm about to alter a file of this nature.) From the Storm-Breaker directory run:
cp install.sh install.sh.bu

Next i vim into the file:
vim install.sh

I then "paged down" through the file and all instances of "./requirements.txt", and I changed it to just "requirements.txt" (no quotes of course)

and also removed "--break-system-packages" on the line (also removing the ./ in front of requirements.txt like stated above):
"env python3 -m pip install -r --break-system-packages ./requirements.txt"

I reran install.sh and it worked perfectly.

The install file may need to be updated by the developer for this, if this error is pretty common.

Hope this helps!

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