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

issue installing 0.23.0: error: [Errno 2] No such file or directory: 'cargo' #1299

Closed
dalybrown opened this issue Aug 27, 2024 · 4 comments
Closed
Labels

Comments

@dalybrown
Copy link

When trying to install the latest version 0.23.0 I get the following error:

...
[link library] librflxlang.so
error: [Errno 2] No such file or directory: 'cargo'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for RecordFlux
...

What is the cargo dependency here? Is this a new dependency on Rust? I previously had 0.19.0 installed. I'm not sure how to work around this at the moment. Please advise - thanks!

@dalybrown dalybrown added the bug label Aug 27, 2024
@kanigsson
Copy link
Collaborator

This is indeed a new dependency on Rust. See also this new part of the User's guide.

@dalybrown
Copy link
Author

Ah ok. I thought it was optional for some reason (I saw that in the users guide, didn't register that it was mandatory).

Thanks!

p.s. what was the reason you introduced a rust dependency?

@treiher
Copy link
Collaborator

treiher commented Aug 28, 2024

We are rewriting some parts in Rust to enhance performance and enable new features, such as automatic test case generation, where Python would be too slow.

We provide wheels with precompiled libraries for systems with glibc 2.35+ (e.g., Ubuntu 22.04). So on these systems no Rust compiler is needed when installing RecordFlux from PyPI. Unfortunately, we cannot provide wheels for systems with older glibc at the moment.

@dalybrown
Copy link
Author

Gotcha. I was wondering because my colleague uses an amd64 machine and didn't have the same issue whereas I use an arm64 machine and ran into this. I guess there is no precompiled library for arm64.

I'll just install rust manually then.

How come you didn't use Ada/SPARK to rewrite?

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

No branches or pull requests

3 participants