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

If I load Flask, I have this error « No module named werkzeug.exceptions » #20

Open
harobed opened this issue Jan 24, 2019 · 2 comments

Comments

@harobed
Copy link

harobed commented Jan 24, 2019

Hi,

in flask-bug branch, I can execute with success:

$ bazel build //...
INFO: Invocation ID: 6fe25081-9152-484d-8c1f-2f3d90e9a465
INFO: Analysed 16 targets (0 packages loaded, 0 targets configured).
INFO: Found 16 targets...
INFO: Elapsed time: 0,144s, Critical Path: 0,00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action

Next, I have this bug:

$ bazel run //foo:bar7
INFO: Invocation ID: bb6b6802-087a-4fd1-9fca-00dfa0eaf660
INFO: Analysed target //foo:bar7 (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //foo:bar7 up-to-date:
  bazel-bin/foo/bar7
INFO: Elapsed time: 0,137s, Critical Path: 0,00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_stephane/f33c4e96bb636c7c114d11d080a30ed7/execroot/sample_app/bazel-out/darwin-fastbuild/bin/foo/bar7.runfiles/sample_app/foo/bar7.py", line 1, in <module>
    from flask import Flask
  File "/private/var/tmp/_bazel_stephane/f33c4e96bb636c7c114d11d080a30ed7/execroot/sample_app/bazel-out/darwin-fastbuild/bin/foo/bar7.runfiles/pypi__Flask_1_0_2/flask/__init__.py", line 17, in <module>
    from werkzeug.exceptions import abort
ImportError: No module named werkzeug.exceptions
@harobed
Copy link
Author

harobed commented Jan 27, 2019

@harobed
Copy link
Author

harobed commented Jan 27, 2019

See also bazelbuild/rules_python#90

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