I am on Windows 10 and using python 3.7 through the command prompt.
Whenever I try to import the seaborn library through the command prompt, I get the error:
C:\Python Stuff>python3
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 01:54:44) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import seaborn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\seaborn\__init__.py", line 6, in <module>
from .rcmod import *
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\seaborn\rcmod.py", line 5, in <module>
from . import palettes, _orig_rc_params
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\seaborn\palettes.py", line 12, in <module>
from .utils import desaturate, set_hls_values, get_color_cycle
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\seaborn\utils.py", line 7, in <module>
from scipy import stats
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\stats\__init__.py", line 384, in <module>
from .stats import *
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\stats\stats.py", line 179, in <module>
from scipy.spatial.distance import cdist
File "C:\Users\berre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\spatial\__init__.py", line 99, in <module>
from .qhull import *
ImportError: DLL load failed: The specified module could not be found.
How do I deal with this error? I have tried uninstalling and reinstalling seaborn and its dependencies multiple times, along with using old versions of some of the libraries, but none of that seems to work.
Related
Until 2 days ago, everything worked.
But today i have the following error:
C:\Users\Χρήστος\Desktop\Papinhio player\project\main>python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import moviepy.editor
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\editor.py", line 36, in <module>
from .video.io.VideoFileClip import VideoFileClip
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 3, in <module>
from moviepy.audio.io.AudioFileClip import AudioFileClip
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\audio\io\AudioFileClip.py", line 3, in <module>
from moviepy.audio.AudioClip import AudioClip
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\audio\AudioClip.py", line 7, in <module>
from moviepy.audio.io.ffmpeg_audiowriter import ffmpeg_audiowrite
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 7, in <module>
from moviepy.config import get_setting
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\config.py", line 36, in <module>
FFMPEG_BINARY = get_exe()
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\imageio\plugins\ffmpeg.py", line 47, in get_exe
import imageio_ffmpeg
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\imageio_ffmpeg\__init__.py", line 7, in <module>
from ._utils import get_ffmpeg_exe, get_ffmpeg_version
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\imageio_ffmpeg\_utils.py", line 5, in <module>
from pkg_resources import resource_filename
File "C:\Users\Χρήστος\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources.py", line 1479, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
Uninstall moviepy with pip (pip uninstall moviepy)
Upgrade python (python -m ensurepip --upgrade)
Download whl file from: https://pypi.org/project/moviepy/#files
cd in the unzip downloaded folder and then
python setup.py build
python setup.py install
And everything is ok now!!!
I'm trying to import pyo for this project I'm working on but this is the output I get when I try to do so:
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\__init__.py", line 28, in <module>
from .lib import analysis as analysis
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\lib\analysis.py", line 32, in <module>
from ._core import *
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\lib\_core.py", line 58, in <module>
from .._pyo import *
ImportError: DLL load failed: The specified module could not be found.
I've tried uninstalling and downgrading pyo but I can't seem to get it to import. Can anyone help me out?
I just ran python -m install pandas, but I can't import pandas:
C:\Users\Administrator>python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python36\lib\site-packages\pandas\__init__.py", line 42, in <module>
from pandas.core.api import *
File "C:\Python36\lib\site-packages\pandas\core\api.py", line 10, in <module>
from pandas.core.groupby.groupby import Grouper
File "C:\Python36\lib\site-packages\pandas\core\groupby\__init__.py", line 2, in <module>
from pandas.core.groupby.groupby import (
File "C:\Python36\lib\site-packages\pandas\core\groupby\groupby.py", line 49, in <module>
from pandas.core.frame import DataFrame
File "C:\Python36\lib\site-packages\pandas\core\frame.py", line 74, in <module>
from pandas.core.series import Series
File "C:\Python36\lib\site-packages\pandas\core\series.py", line 3978, in <module>
Series._add_series_or_dataframe_operations()
File "C:\Python36\lib\site-packages\pandas\core\generic.py", line 8891, in _add_series_or_dataframe_operations
from pandas.core import window as rwindow
File "C:\Python36\lib\site-packages\pandas\core\window.py", line 36, in <module>
import pandas._libs.window as _window
ImportError: DLL load failed: The specified module could not be found.
I've tried various python versions(3.4, 3.5., 3.6, etc) and 32 vs 64 bit but with no luck. I'm running Python 3.6 on 32 bit now on windows.
I can see this file: window.cp36-win32.pyd inside the pandas _libs folder under my site-packages. What's wrong with it?
Pandas v0.23 was released on May 15, 2018 and there are still some issues of which yours is one. Except you absolutely have to use 0.23, try installing v0.22
pip install pandas==0.22
More info here: https://github.com/pandas-dev/pandas/issues/21106
I'm new to Python and Cloud9, so I am not sure if I have a python issue or a Cloud9 issue (or both or something completely different)
My basic problem is that within Python I can import some modules, but not others. I've installed the modules 'xport' & 'numpy' with pip, but only 'xport' is working.
If I try to 'import numpy' i get the following error:
Python 2.7.6 (default, Nov 23 2017, 15:49:48)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xport
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 153, in <module>
from . import add_newdocs
File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 18, in <module>
from .polynomial import *
File "/usr/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 19, in <module>
from numpy.linalg import eigvals, lstsq, inv
File "/usr/lib/python2.7/dist-packages/numpy/linalg/__init__.py", line 50, in <module>
from .linalg import *
File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 29, in <module>
from numpy.linalg import lapack_lite, _umath_linalg
ImportError: liblapack.so.3: cannot open shared object file: No such file or directory
>>> exit()
I've tried 'pip install numpy --upgrade', but it didn't fix anything. Where should I go from here?
Here's a URL that should help get you started in Cloud9 - get-scipy-stack-for-aws-lambda.sh. The key is to install with yum.
I can then import numpy in the Python shell and a simple Python script, but I'm having a problem getting it to work in the Lambda function itself, and it's having the same issue, unable to find the liblapack.so.3. Still working on that part. I, too, am very new to Cloud9.
I have been using pandas for a long while now, and wanted to use this functionality. Realizing I was in a prior version I typed conda update pandas into my command line.
Now, when I go into python and try to import pandas I see the following:
C:\Users\%USER%>python
Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:02:00) [MSC
v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
>>> import pandas as pd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\%USER%\Miniconda\lib\site-packages\pandas\__init__.py", l
ine 18, in <module>
raise ImportError("Missing required dependencies {0}".format(missing_depende
ncies))
ImportError: Missing required dependencies ['numpy']
>>>
If I just try to import numpy i see:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\%USER%\Miniconda\lib\site-packages\numpy\__init__.py", li
ne 180, in <module>
from . import add_newdocs
File "C:\Users\%USER%\Miniconda\lib\site-packages\numpy\add_newdocs.py",
line 13, in <module>
from numpy.lib import add_newdoc
File "C:\Users\%USER%\Miniconda\lib\site-packages\numpy\lib\__init__.py"
, line 8, in <module>
from .type_check import *
File "C:\Users\%USER%\Miniconda\lib\site-packages\numpy\lib\type_check.p
y", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\Users\%USER%\Miniconda\lib\site-packages\numpy\core\__init__.py
", line 14, in <module>
from . import multiarray
ImportError: DLL load failed: The specified module could not be found.
This was working perfectly until this conda update. Has anyone experienced this?
Thankfully conda understands revisions.
C:\>conda list --revisions
Will give you your list of revisions. Find the one prior to the most recent that broke stuff.
For me it was revision 6, so I typed:
C:\>conda install --revision 6
I am up and running again!