I can import mingus but sublibraries such as mingus.extra.lilypond give me an error:
import mingus.core.notes
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import mingus.core.notes
File "C:\Users\PharaohZz\AppData\Local\Programs\Python\Python36\lib\site-packages\mingus\core\notes.py", line 29, in <module>
from mt_exceptions import NoteFormatError, RangeError, FormatError
ModuleNotFoundError: No module named 'mt_exceptions'
or
import mingus.extra.lilypond
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import mingus.extra.lilypond
File "C:\Users\PharaohZz\AppData\Local\Programs\Python\Python36\lib\site-packages\mingus\extra\__init__.py", line 20, in <module>
import lilypond
ModuleNotFoundError: No module named 'lilypond'
You can fix this problem by first uninstalling mingus (pip uninstall mingus).
Then build the library from it's source. To do this:
Download the files from git hub using the command git clone https://github.com/bspaans/python-mingus .
Enter the directory using cd python-mingus.
Finally install it using the command python setup.py install.
This fixed the problem for me.
Related
I have a virtual env and I am trying to install a private (my company's) package into it. I download the tar.gz file in the project repo and then I do pip install pkg_name --find-links=".". But every time I get this error:
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/49/76fpmgk16_149s5r58lk33040000gq/T/pip-install-7ui62a2g/tmprint_1d674d12ea874b83b3fa7ad42797d36d/setup.py", line 2, in <module>
import distutils.command.bdist_conda
ModuleNotFoundError: No module named 'distutils.command.bdist_conda'
I am using python=3.7.4 on macOs.
Any help is really appreciated.
Thanks in advance!
I've installed torch2trt as follows:
git clone https://github.com/NVIDIA-AI-IOT/trt_pose
cd trt_pose
sudo python3 setup.py install
Through a terminal opening python3,i can do the following - HOORAY!
import torch2trt
print(torch2trt.__file__)
/home/user/torch2trt/torch2trt/__init__.py
However when I run my script which imports torch2trt i get the following message:
import torch2trt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.1.0-py3.6.egg/torch2trt/__init__.py", line 14, in <module>
File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.1.0-py3.6.egg/torch2trt/__init__.py", line 7, in load_plugins
ModuleNotFoundError: No module named 'torch2trt.plugins'
Please help my NOOBNESS!
I'm trying to distribute this code through git+pip . I was able to properly create the setup.py file for deployment but after installing the package with:
https://github.com/EKami/kaggle-data-downloader
Running this import gives me an error:
>>> from kaggle_data_downloader import KaggleDataDownloader
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/Ekami/Programs/anaconda/envs/tensorflow/lib/python3.6/site-packages/kaggle_data_downloader/KaggleDataDownloader.py", line 3, in <module>
import utils
ModuleNotFoundError: No module named 'utils'
But with:
>>> import kaggle_data_downloader.utils
It works. It seems KaggleDataDownloader cannot find kaggle_data_downloader.utils. I think I missed something in the setup.py file. Any idea?
Thanks.
I can`t use the pyfcm module because of bellow error message.
How do I fix this error??
>>> from pyfcm import FCMNotification
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from pyfcm import FCMNotification
File "C:\Anaconda3\lib\site-packages\pyfcm\__init__.py", line 6, in <module>
from .fcm import FCMNotification
File "C:\Anaconda3\lib\site-packages\pyfcm\fcm.py", line 1, in <module>
from baseapi import BaseAPI
ImportError: No module named 'baseapi'
If you are running Linux, try running this command in the shell: pip install baseapi.
If you are using an IDE, look for a prompt asking if you want to install this package.
I have installed pymc using easy_install pymc command. While I try to import the package using import pymc.
I am getting following errors :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/__init__.py", line 29, in <module>
from .CommonDeterministics import *
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/CommonDeterministics.py", line 21, in <module>
from .utils import safe_len, stukel_logit, stukel_invlogit, logit, invlogit, value, find_element
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/utils.py", line 14, in <module>
from . import flib
ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory
I am using Ubuntu 12.04 and Python 2.7.
What is the reason for these errors?
Try installing that missing library:
apt-get install libatlas3-base-dev