Cameron Goodale created CLIMATE-5:
-------------------------------------

             Summary: misc.py tried to import SubRegion when rcmet.py already 
has
                 Key: CLIMATE-5
                 URL: https://issues.apache.org/jira/browse/CLIMATE-5
             Project: Apache Open Climate Workbench
          Issue Type: Bug
          Components: rcmet
         Environment: CentOS, OS X
            Reporter: Cameron Goodale
            Assignee: Cameron Goodale
            Priority: Critical


>From the Mailing list:

[argo:/home/huikyole/work/RCMES/rcmet/src/main/python/bin]$ python rcmet.py -c 
./resources/cordexAF.cfg
Traceback (most recent call last):
  File "rcmet.py", line 15, in <module>
    from toolkit import do_data_prep, process, metrics
  File 
"/home/huikyole/work/RCMES/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py",
 line 10, in <module>
    from storage import db, files
  File "/home/huikyole/work/RCMES/rcmet/src/main/python/rcmes/storage/db.py", 
line 11, in <module>
    from classes import RCMED
  File "/home/huikyole/work/RCMES/rcmet/src/main/python/rcmes/classes.py", line 
6, in <module>
    import storage.files as files
  File 
"/home/huikyole/work/RCMES/rcmet/src/main/python/rcmes/storage/files.py", line 
22, in <module>
    from utils import misc
  File "/home/huikyole/work/RCMES/rcmet/src/main/python/rcmes/utils/misc.py", 
line 15, in <module>
    from classes import SubRegion
ImportError: cannot import name SubRegion
[argo:/home/huikyole/work/RCMES/rcmet/src/main/python/bin]$

This isn't a circular import, as much as rcmet.py has already imported this 
module and class, then misc.py is trying to do that same thing but the import 
has already happened.

I will provide a patch that will change the import statement in misc.py and 
resolve this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to