hitrust / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

ImportError: No module named fancy_urllib #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using?
with GAE SDK 1.3.6 prerelease

Just appengine_django need to set a new fancy_url lib's into syspath
so i have add this line into "appengine_django/__init__.py"

line 134:135
        os.path.join(SDK_PATH, 'lib', 'yaml', 'lib'),
+        os.path.join(SDK_PATH, 'lib', 'fancy_urllib'),

Original issue reported on code.google.com by sahid.fe...@gmail.com on 6 Aug 2010 at 9:02

GoogleCodeExporter commented 9 years ago
This problem also exists in the production 1.3.6 release of GAE that Google 
started pushing out today.

Original comment by keithlaw...@gmail.com on 17 Aug 2010 at 10:46

GoogleCodeExporter commented 9 years ago
AppengineHelperForDjango can't run with this bug too, please fix.
I've just installed 1.3.6 and rolling back to 1.3.5 ...

Original comment by redliner...@gmail.com on 18 Aug 2010 at 8:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same problem here, without using Django. Rolling back to 1.3.5...

Original comment by alex.mar...@gmail.com on 18 Aug 2010 at 4:22

GoogleCodeExporter commented 9 years ago
Some problem here!

Original comment by Jairo.Vasquez on 18 Aug 2010 at 4:58

GoogleCodeExporter commented 9 years ago
remote_api also fails with the same error - our solution was to continue using 
1.3.5 for remote_api functionality

Original comment by hawk...@gmail.com on 18 Aug 2010 at 5:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yep, same issue here for me. It's drag to revert back to 1.3.5 to get it solved

Original comment by ubaldo on 23 Aug 2010 at 9:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The modification given above solved my problem.

"Just appengine_django need to set a new fancy_url lib's into syspath
so i have add this line into "appengine_django/__init__.py"

line 134:135
        os.path.join(SDK_PATH, 'lib', 'yaml', 'lib'),
+        os.path.join(SDK_PATH, 'lib', 'fancy_urllib'), "

Original comment by alexande...@gmail.com on 23 Aug 2010 at 9:56

GoogleCodeExporter commented 9 years ago
Well, to get over the hump, in OSX just changed sys.path and it worked

sys.path.insert(0, os.path.join('/usr/local/google_appengine', 'lib', 
'fancy_urllib'))

Original comment by ubaldo on 23 Aug 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Fixed in r106

Thanks.

Original comment by m...@google.com on 23 Aug 2010 at 10:16

GoogleCodeExporter commented 9 years ago
I'm still seeing this issue for the Mac dev version when trying to use the 
remote_api.  

v1.3.8.945

Original comment by coca.c...@gmail.com on 1 Dec 2010 at 6:25

GoogleCodeExporter commented 9 years ago
you need to create your own appcfg.py that installs the helper (like manage.py) 
in order to use the remote api.  Then call it like:

./appcfg.py upload_data ...

I attached the one I use.  I suppose this might be useful to distribute in 
Google App Engine Helper

Original comment by kumar.mcmillan on 1 Dec 2010 at 7:38

Attachments:

GoogleCodeExporter commented 9 years ago
Where is "appengine_django/__init__.py" located?

Original comment by david.ha...@gmail.com on 20 Jan 2011 at 1:43

GoogleCodeExporter commented 9 years ago
I was facing this problem when running the command 'python manage.py runserver'
Adding the following 2 lines to manage.py fixes this issue

from dev_appserver import fix_sys_path
fix_sys_path()

Original comment by emmanuel...@gmail.com on 1 Mar 2011 at 9:26

GoogleCodeExporter commented 9 years ago
in Ubuntu 11.04
in manage.py
I added
import os
import sys
sys.path.insert(0, os.path.join('/usr/local/google_appengine', 'lib', 
'fancy_urllib'))

it works

Original comment by h...@helghareeb.net on 4 Mar 2011 at 12:21