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

Git clone and pip install results in 'Successfully installed UNKNOWN-0.0.0' #2056

Closed
robmarkcole opened this issue May 10, 2024 · 10 comments
Closed
Labels
dependencies Packaging and dependencies

Comments

@robmarkcole
Copy link
Contributor

Description

As title, it is installed but cannot be imported due to being UNKNOWN

Steps to reproduce

I am in a docker container.

git clone https://github.com/microsoft/torchgeo.git
cd torchgeo
pip install .

Trace:

root@2e5af809535b:/opt/projects/torchgeo# pip install .
Processing /opt/projects/torchgeo
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: UNKNOWN
  Building wheel for UNKNOWN (pyproject.toml) ... done
  Created wheel for UNKNOWN: filename=UNKNOWN-0.0.0-py3-none-any.whl size=1788 sha256=790bd9cdb17fb4aea2f15ca5fe7f8724aeb8c4396fbaf70a64967ca69785a408
  Stored in directory: /tmp/pip-ephem-wheel-cache-udn8olvx/wheels/ab/2c/a0/a7e77a489e21bffde7d78e5a039123dc6589d9fde03ad6c2e3
Successfully built UNKNOWN
Installing collected packages: UNKNOWN
Successfully installed UNKNOWN-0.0.0

Version

main

@adamjstewart
Copy link
Collaborator

I'm not able to reproduce this with pip 23.0 and setuptools 63.4.3. Can you check what setuptools version you're using? We may need to increase the minimum version required.

@adamjstewart adamjstewart added the dependencies Packaging and dependencies label May 10, 2024
@adamjstewart
Copy link
Collaborator

I suspect that this is the same issue as serge-sans-paille/pythran#2196 and we simply need to bump to setuptools 62+, but would like to confirm before fixing.

@adamjstewart
Copy link
Collaborator

I'm able to confirm this issue with setuptools 60, but not with setuptools 61.

@robmarkcole
Copy link
Contributor Author

I have types-setuptools==69.1.0.20240310

@adamjstewart
Copy link
Collaborator

What about setuptools?

@adamjstewart
Copy link
Collaborator

Also try a newer pip if you can.

@robmarkcole
Copy link
Contributor Author

setuptools.__version__
65.5.0

pip 22.0.2

@robmarkcole
Copy link
Contributor Author

Upgraded to pip 24.0 and now Successfully installed torchgeo-0.6.0.dev0

>>> import torchgeo
>>> torchgeo.__version__
'0.6.0.dev0'

@adamjstewart
Copy link
Collaborator

Interesting. Could be related to pypa/setuptools#3269 (a system Python installation interfering with pip's build isolation). Unfortunately we don't have an easy way to check or control the pip version used to install torchgeo. If you're happy now that the install works, I think we can close this. If not, you might have to report something to pip themselves and ask when/where the issue was fixed.

@robmarkcole
Copy link
Contributor Author

Happy to close. I added RUN pip install --upgrade pip to the dockerfile now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Packaging and dependencies
Projects
None yet
Development

No branches or pull requests

2 participants