I get a nomodulefounderror with "numpy" although i installed it. Repository which i want to install: https://github.com/danielriege/tinycar_lib Here the link to the error message: https://paste.pythondiscord.com/JKBA
#๐ Github repo install with pip error
63 messages ยท Page 1 of 1 (latest)
@azure geyser
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
It's missing numpy from setup_requires
And how i can fix it?
Also try running with pip --use-pep517
You mean pip --use-pep517 install git+https://github.com/danielriege/tinycar_lib.git
Yeah does that work?
Nope
What happened?
The same message
Show the full output?
I have installed Numpy and can find it in the packages but how can it not be found during installation
Well there's supposed to be an isolated environment that's created to install the build deps in
But it's finding pybind11 etc
Try adding a pyproject.toml file to a fork with:
[build-system]
requires = ["wheel", "setuptools", "oldest-supported-numpy"]
in
Yes because pybind i installed globally and then it works
Where exactly do I have to create the file in the project?
Ah right, don't have done that. You need pybind in the build-system requires too then
It looks like you didn't install from your fork
There's no forks here https://github.com/danielriege/tinycar_lib/forks
Go here to add a new file
https://github.com/danielriege/tinycar_lib/new/main
Im not the owner of the repo i just want to use it
Yeah the project is broken
And i dont have contact to the owner thats the problem
You don't need it
You can make a fork that works
Then you can make a PR and the original author may even merge it
Yes i know i know the author thats not the problem i could tell him directly but at the moment he isnt here
And i try to run it but if u say its broke i can go ahead with it
Yeah
But we can't manage to get it to work somehow?
Yeah you'll need to make a fork though
So he can sees it and fix?
Yes i want to try all locally first before i fork it
How can i force that while installation my pyproject.toml is used?
Try installing from my fork https://github.com/graingert/tinycar_lib/tree/patch-1
Does this command "pip install git+https://github.com/danielriege/tinycar_lib.git" use your fork?
No
I tried your fork it doesnt change anything
You'll want pip install https://github.com/graingert/tinycar_lib/archive/refs/heads/patch-1.zip
What was the output?
The same again
I don't want to take up too much of your time
Ill try to contact him thanks a lot
What was the output it can't be exactly the same
nvm it worked lol
I am so grateful to you
Ill tell him to change it so it can work
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.