a module.pth question

O

oyster

My py24 is installed in h:\python24
I installed pyglet(http://pyglet.org/) in
H:\pure_pylib\Multimedia\pyglet-1.0\, if I do
Code:
it is ok.

but if I created h:\pure_pylib\pyglet.pth file, which containts
Code:
Multimedia\pyglet-1.0

then
Code:
Traceback (most recent call last):

what is wrong with it? and How to fix it? thanks in advance
 
M

Mike Driscoll

My py24 is installed in h:\python24
I installed pyglet(http://pyglet.org/) in
H:\pure_pylib\Multimedia\pyglet-1.0\, if I do
Code:
>>> import sys
it is ok.

but if I created h:\pure_pylib\pyglet.pth file, which containts
Code:
Multimedia\pyglet-1.0

then
Code:
>>> import sys
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named pyglet

what is wrong with it? and How to fix it? thanks in advance

I looked in my easy_install.pth and it looks like it should be:

.\Multimedia\pyglet-1.0

But I don't really see any reason not to do it the way you were
earlier with the full path name. Besides, you should be able to
install pyglet to your site-packages folder. Or you could use buildout
if you're just testing modules and you don't want to screw up your
namespace.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top