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

Error: No module named arma #6

Closed
cdeil opened this issue Mar 16, 2015 · 6 comments
Closed

Error: No module named arma #6

cdeil opened this issue Mar 16, 2015 · 6 comments

Comments

@cdeil
Copy link

cdeil commented Mar 16, 2015

A colleague of mine asked me to install spectrum.

I get a few errors with Python 3 and an ImportError for arma (that is also there for Python 2).

$ pip install spectrum --user
Collecting spectrum
  Downloading spectrum-0.6.0.tar.gz (92kB)
    100% |################################| 94kB 794kB/s 
Requirement already satisfied (use --upgrade to upgrade): matplotlib in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from spectrum)
Requirement already satisfied (use --upgrade to upgrade): numpy in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from spectrum)
Requirement already satisfied (use --upgrade to upgrade): scipy in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from spectrum)
Collecting easydev (from spectrum)
  Downloading easydev-0.8.3.tar.gz (43kB)
    100% |################################| 45kB 4.0MB/s 
Requirement already satisfied (use --upgrade to upgrade): six>=1.4 in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from matplotlib->spectrum)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from matplotlib->spectrum)
Requirement already satisfied (use --upgrade to upgrade): pytz in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from matplotlib->spectrum)
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.6 in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from matplotlib->spectrum)
Collecting ordereddict (from easydev->spectrum)
  Downloading ordereddict-1.1.tar.gz
Installing collected packages: ordereddict, easydev, spectrum
  Running setup.py install for ordereddict
  Running setup.py install for easydev
    Fixing build/lib/easydev/__init__.py build/lib/easydev/codecs.py build/lib/easydev/config_tools.py build/lib/easydev/console.py build/lib/easydev/copybutton.py build/lib/easydev/decorators.py build/lib/easydev/dependencies.py build/lib/easydev/doc.py build/lib/easydev/easytest.py build/lib/easydev/logging_tools.py build/lib/easydev/misc.py build/lib/easydev/multicore.py build/lib/easydev/multigit.py build/lib/easydev/multisetup.py build/lib/easydev/package.py build/lib/easydev/paths.py build/lib/easydev/progressbar.py build/lib/easydev/setuptools.py build/lib/easydev/sphinx_themes.py build/lib/easydev/tools.py build/lib/easydev/url.py
    Fixing build/lib/easydev/__init__.py build/lib/easydev/codecs.py build/lib/easydev/config_tools.py build/lib/easydev/console.py build/lib/easydev/copybutton.py build/lib/easydev/decorators.py build/lib/easydev/dependencies.py build/lib/easydev/doc.py build/lib/easydev/easytest.py build/lib/easydev/logging_tools.py build/lib/easydev/misc.py build/lib/easydev/multicore.py build/lib/easydev/multigit.py build/lib/easydev/multisetup.py build/lib/easydev/package.py build/lib/easydev/paths.py build/lib/easydev/progressbar.py build/lib/easydev/setuptools.py build/lib/easydev/sphinx_themes.py build/lib/easydev/tools.py build/lib/easydev/url.py
    Can't parse docstring in build/lib/easydev/codecs.py line 83: TokenError: ('EOF in multi-line statement', (2, 0))
    Can't parse docstring in build/lib/easydev/codecs.py line 85: ParseError: bad input: type=13, value=';', context=('', (85, 24))
    Can't parse docstring in build/lib/easydev/codecs.py line 87: ParseError: bad input: type=13, value=';', context=('', (87, 24))
    Can't parse docstring in build/lib/easydev/codecs.py line 89: ParseError: bad input: type=13, value=';', context=('', (89, 19))
    Can't parse docstring in build/lib/easydev/multigit.py line 173: ParseError: bad input: type=1, value='multigit', context=(' ', (173, 7))
    Can't parse docstring in build/lib/easydev/multisetup.py line 29: ParseError: bad input: type=1, value='multisetup', context=(' ', (29, 7))
    Can't parse docstring in build/lib/easydev/multisetup.py line 30: ParseError: bad input: type=1, value='multisetup', context=(' ', (30, 7))
    Can't parse docstring in build/lib/easydev/multisetup.py line 31: ParseError: bad input: type=1, value='multisetup', context=(' ', (31, 7))
    Can't parse docstring in build/lib/easydev/multisetup.py line 141: ParseError: bad input: type=1, value='multisetup', context=(' ', (141, 7))
    Can't parse docstring in build/lib/easydev/multisetup.py line 144: ParseError: bad input: type=1, value='multisetup', context=(' ', (144, 7))
    Can't parse docstring in build/lib/easydev/multisetup.py line 147: ParseError: bad input: type=1, value='multisetup', context=(' ', (147, 7))
    Can't parse docstring in build/lib/easydev/tools.py line 169: ParseError: bad input: type=11, value=':', context=('', (169, 20))
    Installing multigit script to /Users/deil/Library/Python/3.4/bin
    Installing easydev_buildPackage script to /Users/deil/Library/Python/3.4/bin
  Running setup.py install for spectrum
    building 'spectrum.mydpss' extension
    /usr/bin/clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -I/opt/local/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c src/cpp/mydpss.c -o build/temp.macosx-10.10-x86_64-3.4/src/cpp/mydpss.o
    /usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names build/temp.macosx-10.10-x86_64-3.4/src/cpp/mydpss.o -o build/lib.macosx-10.10-x86_64-3.4/spectrum/mydpss.so
      File "/Users/deil/Library/Python/3.4/lib/python/site-packages/spectrum/psd.py", line 303
        print """To be use with care. THis function is there just to help, it
                does not populate the proper attribute except psd."""
                                                                    ^
