Import channel Problem
Hi I'm new to this list. Doing example1.py in first tutorial of twisted.web2 (documentation/ intro.txt) I keep getting: ImportError: cannot import name channel Anyone know what's wrong here? George Wright http://users.bigpond.net.au/George.Wright/ http://www.labyrinth.net.au/~gwright
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 George Wright wrote:
Hi
Hi
I'm new to this list.
Welcome
Doing example1.py in first tutorial of twisted.web2 (documentation/intro.txt) I keep getting: ImportError: cannot import name channel
Anyone know what's wrong here?
You're most likely using web2 0.1 which is unfortunately very very old, and completely out of date and should not be used at all. I'll be doing a web2 release 0.2 before june 9th, and you should use svn trunk[0] until then. If you're already using trunk it's possible that it was improperly installed or you thought you installed it over the 0.1 release but didn't really. Without further information I can't really tell you what exactly is wrong. Good luck, and welcome. - -David [0] svn://svn.twistedmatrix.com/svn/Twisted/trunk - -- "Usually the protocol is this: I appoint someone for a task, which they are not qualified to do. Then, they have to fight a bear if they don't want to do it." -- Glyph Lefkowitz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEfODhrsrO6aeULcgRAlLrAJ9dVGgTSWBViWWgWv0si3bIovs5OgCeMTih YVUdyZqUB4+suXxQs9ANa7Q= =KigD -----END PGP SIGNATURE-----
Thanks David Yes I am using web2 0.1 - I won't any more. I did see references to later versions but I don't know about svn. I do have Smartsvn 1.1 but I hadn't learnt how to use it yet. However I followed my nose and used the address you gave me and it seems to have downloaded the stuff. How do I install it? There is no installer Do I just copy contents into the web2 folder at /Library/Python/2.3/ site-packages/twisted/web2/ after trashing previous contents? Or maybe something else? On 31/05/2006, at 10:18 AM, David Reid wrote:
George Wright wrote:
Doing example1.py in first tutorial of twisted.web2 (documentation/intro.txt) I keep getting: ImportError: cannot import name channel
You're most likely using web2 0.1 which is unfortunately very very old, and completely out of date and should not be used at all.
you should use svn trunk[0] until then.
- -David
[0] svn://svn.twistedmatrix.com/svn/Twisted/trunk
George Wright http://users.bigpond.net.au/George.Wright/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 George Wright wrote:
Thanks David Yes I am using web2 0.1 - I won't any more. I did see references to later versions but I don't know about svn. I do have Smartsvn 1.1 but I hadn't learnt how to use it yet. However I followed my nose and used the address you gave me and it seems to have downloaded the stuff. How do I install it? There is no installer Do I just copy contents into the web2 folder at /Library/Python/2.3/site-packages/twisted/web2/ after trashing previous contents? Or maybe something else?
cd Twisted/ && python twisted/web2/topfiles/setup.py install or just copy the twisted directory to /Library/Python/2.3/site-packages/twisted or just add the location of your checkout (for example ~/projects/Twisted/) to PYTHONPATH export PYTHONPATH=$HOME/projects/Twisted:$PYTHONPATH All of these things will work. - -David - -- "Usually the protocol is this: I appoint someone for a task, which they are not qualified to do. Then, they have to fight a bear if they don't want to do it." -- Glyph Lefkowitz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEfbD2rsrO6aeULcgRAmB4AJ491jTyleFCPloQVa/xswsbdxfPuQCeP7p+ G8czRR2b9x/YdWi87G0jqCI= =bL87 -----END PGP SIGNATURE-----
Thanks again David and thanks for the welcome and introduction to the list. I ended up trashing the previous web2 folder contents and replacing it with the new svn download. It works fine now. Just a beginner - but it looks like fun. Regards On 01/06/2006, at 1:06 AM, David Reid wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
George Wright wrote:
Do I just copy contents into the web2 folder at /Library/Python/2.3/site-packages/twisted/web2/ after trashing previous contents?
or just copy the twisted directory to /Library/Python/2.3/site-packages/twisted - -David ____________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
George Wright http://users.bigpond.net.au/George.Wright/ http://www.labyrinth.net.au/~gwright
participants (2)
-
David Reid
-
George Wright