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

setup.py missing? #28

Open
H-s-O opened this issue Mar 31, 2025 · 1 comment
Open

setup.py missing? #28

H-s-O opened this issue Mar 31, 2025 · 1 comment

Comments

@H-s-O
Copy link

H-s-O commented Mar 31, 2025

When trying to install your package with python3.9 -m pip install -e "git+https://github.com/cvg/GeoCalib#egg=geocalib", this happens:

python_version >= "3.9"->torch->geocalib) (1.3.0)
Installing collected packages: geocalib
  Running setup.py develop for geocalib
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/hso/src/geocalib/setup.py'"'"'; __file__='"'"'/home/hso/src/geocalib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /home/hso/src/geocalib/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.9/tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/home/hso/src/geocalib/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/hso/src/geocalib/setup.py'"'"'; __file__='"'"'/home/hso/src/geocalib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.

I can confirm that the repo was successfuly cloned to /home/hso/src/geocalib, however the setup.py file is absent.

Am I missing something?

Thanks!

@sarlinpe
Copy link
Member

The package is defined in pyproject.toml, which is an alternative to setup.py. The error that you observe is most likely due to an outdated version of pip, run python3.9 -m pip install --upgrade pip to upgrade.

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