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

Apple M1, poetry and tensorflow #868

Closed
1 of 2 tasks
oscar-defelice opened this issue Jul 27, 2022 · 5 comments
Closed
1 of 2 tasks

Apple M1, poetry and tensorflow #868

oscar-defelice opened this issue Jul 27, 2022 · 5 comments

Comments

@oscar-defelice
Copy link

oscar-defelice commented Jul 27, 2022

Reporting a bug

  • I have tried using the latest released version of llvmlite (most recent is
    visible in the change log (https://github.com/numba/llvmlite/blob/main/CHANGE_LOG).
  • I have included a self contained code sample to reproduce the problem.
    i.e. it's possible to run as 'python bug.py'.

I am trying to add tensorflow and its dependencies on my project on a machine with an apple M1 processor with poetry. Notably, llvmlite is a tensorflow dependency. As far as I get from this issue this is due to the lack of a pre build wheel for M1.

Here is the output of poetry add tensorflow

note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure
  
  × Encountered error while trying to install package.
  ╰─> llvmlite
  
  note: This is an issue with the package mentioned above, not pip.
  hint: See above for output from the failure.
 
@esc
Copy link
Member

esc commented Jul 27, 2022

I am trying to add tensorflow and its dependencies on my project on a machine with an apple M1 processor with poetry. Notably, llvmlite is a tensorflow dependency. As far as I get from this issue this is due to the lack of a pre build wheel for M1.

@oscar-defelice thank you for reporting this. Various questions come to mind:

Obviously, this is speculative, if you can get poetry to give you a more detailed error message that would be useful. Also, instructions on how to reproduce this (commands, environments, etc..) would also be useful as this would allow an llvmlite developer to try to reproduce your issue. Thank you!

@oscar-defelice
Copy link
Author

oscar-defelice commented Jul 27, 2022

Hello @esc, thank you for your quick reply. Actually I opened an initial issue in poetry and they told me to come here 😃 python-poetry/poetry#6079

I also believe it is there problem, indeed it seems poetry does not find a suitable version of llvmlite and tensorflow as well.

@oscar-defelice
Copy link
Author

This is the output of the command poetry add llvmlite --lock -vvv explicitly.

@dimbleby
Copy link

that does not show any error at all

@esc
Copy link
Member

esc commented Aug 30, 2022

I am closing this now as no new information has been shared. I saw that some issues related to poetry were due to stale caches. I am assuming this issue has been resolved by now but feel free to speak up, if this is not the case.

@esc esc closed this as completed Aug 30, 2022
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

3 participants