[scikit-learn] scikit-learn Digest, Vol 61, Issue 12

betsey_gogo betsey_gogo at comcast.net
Wed Apr 28 22:16:08 EDT 2021


INPUT

 

import seaborn as sns

iris = sns.load_dataset('iris')

 

OUTPUT

 

OSError                                   Traceback (most recent call last)

<ipython-input-1-842ca3e1f505> in <module>

----> 1 import seaborn as sns

      2 iris = sns.load_dataset('iris')

 

D:\Anaconda\lib\site-packages\seaborn\__init__.py in <module>

      1 # Import seaborn objects

----> 2 from .rcmod import *  # noqa: F401,F403

      3 from .utils import *  # noqa: F401,F403

      4 from .palettes import *  # noqa: F401,F403

      5 from .relational import *  # noqa: F401,F403

 

D:\Anaconda\lib\site-packages\seaborn\rcmod.py in <module>

      3 import functools

      4 from distutils.version import LooseVersion

----> 5 import matplotlib as mpl

      6 from cycler import cycler

      7 from . import palettes

 

~\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py in
<module>

    136 # cbook must import matplotlib only within function

    137 # definitions, so it is safe to import from it here.

--> 138 from . import cbook, rcsetup

    139 from matplotlib.cbook import (

    140     MatplotlibDeprecationWarning, dedent, get_label,
sanitize_sequence)

 

~\AppData\Roaming\Python\Python38\site-packages\matplotlib\cbook\__init__.py
in <module>

     30 from weakref import WeakMethod

     31 

---> 32 import numpy as np

     33 

     34 import matplotlib

 

~\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py in
<module>

    138 

    139     # Allow distributors to run custom init code

--> 140     from . import _distributor_init

    141 

    142     from . import core

 

~\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py
in <module>

     24                 # NOTE: would it change behavior to load ALL

     25                 # DLLs at this path vs. the name restriction?

---> 26                 WinDLL(os.path.abspath(filename))

     27                 DLL_filenames.append(filename)

     28     if len(DLL_filenames) > 1:

 

D:\Anaconda\lib\ctypes\__init__.py in __init__(self, name, mode, handle,
use_errno, use_last_error, winmode)

    379 

    380         if handle is None:

--> 381             self._handle = _dlopen(self._name, mode)

    382         else:

    383             self._handle = handle

 

OSError: [WinError 193] %1 is not a valid Win32 application

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20210428/4353557f/attachment-0001.html>


More information about the scikit-learn mailing list