question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation problems on Mac M1 due to tensorflow, and Linux due to Python Levenshtein

See original GitHub issue

Describe the bug Installing sfaira via pip and trying to output help gives this error message:

(base) % sfaira -h
zsh: illegal hardware instruction  sfaira -h
(base) % /opt/anaconda3/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 4 leaked semaphore objects to clean up at shutdown

I assume it’s due to Python 3.9, will confirm by checking with a 3.8 environment a bit later. Compatibility with 3.9 would still be great! 😅

System:

  • OS: macOS 12.0.1
  • Language Version: Python 3.9
  • Virtual environment: Conda

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
falexwolfcommented, Mar 9, 2022

Thank you! I’ll try to get it to work!

Also appreciate you moving to make TensorFlow an optional dependency!

0reactions
davidsebfischercommented, Mar 9, 2022

Yes, this preinstallation was successful here https://github.com/theislab/sfaira/issues/377, I would imagine it is easier now though. We are also going to make tf an optional dependency fairly soon, we are wrapping up some improvements in the data submodule right now and will then make some changes to the models submodule (where this is imported).

Read more comments on GitHub >

github_iconTop Results From Across the Web

M1 Tensorflow installation fails | Apple Developer Forums
Dear community, I recently got my new Macbook with Apple M1 chip. I'm trying to install Tensorflow according to the guide found at...
Read more >
Package installation issues | PyCharm Documentation
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal. If you get...
Read more >
command 'gcc' failed with exit status 1 while installing eventlet ...
Your install is failing because you don't have the python development headers installed. You can do this through apt on ubuntu/debian with:
Read more >
how to install python 3.9.6 using homebrew on Mac m1
Im new to programming and stuff and was looking to install python 3.9.6 using home-brew. To do that would I just have to...
Read more >
python-Levenshtein - PyPI
Introduction. The Levenshtein Python C extension module contains functions for fast computation of: · Requirements. Python 3.6 or later · Installation. pip ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found