Using pyglet in Debian

Need help with C, C++, perl, python, etc?

Using pyglet in Debian

Postby Sefru » 2015-08-18 13:20

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
Posts: 1
Joined: 2015-08-18 13:04

Re: Using pyglet in Debian

Postby GarryRicketson » 2015-08-18 16:02

Really, with out seeing the script, it is anybodies guess.
The script works fine in Fedora,
Debian is not Fedora.
User avatar
Posts: 5877
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Using pyglet in Debian

Postby cronoik » 2015-08-18 16:07

Have you checked if the provided examples work? /usr/share/doc/python-pyglet/examples/programming_guide/
Have a nice day!
Posts: 308
Joined: 2015-05-20 21:17

Re: Using pyglet in Debian

Postby kedaha » 2015-08-18 16:42

Just off the cuff but you could convert the pyglet rmp to deb using alien and try that instead of the version from Debian.
Mate DE & OSSv4.
LaMp, WordPress; ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
Posts: 2903
Joined: 2008-05-24 12:26

Re: Using pyglet in Debian

Postby stevepusser » 2015-08-18 18:25

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: ... r-python-3
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
Posts: 11004
Joined: 2009-10-06 05:53

Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests