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

installation with pip fails #49

Closed
rpoteau opened this issue Nov 11, 2023 · 4 comments
Closed

installation with pip fails #49

rpoteau opened this issue Nov 11, 2023 · 4 comments

Comments

@rpoteau
Copy link

rpoteau commented Nov 11, 2023

Hello
the installation fails. The final message says

  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pybinding
Running setup.py clean for pybinding
Failed to build pybinding
ERROR: Could not build wheels for pybinding, which is required to install pyproject.toml-based projects

Thank you for your help
Romuald

@BertJorissen
Copy link
Collaborator

Hi Romuald
this error is a generic error that the compilation on your system didn't work.
Can you specify the operating system and python version?
If pip cannot find a pre compiled version, it will try to compile it. This message just says that it didn't work.
Now you have two options:

  1. use the new (development) version that has a lot of pre compiled versions by pip install -i https://test.pypi.org/simple/ pybinding
  2. provide a more detailed error message so that we can know what didn't work

I would only say to compile from source when you're doing quite intensive calculations, where you're running pybinding for hours on a cluster.
The first option is perfect for just configuring a system and doing smaller-scale caltulations.
Anyway, when you really want to have a fast and preformant calculation, you'll need to have a look at the quantum-KITE project.
Let me know if the first option worked out for you.
Best
Bert

@rpoteau
Copy link
Author

rpoteau commented Nov 11, 2023 via email

@BertJorissen
Copy link
Collaborator

Did the installation of the new version work?
Otherwise, you'll have to add the pip install pybinding --verbose option for the full logs.
Your mails will be displayed on the public GitHub automatically, and I couldn't see your attachment.
Bert

@rpoteau
Copy link
Author

rpoteau commented Nov 12, 2023

Hi again
yes; it works :-)
Thanks a lot
Best
Romuald

Le 11/11/2023 à 21:02, Bert Jorissen a écrit :

pip install -i https://test.pypi.org/simple/ pybinding

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