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

pip install -v -e . has some problem #11

Open
SiHengHeHSH opened this issue Mar 30, 2024 · 2 comments
Open

pip install -v -e . has some problem #11

SiHengHeHSH opened this issue Mar 30, 2024 · 2 comments

Comments

@SiHengHeHSH
Copy link

pip install -v -e .
Using pip 23.3.1 from /home/hsh/anaconda3/envs/diffbev/lib/python3.8/site-packages/pip (python 3.8)
Obtaining file:///home/hsh/2024/DiffBEV
Running command python setup.py egg_info
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/home/hsh/2024/DiffBEV/setup.py", line 177, in
'all': parse_requirements('requirements.txt'),
File "/home/hsh/2024/DiffBEV/setup.py", line 97, in parse_requirements
packages = list(gen_packages_items())
File "/home/hsh/2024/DiffBEV/setup.py", line 85, in gen_packages_items
for info in parse_require_file(require_fpath):
File "/home/hsh/2024/DiffBEV/setup.py", line 80, in parse_require_file
for info in parse_line(line):
File "/home/hsh/2024/DiffBEV/setup.py", line 54, in parse_line
info['package'] = line.split('#egg=')[1]
IndexError: list index out of range
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@northpoleforce
Copy link

northpoleforce commented Apr 1, 2024

Hi! @SiHengHeHSH Hope to help you.
u can edit DiffBEV/setup.py to

# if line.startswith('-e '):
if line.startswith('-e ') and '#egg=' in line:

then, this problem is fixed, but it lead a new problem here #12 !

@SiHengHeHSH
Copy link
Author

Thank you very much! The code also lacks of the config file so that it compleletely cannot be reproduced successfully.

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