ImportError: No module named blinker

1,438 views
Skip to first unread message

Steven Almeroth

unread,
Jun 7, 2011, 7:38:29 PM6/7/11
to ti...@googlegroups.com
Hi, I just installed Tipfy for the first time and I am getting an error.

    $ uname -a
    Linux bluqt 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

    $ python
    Python 2.5.6 (r256:88840, Jun  7 2011, 13:23:29) 

    $ python ../google_appengine/dev_appserver.py project/app/
    WARNING  2011-06-07 23:14:54,584 urlfetch_stub.py:108] No ssl package found. urlfetch will not be able to validate SSL certificates.
    INFO     2011-06-07 23:14:54,890 appengine_rpc.py:159] Server: appengine.google.com
    WARNING  2011-06-07 23:14:54,904 datastore_file_stub.py:657] Could not read datastore data from /tmp/dev_appserver.datastore
    INFO     2011-06-07 23:14:54,906 rdbms_sqlite.py:58] Connecting to SQLite database '' with file '/tmp/dev_appserver.rdbms'
    WARNING  2011-06-07 23:14:54,911 dev_appserver.py:4598] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
    INFO     2011-06-07 23:14:54,931 dev_appserver_multiprocess.py:637] Running application my-app on port 8080: http://localhost:8080

Then I go to my web browser and request the app at http://localhost:8080/

    WARNING  2011-06-07 23:14:58,885 py_zipimport.py:139] Can't open zipfile /usr/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg: IOError: [Errno 13] file not accessible: '/usr/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg'
    WARNING  2011-06-07 23:14:58,888 py_zipimport.py:139] Can't open zipfile /usr/local/lib/python2.5/site-packages/blinker-1.1-py2.5.egg: IOError: [Errno 13] file not accessible: '/usr/local/lib/python2.5/site-packages/blinker-1.1-py2.5.egg'
    INFO     2011-06-07 23:14:59,691 recording.py:358] Saved; key: __appstats__:099600, part: 17 bytes, full: 1088 bytes, overhead: 0.000 + 0.004; link: http://localhost:8080/_ah/stats/details?time=1307488499668

    Traceback (most recent call last):

    File "/srv/focus/google_appengine/google/appengine/ext/appstats/recording.py", line 897, in appstats_wsgi_wrapper
        result = app(environ, appstats_start_response)

    File "/srv/focus/tipfy/project/app/lib/dist/tipfy/app.py", line 245, in dispatch
        rv = self.handle_exception(request, e)

    File "/srv/focus/tipfy/project/app/lib/dist/tipfy/app.py", line 241, in dispatch
        rv = self.router.dispatch(request)

    File "/srv/focus/tipfy/project/app/lib/dist/tipfy/routing.py", line 97, in dispatch
        self.handlers[handler] = utils.import_string(handler)

    File "/srv/focus/tipfy/project/app/lib/dist/werkzeug/utils.py", line 526, in import_string
        return getattr(__import__(module, None, None, [obj]), obj)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 1505, in Decorate
        return func(self, *args, **kwargs)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 2450, in load_module
        return self.FindAndLoadModule(submodule, fullname, search_path)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 1505, in Decorate
        return func(self, *args, **kwargs)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 2339, in FindAndLoadModule
        description)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 1505, in Decorate
        return func(self, *args, **kwargs)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 2282, in LoadModuleRestricted
        description)

    File "/srv/focus/tipfy/project/app/hello_world/handlers.py", line 13, in <module>
        from tipfyext.jinja2 import Jinja2Mixin

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 1505, in Decorate
        return func(self, *args, **kwargs)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 2450, in load_module
        return self.FindAndLoadModule(submodule, fullname, search_path)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 1505, in Decorate
        return func(self, *args, **kwargs)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 2339, in FindAndLoadModule
        description)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 1505, in Decorate
        return func(self, *args, **kwargs)

    File "/srv/focus/google_appengine/google/appengine/tools/dev_appserver.py", line 2282, in LoadModuleRestricted
        description)

    File "/srv/focus/tipfy/project/app/lib/dist/tipfyext/jinja2/__init__.py", line 13, in <module>
        import blinker

    ImportError: No module named blinker
    INFO     2011-06-07 23:14:59,929 dev_appserver.py:4151] "GET / HTTP/1.1" 500 -

But the files are there:

    $ ls -l /usr/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg
    -rw-r--r-- 1 root root 333390 2011-06-07 17:27 /usr/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.eg

    $ ls -l /usr/local/lib/python2.5/site-packages/blinker-1.1-py2.5.egg
    -rw-r--r-- 1 root root 21025 2011-06-07 17:32 /usr/local/lib/python2.5/site-packages/blinker-1.1-py2.5.egg

Anyone see anything glaring at them? thanks.

Calvin

unread,
Jun 8, 2011, 12:23:24 AM6/8/11
to ti...@googlegroups.com
I've had similar issues before. 

When you do the tipfy installation it installs blinker, jinja, and werkzeug to ./project/lib/dist.  If the files are there and in site-packages it gets upset for some reason.  My "gotta get stuff done" solution was just to uninstall the modules in site-packages (I was using pip).  I haven't researched further to figure out why it happens.

Steven Almeroth

unread,
Jun 8, 2011, 10:15:02 AM6/8/11
to ti...@googlegroups.com
Ok, thanks, calvin.  You mentioned the lib/dist directory so I looked and there was no blinker directory or egg, just: babel, jinja2, pytz, tipfy, tipfyext, werkzeug and wtforms.  So I started playing with the tipfy/app.py file and suddenly 'Hello, World!' appeared.  funny.  I had been installing stuff left and right so like you said I must have installed something that made tipfy unhappy somehow.  But it's working now.
Reply all
Reply to author
Forward
0 new messages