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

while debuging the code #6250

Open
akraimit opened this issue Nov 23, 2017 · 0 comments
Open

while debuging the code #6250

akraimit opened this issue Nov 23, 2017 · 0 comments

Comments

@akraimit
Copy link

PS C:\Users\admin\AppData\Local\Programs\Python\Convolutional_neural_network-master> python run.py
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\werkzeug\utils.py", line 412, in import_string
import(import_name)
ImportError: bad magic number in 'config': b'\x03\xf3\r\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "run.py", line 2, in
from app import app
File "C:\Users\admin\AppData\Local\Programs\Python\Convolutional_neural_network-master\app_init_.py", line 6, in
app.config.from_object('config')
File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\flask\config.py", line 162, in from_object
obj = import_string(obj)
File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\werkzeug\utils.py", line 437, in import_string
sys.exc_info()[2])
File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\werkzeug_compat.py", line 133, in reraise
raise value.with_traceback(tb)
File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\werkzeug\utils.py", line 412, in import_string
import(import_name)
werkzeug.utils.ImportStringError: import_string() failed for 'config'. Possible reasons are:

  • missing init.py in a package;
  • package or module path not included in sys.path;
  • duplicated package or module name taking precedence in sys.path;
  • missing module, class, function or variable;

Debugged import:

  • 'config' not found.

Original exception:

ImportError: bad magic number in 'config': b'\x03\xf3\r\n'
PS C:\Users\admin\AppData\Local\Programs\Python\Convolutional_neural_network-master>

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

1 participant