Open bendichter opened 4 years ago
this worked for me
edit: actually I am not sure it worked
(sima2) Bens-MacBook-Pro-2:sima bendichter$ find . -name '*.pyx' -exec cython {} \;
/Users/bendichter/opt/anaconda3/envs/sima2/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/bendichter/dev/sima/sima/segment/_opca.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
/Users/bendichter/opt/anaconda3/envs/sima2/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/bendichter/dev/sima/sima/motion/_motion.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
>>> import sima
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bendichter/dev/sima/sima/__init__.py", line 6, in <module>
from sima.imaging import ImagingDataset
File "/Users/bendichter/dev/sima/sima/imaging.py", line 35, in <module>
from sima.segment import ca1pc
File "/Users/bendichter/dev/sima/sima/segment/__init__.py", line 11, in <module>
from .stica import STICA
File "/Users/bendichter/dev/sima/sima/segment/stica.py", line 15, in <module>
from . import oPCA
File "/Users/bendichter/dev/sima/sima/segment/oPCA.py", line 18, in <module>
from . import _opca
ImportError: cannot import name '_opca' from 'sima.segment' (/Users/bendichter/dev/sima/sima/segment/__init__.py)
This problem is not present in python 3.6, only in python 3.7
I had a similar issue while installing sima. There is no 'wheels' dist for sima yet and depending on the pip version you're using, it will look for this. It might be working on the older python version because of an older pip version. The work around is to install a wheels dist of sima from here
and run:
pip install <filename.whl>
I think the wheels dist needs to be published on PiPY for the standard 'pip install sima' to work
I had a similar issue while installing sima. There is no 'wheels' dist for sima yet and depending on the pip version you're using, it will look for this. It might be working on the older python version because of an older pip version. The work around is to install a wheels dist of sima from here and run:
pip install <filename.whl>
This is a solution for Windows users, but @bendichter is on Mac OSX.
I similarly can't get a wheel of sima to compile on Ubuntu for Python 3.7 or 3.8, and so can't install it on Python 3.7 or 3.8.
I had a similar issue while installing sima. There is no 'wheels' dist for sima yet and depending on the pip version you're using, it will look for this. It might be working on the older python version because of an older pip version. The work around is to install a wheels dist of sima from here and run:
pip install <filename.whl>
Hi, This solution does not work for me. I use windows 10 and python 3.7 and I get this error: ...\cl.exe' failed with exit status 2
This problem is not present in python 3.6, only in python 3.7
I had no issues with installing in an environment with Python version 3.6.13. Did not work for recent versions (e.g. 3.9.5).