Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinError 193] %1 is not a valid Win32 application #483

Open
BlockchainRev opened this issue Mar 20, 2020 · 1 comment
Open

[WinError 193] %1 is not a valid Win32 application #483

BlockchainRev opened this issue Mar 20, 2020 · 1 comment

Comments

@BlockchainRev
Copy link

Hi, I'm starting to work in Jupyter Notebook and encountered some problems in the first Jupyter Notebook of course v3.
When I run
# Import necessary libraries from fastai.vision import * import matplotlib.pyplot as plt

This happens
`---------------------------------------------------------------------------
OSError Traceback (most recent call last)
in
1 # Import necessary libraries
----> 2 from fastai.vision import *
3 import matplotlib.pyplot as plt

C:\ProgramData\Anaconda3\lib\site-packages\fastai\vision_init_.py in
----> 1 from .. import basics
2 from ..basics import *
3 from .learner import *
4 from .image import *
5 from .data import *

C:\ProgramData\Anaconda3\lib\site-packages\fastai\basics.py in
----> 1 from .basic_train import *
2 from .callback import *
3 from .core import *
4 from .basic_data import *
5 from .data_block import *

C:\ProgramData\Anaconda3\lib\site-packages\fastai\basic_train.py in
1 "Provides basic training and validation with Learner"
----> 2 from .torch_core import *
3 from .basic_data import *
4 from .callback import *
5 from .data_block import *

C:\ProgramData\Anaconda3\lib\site-packages\fastai\torch_core.py in
1 "Utility functions to help deal with tensors"
----> 2 from .imports.torch import *
3 from .core import *
4 from collections import OrderedDict
5 from torch.nn.parallel import DistributedDataParallel

C:\ProgramData\Anaconda3\lib\site-packages\fastai\imports_init_.py in
----> 1 from .core import *
2 from .torch import *

C:\ProgramData\Anaconda3\lib\site-packages\fastai\imports\core.py in
1 import csv, gc, gzip, os, pickle, shutil, sys, warnings, yaml, io, subprocess
----> 2 import math, matplotlib.pyplot as plt, numpy as np, pandas as pd, random
3 import scipy.stats, scipy.special
4 import abc, collections, hashlib, itertools, json, operator, pathlib
5 import mimetypes, inspect, typing, functools, importlib, weakref

~\AppData\Roaming\Python\Python37\site-packages\matplotlib_init_.py in
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\Python37\site-packages\matplotlib\cbook_init_.py in
29 from weakref import WeakMethod
30
---> 31 import numpy as np
32
33 import matplotlib

~\AppData\Roaming\Python\Python37\site-packages\numpy_init_.py in
138
139 # Allow distributors to run custom init code
--> 140 from . import _distributor_init
141
142 from . import core

~\AppData\Roaming\Python\Python37\site-packages\numpy_distributor_init.py in
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:

C:\ProgramData\Anaconda3\lib\ctypes_init_.py in init(self, name, mode, handle, use_errno, use_last_error)
362
363 if handle is None:
--> 364 self._handle = _dlopen(self._name, mode)
365 else:
366 self._handle = handle

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

Did I not install something? What do I do. Thanks.

@arjunvkurup
Copy link

Have you installed fastai using conda install -c fastai fastai?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants