-
Notifications
You must be signed in to change notification settings - Fork 131
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
Resolve error on dev server with certain system packages installed #732
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I had been encountering this error: ``` Traceback (most recent call last): File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 351, in __getattr__ self._update_configs() File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 287, in _update_configs self._registry.initialize() File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 160, in initialize import_func(self._modname) File "/Users/russ/gae-init-project/main/appengine_config.py", line 24, in <module> sys_path_insert('libx') File "/Users/russ/gae-init-project/main/path_util.py", line 59, in sys_path_insert path_package_path(dirname, get_shadows_dir(dirname)) File "/Users/russ/gae-init-project/main/path_util.py", line 50, in get_shadows_dir if not pkg=='__init__' and not os.path.isfile(pkg) and is_shadowing(pkg): File "/Users/russ/gae-init-project/main/path_util.py", line 18, in is_shadowing __import__(os.path.splitext(package_name)[0]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/__init__.py", line 14, in <module> from . import version ValueError: Attempted relative import in non-package ```
Thanks man..I'll test it with few of my projects and report back.. |
lipis
reviewed
Nov 17, 2017
main/path_util.py
Outdated
@@ -44,7 +44,7 @@ def get_shadows_dir(dirname): | |||
if not os.path.exists(dirname): | |||
return shadow_pkgs | |||
for pkg in os.listdir(dirname): | |||
if not os.path.isfile(pkg) and is_shadowing(pkg): | |||
if not pkg=='__init__.py' and os.path.isfile(pkg) and is_shadowing(pkg): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space before after ==
lipis
approved these changes
Nov 23, 2017
Sorry for the delay @rbubley :) |
lipis
added a commit
that referenced
this pull request
Mar 3, 2018
* master: Add Prettier support (#739) Resolve error on dev server with certain system packages installed (#732) chore(package): update uglify-js to version 3.1.10 (#738) chore(package): update uglify-js to version 3.1.9 (#736) chore(package): update uglify-js to version 3.1.8 (#735) chore(package): update uglify-js to version 3.1.7 (#734) Updating moment.js to 2.19.1 (#733) chore(package): update uglify-js to version 3.1.6 (#731) chore(package): update uglify-js to version 3.1.5 (#730) chore(package): update uglify-js to version 3.1.4 (#728) Add package-lock.json (#724) Remove Let's Encrypt support (#723)
rbubley
added a commit
to rbubley/gae-init
that referenced
this pull request
Oct 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I had been encountering this error: