Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Using pyglet in Debian

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Sefru
Posts: 1
Joined: 2015-08-18 13:04

Using pyglet in Debian

#1 Post by Sefru »

Hi everyone!

I just started using Debian for the first time a couple of days ago, and so far I have been really impressed by it. I think that Debian is my new favorite distribution. :)

However, I have come across a small problem. I have written a python script that uses Pyglet. The script works fine in Fedora, but I can't seem to get it working in Debian. I have installed the python-pyglet package, but when I run my script I get an error saying:

unhandled ImportError
"No module named 'pyglet'"


I have tried to change the import statement to "import python-pyglet", but that just gives a syntax error. What kind of name should I use for the pyglet library to get it imported? Also, I'm trying to use python3, could that be the problem?

With best regards
Sefru

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Using pyglet in Debian

#2 Post by GarryRicketson »

Really, with out seeing the script, it is anybodies guess.
The script works fine in Fedora,
Debian is not Fedora.

cronoik
Posts: 310
Joined: 2015-05-20 21:17

Re: Using pyglet in Debian

#3 Post by cronoik »

Have you checked if the provided examples work? /usr/share/doc/python-pyglet/examples/programming_guide/hello_world.py
Have a nice day!

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Using pyglet in Debian

#4 Post by kedaha »

Just off the cuff but you could convert the pyglet rmp to deb using alien and try that instead of the version from Debian.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Using pyglet in Debian

#5 Post by stevepusser »

Just off the top of my head, Debian packages python2 packages as "python-", with the python3 version as "python3-".

But it appears that the last maintenance on the Debian package was back in 2010, with no python3 version.

You may be able to do a local install of pylet and get it to use python 3: http://stackoverflow.com/questions/2129 ... r-python-3
MX Linux packager and developer

Post Reply