[pydev - Users] "Undefined variable from import" with PyROOT

View: New views
3 Messages — Rating Filter:   Alert me  

[pydev - Users] "Undefined variable from import" with PyROOT

by SourceForge.net :: Rate this Message:

| View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=6452751
By: oxon

I'm using Eclipse 3.4.1 + Python 2.5.1 + recent PyDEV extension on Mac OS X
10.5.6 (intel).

ROOT and PyROOT is a standard scientific analysis tool in high-energy physics.
I use this software with python and currently developing a python package that
imports PyROOT.

http://root.cern.ch/
http://root.cern.ch/root/HowtoPyROOT.html
http://root.cern.ch/viewvc/trunk/bindings/pyroot/ROOT.py?view=markup

When I import PyROOT (import ROOT) in PyDEV, classes and functions are not recognized
by PyDEV. Many "problem"s are reported by it, such as "Undefined variable from
import: TH1D". See the discussion below.
http://root.cern.ch/root/roottalk/roottalk09/0059.html

How can I make PyDEV to recognize all classes and variables in it? I tried
Preferences... > PyDEV > Interpreter Python > Forced builtin libs
but it didn't solve this problem.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: "Undefined variable from import" with PyROOT

by SourceForge.net :: Rate this Message:

| View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=6630551
By: fabioz

Hi, I've just followed that thread...

As it says, the PyRoot structure doesn't seem to give the needed support even
from a live shell (users have to try to make an import and check for an ImportError
to see if it succeds)

An option might be putting the specific submodules you want in the forced builtins
(e.g.: you could add PyRoot.module1 there)

But that can be a pain without a better interface (but if that works, I can
change the interface so that you can add those easier).

There are plans in Pydev to add 'completion files' that can describe the modules
without needing a shell, but that's not currently done (but keep an eye open
for it).

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: "Undefined variable from import" with PyR

by SourceForge.net :: Rate this Message:

| View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=6687275
By: oxon

Fabio,

Thank you for your comment.

I will be patient until someone invent a good solution :)

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users