Menu

Help!ImportError:No module named pygtk

Help
2009-02-11
2012-12-06
  • Nobody/Anonymous

    Hi. I followed the installation instructions for windows XP. Installed MySQL and that Toad - i think i don't need that, do I?- and when try to run fpdb.py I get:

    Traceback (most recent call last):
       File "H:\Documents and Settings\Josep Ma\Escritorio\fpdb\pyfpdb  
       \fpdb.py", line 33, in <module>
        import pygtk
    ImportError: No module named pygtk

    I guess it's a newie mistake but haven't found in other posts.

    ty

     
    • cyril piedefer

      cyril piedefer - 2009-04-05

      Same for me

       
    • Nobody/Anonymous

      Same here too

       
    • Nobody/Anonymous

      My install log:

      04:04 12/05/2009Starting fpdb installation.
      MySQL not detected.
      PostgreSQL detected.
      Installing GTK, return code = 0
      Installing python, return code = 0
      Backing up path, return code = 1
      Updating path, return code = 1
      Installing pymysql, return code = 0
      Installing pycairo, return code = 0
      Installing pygobject, return code = 1
      Installing pygtk, return code = 1
      Installing psykopg2, return code = 0
      Installing pywin32, return code = 1

       
    • Nobody/Anonymous

      My install log:

      04:04 12/05/2009Starting fpdb installation.
      MySQL not detected.
      PostgreSQL detected.
      Installing GTK, return code = 0
      Installing python, return code = 0
      Backing up path, return code = 1
      Updating path, return code = 1
      Installing pymysql, return code = 0
      Installing pycairo, return code = 0
      Installing pygobject, return code = 1
      Installing pygtk, return code = 1
      Installing psykopg2, return code = 0
      Installing pywin32, return code = 1

       
    • Nobody/Anonymous

      have you installed the win installer0.2 b4 fpdb I also installed Numpy and matplotlib I think you need them for the graphing part of fpdb 

       
    • Nobody/Anonymous

      I had the same problem on my mac. I just added a path required for macport to my .profile and the correct version of pythonw was found. Not sure about other platforms though.

      Good luck
      Alex

       
  • Nobody/Anonymous

    How do you add this path on Windows?  
    I have the same problem i think.

    Traceback (most recent call last):
      File &quot;D:\Documents and Settings\helenny\Desktop\fpdb_0.11.3\pyfpdb\fpdb.py&quot;, line 35, in &lt;module&gt;
        import pygtk
    ImportError: No module named pygtk

     
  • Nobody/Anonymous

    problem probably not fpdb related and caused by existing gtk installation.

    suggest remove/rename older version and correct gtk directory in your environment path.

    google for more info.  basically gtk now installs into a different folder but the path does not get set for the new location.

     
  • Nobody/Anonymous

    just to add…

    before removing gtk, check what will break on your system!!!

    (for me it was just GIMP)

    s~

     

Log in to post a comment.