Successfully installed easydev-0.8.3 ordereddict-1.1 spectrum-0.6.0
eduroam-3-163:associations deil$ ipython
Python 3.4.3 (default, Mar 10 2015, 14:53:35) 
Type "copyright", "credits" or "license" for more information.

IPython 3.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import spectrum
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-c2dabc14c746> in <module>()
----> 1 import spectrum

/Users/deil/Library/Python/3.4/lib/python/site-packages/spectrum/__init__.py in <module>()
      2 default_NFFT = 4096
      3 
----> 4 import arma
      5 import burg
      6 import cholesky

ImportError: No module named 'arma'
@cokelaer
Copy link
Owner

cokelaer commented Sep 7, 2015

Hi,
This may not be relevant anymore but looking at this issue 6 months later, I cannot reproduce this bug under Python 3.4.1 with the current version of spectrum (0.6.1) using either the source code or the version posted on pypi.
best
Thomas

@cokelaer cokelaer closed this as completed Sep 7, 2015
@ergindemir
Copy link

Same issue with Raspberry pi + python 3.5. Works fine under Windows.

@JanCBrammer
Copy link

JanCBrammer commented Nov 6, 2019

@ergindemir, @cokelaer, same issue here (Python 3.5 on Raspbian and spectrum 0.9 as well as 0.7.5). Did you find a solution?

@PokerMakyo
Copy link

I'm also experiencing this issue on Raspbian GNU/Linux 10 (buster).

@adessein
Copy link

adessein commented Dec 21, 2019

I have tried again with the master version from this git repository (0.7.5), as well as from pip (0.7.5) and I have no problem since in __init__.py
import arma
has been changed for
from .arma import *
tested both with Python 2.7.16 and Python 3.7.3 on Debian (4.19.0-6-amd64).
How can that be a problem related to Raspbian ?

@EvanKat
Copy link

EvanKat commented Oct 31, 2023

The same problem with spectrum using python 3.11.2 at a raspberry pi4 model b (version 12 bookworm).
Using pip install spectrum at 31/10/23, the spectrum module installed is 0.9 .
While looking around to the files and comparing it to the github's version 0.8.1 witch is saying is the latest (?) I detect some differences that didn't make sense (i suppose so).
After all using the commands
pip install git+https://github.com/cokelaer/spectrum.git
or
pip install spectrum==0.8.1
the problem gone and no dependencies errors.

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

7 participants