I am struggling to rectify this error
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import soundfile as sf
Traceback (most recent call last):
File "<ipython-input-5-ae75db7b0c22>", line 4, in <module>
import soundfile as sf
File "...\appdata\local\programs\python\python37\lib\site-packages\soundfile.py", line 163, in <module>
_path, '_soundfile_data', _libname))
OSError: cannot load library 'c:\users\ishpreet\appdata\local\programs\python\python37\lib\site-packages\_soundfile_data\libsndfile64bit.dll': error 0x7e
It looks like your soundfile library is mis-installed, the Python code is present but it's just a wrapper for a native dll which is missing.
The library's community and bug tracker is generally the better place to look for these issues, and indeed it has an issue open indicating that pip 20 mis-installs soundfile (and others) as it grabs the pure-python package instead of the wheel with precompiled libraries.
You may want to either:
wait it out
explicitly install the proper wheel
downgrade to pip 19.3
Related
import glob
import os
from contextlib import closing
from videosequence import VideoSequence
from PIL import Image
import face_recognition
import subprocess
from pytube import YouTube
When I run my project in a venv in Pycharm, this error message shows up
C:/Users/usr/PycharmProjects/project/main.py
Traceback (most recent call last):
File "C:\Users\usr\PycharmProjects\project\main.py", line 4, in <module>
from videosequence import VideoSequence
File "C:\Users\usr\PycharmProjects\project\venv\lib\site-packages\videosequence\__init__.py", line 9, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
From the VideoSequence GitHub page:
The implementation is based on GStreamer and so de facto only works on a modern Unix-alike such as Linux or FreeBSD.
The PyGObject introspection libraries must be installed. (See below.)
You seem to be working on Windows (I do not know whether VideoSequence does in fact work on Windows), and, crucially, it is clear PyGObject is not installed.
It's been a week I have been searching for an answer, but I have not found a way to solve my problem.
I'm running python 3.6 on Windows, and I have this error :
Traceback (most recent call last):
File "C:/Alexis/folder/tag_activity.py", line 10, in <module>
from scipy.spatial.distance import cdist
File "C:\Users\Alexis\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\spatial\__init__.py", line 101, in <module>
from .qhull import *
ImportError: DLL load failed: Le module spécifié est introuvable.
Here is a few lines to give context :
# In tag_activity.py
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial.distance import cdist
import boto3
import requests
# In scipy.spatial module
from .kdtree import *
from .ckdtree import *
from .qhull import *
from ._spherical_voronoi import SphericalVoronoi
from ._plotutils import *
I really don't understand why it doesn't works, because when I try to access .qhull.py file with CTRL+click on Pycharm, I can access the module.
I've tried to reinstall scipy with adequate .whl file (scipy-1.3.1-cp36-cp36m-win_amd64.whl) from Christoph Gohlke website, but it doesn't solve anything.
Edit : I can't install python 3.7, I'm using libraries that aren't supported, and the script will run on servers using python 3.6
try installing through with the standard command line
pip install scipy
or clone on https://files.pythonhosted.org/packages/e1/9e/454b2dab5ee21f66ebf02ddbc63c5f074b21c44e66e1a509b38566cac9d9/scipy-1.3.1-cp37-cp37m-win32.whl
I have a homework to solve a delay differential equation using two packages, ddeint and pydelay. The problem is, I can't import pydelay to my program. It keeps saying that it can't import weave from scipy.
In [1]: import pydelay
Traceback (most recent call last):
File "<ipython-input-1-c7b60806236e>", line 1, in <module> import pydelay
File "c:\python27\lib\site-packages\pydelay\__init__.py", line 9, in <module> from _dde23 import dde23
File "c:\python27\lib\site-packages\pydelay\_dde23.py", line 32, in <module> from scipy import weave
ImportError: cannot import name weave
I use Windows 10 64 bit with Python 2.7, I write my program in Spyder 3.1.4. I have installed numpy 1.13.0+mkl so that I can install ddeint 0.1.2. I also have installed scipy 0.19.1 and weave 0.16.0. From what I've read, the new version of scipy doesn't have weave in it, and pydelay use weave from scipy, so I assume that my problem comes from that.
Is there any way for me to use pydelay with separated weave I've installed?
I'm using sublime text 2 to run python 2.7. I have downloaded and installed mathplotlib. When I type the code:
import matplotlib.pyplot
I'm getting this error.
Traceback (most recent call last):
File "/Volumes/HP v190b/Python - Squash Coursework/squashFINAL.py", line 212, in <module>
import matplot.pyplot as plt
ImportError: No module named matplot.pyplot
Any ideas why? I'm using a Mac!
You may check the dependencies, sometimes you need to install some dependencies so that you can import certain module, take a look at this link http://matplotlib.org/users/installing.html
I am trying to run a python script which has the following statements:
import random as RD
import pylab as PL
import scipy as SP
import networkx as NX
Where can I download these packages?
I have installed these packages and I get the following error when I run my code
I am getting the following error when I run the code
Traceback (most recent call last):
File "C:\Documents and Settings\hplabs\Desktop\Dushyant\networkdemo.py", line 7, in <module>
import pylab as PL
File "C:\Python26\lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 129, in <module>
from rcsetup import defaultParams, validate_backend, validate_toolbar
File "C:\Python26\lib\site-packages\matplotlib\rcsetup.py", line 19, in <module>
from matplotlib.colors import is_color_like
File "C:\Python26\lib\site-packages\matplotlib\colors.py", line 52, in <module>
import numpy as np
ImportError: No module named numpy
Here's a link to the non standard libraries. random is part of the standard library.
matplotlib
scipy
networkX
numpy (reuired by scipy)
'random' is shipped with the standard library
pylab and scipy are part of SciPy
Networkx is available here
random is a standard python library module, no need to install that.
pylab and scipy can be found on the SciPy site
networkx also has a site
BTW: These are all easily found using google.com
When installing Scipy, you also need to install numpy which it depends on. See here. You are getting the error because numpy is not installed on your system.