Starting my Zope 2.8.8 development copy was working fine until I [easy_]installed i18ndude. Now I get this::

File "/home/peterbe/zope/zope288/lib/python/TAL/TALInterpreter.py", line 31, in ?
    from zope.i18nmessageid import MessageID
 ImportError: cannot import name MessageID


That's because of the zope.i18nmessageid that was installed (as an egg) when installed i18n dude.

I edited TALInterpreter.py to do this, on line 30:
import sys; from pprint import pprint; pprint(sys.path)
Now I get the following when I run ./bin/runzope



[EMAIL PROTECTED]:~/zope/zope288 $ ./bin/runzope
2007-03-28 10:00:22 INFO ZServer HTTP server started at Wed Mar 28 10:00:22 2007
        Hostname: 0.0.0.0
        Port: 8080
['/home/peterbe/zope/zope288/lib/python',
 '/home/peterbe/zope/zope288/lib/python',
 '/home/peterbe/zope/zope288/lib/python/Zope2/Startup',
 '/usr/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg',
 '/usr/lib/python2.4/site-packages/i18ndude-3.0b1-py2.4.egg',
 '/usr/lib/python2.4/site-packages/zope.testing-3.4dev_r73174-py2.4.egg',

'/usr/lib/python2.4/site-packages/zope.i18nmessageid-3.4dev_r72562-py2.4-linux-i686.egg',

'/usr/lib/python2.4/site-packages/zope.interface-3.4dev_r72681-py2.4-linux-i686.egg',
 '/usr/lib/python2.4/site-packages/zope.tal-3.3dev_r72583-py2.4.egg',

'/usr/lib/python2.4/site-packages/zope.deprecation-3.4dev_r73271-py2.4.egg',
 '/usr/lib/python2.4/site-packages/zope.i18n-3.3dev_r72550-py2.4.egg',
 '/usr/lib/python2.4/site-packages/zope.schema-3.4dev_r73183-py2.4.egg',
 '/usr/lib/python2.4/site-packages/zope.component-3.4dev_r72903-py2.4.egg',
 '/usr/lib/python2.4/site-packages/pytz-2005r-py2.4.egg',
 '/usr/lib/python2.4/site-packages/zope.event-3.3dev_r72545-py2.4.egg',

'/usr/lib/python2.4/site-packages/zope.deferredimport-3.3dev_r72527-py2.4.egg',

'/usr/lib/python2.4/site-packages/zope.proxy-3.4.0a1-py2.4-linux-i686.egg',
 '/home/peterbe/zope/zope288/lib/python',
 '/usr/lib/python24.zip',
 '/usr/lib/python2.4/lib-dynload',
 '/usr/lib/python2.4/site-packages/Numeric',
 '/usr/lib/python2.4/site-packages/PIL',
 '/usr/lib/python2.4/site-packages',
 '/usr/lib/python2.4',
 '/usr/lib/python2.4/plat-linux2',
 '/usr/lib/python2.4/lib-tk',
 '/usr/local/lib/python2.4/site-packages',
 '/usr/lib/python2.4/site-packages/gst-0.10',
 '/var/lib/python-support/python2.4/pyinotify',
 '/var/lib/python-support/python2.4',
 '/usr/lib/python2.4/site-packages/gtk-2.0',
 '/var/lib/python-support/python2.4/gtk-2.0']
Traceback (most recent call last):
File "/home/peterbe/zope/zope288/lib/python/Zope2/Startup/run.py", line 56, in ?
    run()
File "/home/peterbe/zope/zope288/lib/python/Zope2/Startup/run.py", line 21, in run
    starter.prepare()
File "/home/peterbe/zope/zope288/lib/python/Zope2/Startup/__init__.py", line 98, in prepare
    self.startZope()
File "/home/peterbe/zope/zope288/lib/python/Zope2/Startup/__init__.py", line 257, in startZope
    Zope2.startup()
File "/home/peterbe/zope/zope288/lib/python/Zope2/__init__.py", line 46, in startup
    from Zope2.App.startup import startup as _startup
File "/home/peterbe/zope/zope288/lib/python/Zope2/App/startup.py", line 32, in ?
    import OFS.Application
File "/usr/HOME/peterbe/zope/zope288/lib/python/OFS/Application.py", line 26, in ? File "/home/peterbe/zope/zope288/lib/python/App/ApplicationManager.py", line 32, in ?
    from Products.PageTemplates.PageTemplateFile import PageTemplateFile
File "/home/peterbe/zope/zope288/lib/python/Products/PageTemplates/PageTemplateFile.py", line 27, in ?
    from PageTemplate import PageTemplate
File "/home/peterbe/zope/zope288/lib/python/Products/PageTemplates/PageTemplate.py", line 26, in ?
    from TAL.TALInterpreter import TALInterpreter, FasterStringIO
File "/home/peterbe/zope/zope288/lib/python/TAL/TALInterpreter.py", line 31, in ?
    from zope.i18nmessageid import MessageID
ImportError: cannot import name MessageID


I thought the first path in sys.path is where it should start to search. I can happily do this::

 [EMAIL PROTECTED]:~/zope/zope288/lib/python $ python2.4
 Python 2.4.4 (#2, Mar  7 2007, 19:12:09)
 [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from zope.i18nmessageid import MessageID
 >>>


What to do? Why isn't the sys.path order "respected"?

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to