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

ImportError was unhandled by user code Message: Error while finding loader for '__main__' (<class 'ValueError'>: __main__.__spec__ is None) #3

Open
mocm opened this issue Oct 17, 2016 · 0 comments

Comments

@mocm
Copy link

mocm commented Oct 17, 2016

Hi,
This is probably about my environment settings. but I am stuck with this error:

Traceback (most recent call last):
File "C:\Users\212338241\Documents\Visual Studio 2015\Projects\bFlaskWP1\bFlas
kWP1\app.py", line 7, in
app = Flask(name)
File "C:\Users\212338241\Documents\Visual Studio 2015\Projects\bFlaskWP1\bFlas
kWP1\env\lib\site-packages\flask\app.py", line 358, in init
instance_path = self.auto_find_instance_path()
File "C:\Users\212338241\Documents\Visual Studio 2015\Projects\bFlaskWP1\bFlas
kWP1\env\lib\site-packages\flask\app.py", line 663, in auto_find_instance_path
prefix, package_path = find_package(self.import_name)
File "C:\Users\212338241\Documents\Visual Studio 2015\Projects\bFlaskWP1\bFlas
kWP1\env\lib\site-packages\flask\helpers.py", line 723, in find_package
loader = pkgutil.get_loader(root_mod_name)
File "C:\Python34\lib\pkgutil.py", line 467, in get_loader
return find_loader(fullname)
File "C:\Python34\lib\pkgutil.py", line 487, in find_loader
raise ImportError(msg.format(fullname, type(ex), ex)) from ex
ImportError: Error while finding loader for 'main' (<class 'ValueError'>: __
main__.spec is None)
Press any key to continue . . .

image

then VS makes chrome start to work with another port

image

I check the internet for similar problem but I cant find the ini files in VS environment that the possible solutions discuss. (ie: unbit/uwsgi#621 )

Regards

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