pydev and panda3d problem

TopDoozer
2007-08-26
2013-03-15
  • TopDoozer

    TopDoozer - 2007-08-26

    Hi Everyone!

    I have a problem with pydev for eclipse and panda3d. With panda3d the most basic python script looks like this:

    import direct.directbase.DirectStart

    run()

    eclipse tells me, that it cant resolve the import, but the script runs fine anyhow. Since i am a beginner to python and panda3d it would be great for me to just get the errors and warnings that are really important to me. And since the above example runs without any problems i am getting a little confused with the output from my IDE. Is there anywhere where i can tell pydev/eclipse where it can find direct.directbase.DirectStart? Does anyone else had this problem?

    greetz,

    TopDoozer

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2007-08-26

      It works when running from eclipse or are you running from the shell?

      Usually, it's just a matter of correctly specifying your system and project pythonpaths correctly (http://fabioz.com/pydev/manual_101_root.html), but it may be that it is some module that's dynamically loaded (so, you would need to add it to the forced builtins -- but only if that's really only available at runtime -- the manual has some notes about that too).

      Cheers,

      Fabio

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks