cometd-twisted: No module named path

318 views
Skip to first unread message

dbr...@port21.com

unread,
Jul 11, 2007, 2:49:09 PM7/11/07
to cometd-users
Hello all,

I am new to cometd and I am having some issues that I am hopeing
someone can help me with.

I followed the sets listed in the post:
http://groups.google.com/group/cometd-users/browse_thread/thread/f4b4c4b31d6e12ac

Now when I run:
twistd -noy cometd.tac

or more percisley:
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/twistd -
noy cometd.tac

I get the following error:
Failed to load application: No module named path

I will post the full output at the bottom of this message.

Does anyone have any clue what is happening and how I can get this
working?
Thanks in advance!

------

~/Code/ShortBus/trunk/cometd-twisted dallas$ /System/Library/
Frameworks/Python.framework/Versions/2.3/bin/twistd -noy cometd.tac
2007/07/11 11:48 MST [-] Log opened.
2007/07/11 11:48 MST [-] twistd 2.4.0 (/usr/bin/python 2.3.5) starting
up
2007/07/11 11:48 MST [-] reactor class: <class
'twisted.internet.selectreactor.SelectReactor'>
2007/07/11 11:48 MST [-] Loading cometd.tac...
2007/07/11 11:48 MST [-] Traceback (most recent call last):
2007/07/11 11:48 MST [-] File "/System/Library/Frameworks/
Python.framework/Versions/2.3/lib/python2.3/site-packages/twisted/
application/app.py", line 159, in getApplication
2007/07/11 11:48 MST [-] application =
service.loadApplication(filename, style, passphrase)
2007/07/11 11:48 MST [-] File "/System/Library/Frameworks/
Python.framework/Versions/2.3/lib/python2.3/site-packages/twisted/
application/service.py", line 301, in loadApplication
2007/07/11 11:48 MST [-] application =
sob.loadValueFromFile(filename, 'application', passphrase)
2007/07/11 11:48 MST [-] File "/System/Library/Frameworks/
Python.framework/Versions/2.3/lib/python2.3/site-packages/twisted/
persisted/sob.py", line 206, in loadValueFromFile
2007/07/11 11:48 MST [-] exec fileObj in d, d
2007/07/11 11:48 MST [-] File "cometd.tac", line 31, in ?
2007/07/11 11:48 MST [-] from path import path
2007/07/11 11:48 MST [-] ImportError: No module named path
2007/07/11 11:48 MST [-] Failed to load application: No module named
path
2007/07/11 11:48 MST [-] Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/bin/twistd", line 25, in ?
run()
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 205,
in run
app.run(runApp, ServerOptions)
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages/twisted/application/app.py", line 278,
in run
runApp(config)
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 195,
in runApp
application = app.getApplication(config, passphrase)
--- <exception caught here> ---
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages/twisted/application/app.py", line 159,
in getApplication
application = service.loadApplication(filename, style,
passphrase)
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages/twisted/application/service.py", line
301, in loadApplication
application = sob.loadValueFromFile(filename,
'application', passphrase)
File "/System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages/twisted/persisted/sob.py", line 206,
in loadValueFromFile
exec fileObj in d, d
File "cometd.tac", line 31, in ?
from path import path
exceptions.ImportError: No module named path


Failed to load application: No module named path
2007/07/11 11:48 MST [-]

Michael Mayfield

unread,
Jul 11, 2007, 3:16:32 PM7/11/07
to cometd...@googlegroups.com
Its probably due to a dead link in setup_dependencies.sh for the path module. (I am also new and had the same problem.) You can find the path module here:
http://cheeseshop.python.org/packages/source/p/path.py/

Install and try again.

Good luck.

mike

dbr...@port21.com

unread,
Jul 11, 2007, 3:51:15 PM7/11/07
to cometd-users
That fixed it!

Thank you!


On Jul 11, 12:16 pm, "Michael Mayfield" <mmfi...@gmail.com> wrote:
> Its probably due to a dead link in setup_dependencies.sh for the path
> module. (I am also new and had the same problem.) You can find the path
> module here:http://cheeseshop.python.org/packages/source/p/path.py/
>
> Install and try again.
>
> Good luck.
>
> mike
>
> On 7/11/07, dbr...@port21.com <dbr...@port21.com> wrote:
>
>
>
> > Hello all,
>
> > I am new to cometd and I am having some issues that I am hopeing
> > someone can help me with.
>
> > I followed the sets listed in the post:
>

> >http://groups.google.com/group/cometd-users/browse_thread/thread/f4b4...

Reply all
Reply to author
Forward
0 new messages