ncdingari / r-orange

Automatically exported from code.google.com/p/r-orange
Other
0 stars 0 forks source link

signal registry #487

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I don't understand these errors.  What should the proper import be and why are 
we doing this here????

REDRCORE:WARNING : 

############################################################
Unhandled exception of type AttributeError occured at 2011-02-08 
17:18:52.761000:
Traceback:
  File: signals.py, line 109 in registerRedRSignals
  Code: c = forname('libraries.%s.signalClasses.%s' % (package,signalClass),signalClass)
    File: signals.py, line 123 in forname
    Code: classobj = getattr(module, classname)
      AttributeError: 'module' object has no attribute 'RPAMPFit' 
############################################################

REDRCORE:WARNING : 

############################################################
Unhandled exception of type AttributeError occured at 2011-02-08 
17:18:52.801000:
Traceback:
  File: signals.py, line 109 in registerRedRSignals
  Code: c = forname('libraries.%s.signalClasses.%s' % (package,signalClass),signalClass)
    File: signals.py, line 123 in forname
    Code: classobj = getattr(module, classname)
      AttributeError: 'module' object has no attribute 'signalClasses' 
############################################################

Original issue reported on code.google.com by kylecovi...@gmail.com on 8 Feb 2011 at 11:28

GoogleCodeExporter commented 8 years ago
I find importing each signal and qtwidget very cumbersome, so i reimplemented 
the import of signals and qtwidgets in signals.py and redRGUI.py

I use __import__ function instead of imp, so the import now behaves exactly 
like import libraries.nnn.nnn...

i guess you are getting those errors because your packages do not have the 
proper __init__ files. 

Original comment by anup.parikh on 9 Feb 2011 at 12:33

GoogleCodeExporter commented 8 years ago

Original comment by anup.parikh on 9 Feb 2011 at 7:31

GoogleCodeExporter commented 8 years ago

Original comment by anup.parikh on 9 Feb 2011 at 7:44