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: 4952
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: 260
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: 2851
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: mvp 0.29.0, Pale Moon 27.9.4, wine-staging 3.13, MPC-QT 18.03, Linux kernel 4.17.8, ffmpeg 4.0.2
User avatar
Posts: 9797
Joined: 2009-10-06 05:53

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest