No module named “info” on new Python 3 installation

I did a new install of python3 on OSX via homebrew:

brew install python3

Then I created a virtual environment for my project and installed scipyand scikits.samplerate:

virtualenv -p /usr/local/bin/python3 pythen_env 
pip install scipy
pip install scikits.samplerate

However, when I try to import a function from scikits.samplerate, I get the following error:

>>> from scikits.samplerate import resample
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/my/project/path/pythen_env/lib/python3.6/site-packages/scikits/samplerate/__init__.py", line 4, in <module>
    from info import __doc__
ModuleNotFoundError: No module named 'info'

Information is the first module from the package itself, which is imported into __init__.py.

Oddly enough, the module info.pyexists in /my/project/path/pythen_env/lib/python3.6/site-packages/scikits/samplerate/:

ls /my/project/path/pythen_env/lib/python3.6/site-packages/scikits/samplerate/
__init__.py    setup.py        tests        __pycache__
info.py        setuphelp.py    version.py

The error also occurs when I try to do the same without virtualenv, as well as for other packages. How can I start debugging this problem?

+4
source share
2

, scikits.samplerate Python 3.X(. issue). , Python 3.X.

$ pip install git+https://github.com/gregorias/samplerate.git

: , . , gregorias.

+1

git py3

https://github.com/cournape/samplerate

( PR @gregorias)

pypi ...

+1

Source: https://habr.com/ru/post/1673801/


All Articles