Results 1 to 2 of 2

Thread: Help! no module named pyglet error

  1. #1
    Join Date
    Jul 2010
    Location
    VietNam
    Beans
    34

    Help! no module named pyglet error

    I'm learning Python.

    I have installed python 3.1.2 and I'm using idle for same.

    I'm trying out PythonRecipes/HelloWorld using Idle but the very first line gives me an error.

    'import pygtk' gives this error 'no module named pygtk'

    I installed pyglet using synaptic.

    This command 'import pyglet' gives the error 'no module named pyglet'.

    I have been readingBuilt-in Package Support in Python 1.5

    for ideas. I am guessing that the modules aren't where the program expects them to be but really I don't know. Syntax error?

    Any help?

    note: I get the same error when I use Terminal and open python3.1 but no error when I open python.
    I would like to use the latest version of python.
    Last edited by VietCanada; February 6th, 2011 at 09:36 PM.

  2. #2
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: Help! no module named pyglet error

    probably pyglet does not support python3
    so you need to stick to python2 if you require it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •