Issue 6: ImportError: No module named django (and django is properly installed on this machine)
Status:  Fixed
Owner:
Closed:  Mar 2009
Reported by thelevyb...@gmail.com, Mar 14, 2009
[Note: this is for reporting issues on the JaikuEngine open source project.
if you are reporting an issue with the jaiku.com service, please send it to
support@jaiku.com]

What steps will reproduce the problem?
1. Starting server with manage.py


What is the expected output? What do you see instead?

I get the purple error screen with an ImportError: No module named django.
I have Django on this machine and can run other django applications.  


What version of the product are you using? On what operating system?

March 14th build, on Ubuntu 8.04

Ubuntu

Please provide any additional information below.

Mar 14, 2009
Project Member #1 mika.rae...@gmail.com
There's an incompatibility with the current appengine SDK that is getting fixed. Meanwhile, comment out the 
lines

      if FakeFile._skip_files.match(relative_filename):
        logging.warning('Blocking access to skipped file "%s"',
                        logical_filename)
        return False

in google/appengine/tools/dev_appserver.py.

(workaround originally by termie)
Mar 14, 2009
Project Member #2 tony.t.t...@gmail.com
 Issue 14  has been merged into this issue.
Mar 14, 2009
#3 gustavor...@gmail.com
Hi mika, 

Not really in google/appengine/tools/dev_appserver.py, please remember jaikuengine
brings its own SDK copy through externals.

For those having this problem just comment out the block cited by Mika in
'.google_appengine/google/appengine/tools/dev_appserver.py' as a workaround. Keep in
mind it will produce a diff on an 'external item' (see svn status output).

regards, 
-- stratus
Mar 14, 2009
#4 thelevyb...@gmail.com
With SDK version 1.1.9, the block 

      if FakeFile._skip_files.match(relative_filename):
        logging.warning('Blocking access to skipped file "%s"',
                        logical_filename)
        return False

is *not* in google/appengine/tools/dev_appserver.py. There doesn't appear to be
anything like it, either. 


Mar 14, 2009
#5 gustavor...@gmail.com
thelevybreaks, please read Comment #3.

thanks, 
-- stratus
Mar 16, 2009
#6 jamezpol...@gmail.com
I've got the same problem on OS X; the fix reported by gustavorfranco works.
Mar 17, 2009
#7 thelevyb...@gmail.com
When I search for "dev_appserver.py" I only find the files supplied with the SDK.
Within the jaiku project, I can't find the externals mentioned by gustavorfranco.

Maybe I'm just being dense (yes, that's probably it), but a more explicit explanation
would be very helpful. 
Mar 17, 2009
#8 gustavor...@gmail.com
thelevybreaks, don't you have a .google_appengine subdirectory into your jaikuengine
svn checkout?

-- stratus
Mar 17, 2009
#9 thelevyb...@gmail.com
Yes, I was being dense. I had Show Hidden Files toggled off in Nautilus. 


Mar 19, 2009
Project Member #10 andyster
I'm not sure how roundabout adding a patch to fix this issue would have to be, we either need to restructure the 
build system or monkeypatch that file, i'd prefer not to do the latter but the former may make installation issues 
a bit more straightforward as well
Status: Accepted
Owner: andyster
Mar 24, 2009
Project Member #11 andyster
Added a monkey patch to resolve this issue in r23
Status: Fixed