sporco
sporco copied to clipboard
import issue on mac M1
This error arises when doing simple import such as from sporco import signal
with pycharm
from __future__ import print_function
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from __future__ imports must occur at the beginning of the file
Could you check your sporco
version? Both the dev version and most recent release have this as the first import statement:
from __future__ import absolute_import, division, print_function
which differs from the import in your error message.
@bwohlberg Apologies for the late reply. I tried to install sporoco with both pip and conda method. When I installed through pip, I ran into the same issue of Failed to build pyfftw, when I tried to install via conda.
I got an error message as follows:
(complex) youngwang@DF047 CAO_OCT % conda install -c conda-forge sporco
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- sporco
Current channels:
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.