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

metadata-generation-failed #390

Closed
osama1998H opened this issue Sep 11, 2022 · 18 comments
Closed

metadata-generation-failed #390

osama1998H opened this issue Sep 11, 2022 · 18 comments

Comments

@osama1998H
Copy link

Describe the bug
Error when generating metadata on this step(Preparing metadata (pyproject.toml) did not run successfully.)

To Reproduce
Steps to reproduce the behavior (if applicable)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

System information:

  • p5 release (version number or latest commit): latest version
  • Python versions: 3.10 and 3.9
  • Operating system: windows 10 x64

Additional context
Add any other context about the problem here.

@github-actions
Copy link
Contributor

Thank you for submitting your first issue to p5py

@tushar5526
Copy link
Member

Hi, can you share the steps that produced this? Did this happen while you were trying to install the library?

@osama1998H
Copy link
Author

Hi @tushar5526
Its just one step
Pip install p5
It's download successfully but after this throwing an error

@tushar5526
Copy link
Member

tushar5526 commented Sep 12, 2022

I tried installing p5 from the source and it was installed properly. Can you try upgrading the pip and reinstalling everything in a fresh virtual environment?

@phildub64
Copy link

I have the same issue. I upgraded everything (pip included) and always metadata error.

@tushar5526
Copy link
Member

There seems to be some installation problem with numpy. Try installing the dependencies manually, more specifically, try this.

pip install numpy
pip install p5 or build from the latest commit in a fresh environment

@osama1998H
Copy link
Author

There seems to be some installation problem with numpy. Try installing the dependencies manually, more specifically, try this.

pip install numpy pip install p5 or build from the latest commit in a fresh environment

I have numpy installed on my computer

@tushar5526
Copy link
Member

https://github.com/p5py/p5/blob/master/docs/install.rst
There are some other ways to install p5, you can see here. The docs will be updated in the new release soon

@tushar5526
Copy link
Member

I have numpy installed on my computer

Can you try installing everything in a fresh python virtual environment?

@semacki2
Copy link

semacki2 commented Sep 14, 2022

I have numpy installed on my computer

Can you try installing everything in a fresh python virtual environment?

I'm experiencing the same error.
I created a new virtual environment with python 3.8 and only ran
pip install p5
and it installed without error; however, when I try to run a basic script :
image

I get the following runtime error:
ModuleNotFoundError: No module named 'p5'

@tushar5526
Copy link
Member

tushar5526 commented Sep 15, 2022

Hi, you have to set up VS code to use the new virtual environment that you have created. It's generally Ctrl + Shift + P -> Select Python interpreter -> select your virtual environment.

You can also google how to select your virtual environment in vscode.

I will also recommend trying the new 2D renderer skia for better performance.

p5.run(renderer="skia")

@osama1998H
Copy link
Author

@tushar5526
I installed release 0.7.1 and its works correctly on my laptop
but 0.8.0 not working

@ziyaointl
Copy link
Member

I was able to reproduce this issue on windows using Python 3.10 installing from pypi.

Installing directly from the latest source code resolved the numpy issue, but installation for pyopengl-accelerate was failing. I wasn't able to resolve this by tweaking the versions in the requirements.txt, so I manually downloaded wheels files and installed them using the instructions here: https://stackoverflow.com/questions/59725675/need-to-install-pyopengl-windows.

@tushar5526
Copy link
Member

@tushar5526 I installed release 0.7.1 and its works correctly on my laptop but 0.8.0 is not working

You could try installing from the source and using python versions >= 3.7 and <= 3.9, by the time we fix it for 3.10

@tushar5526
Copy link
Member

It seems, pyopengl accelerate does not support 3.10 for Linux as of now. We would have to wait for them to fix it. If someone still wants to use python 3.10 for some reason, they could use the workaround mentioned here mcfletch/pyopengl#74 (comment), else we will recommend sticking to python versions from 3.7 to 3.9

@phildub64
Copy link

For me, it doesn't work with python 3.9 and 3.10. 3.8 is ok.

@tushar5526
Copy link
Member

#398 would fix this

@tushar5526
Copy link
Member

Closing this by #398

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

5 participants