You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Cameron Goodale (JIRA)" <ji...@apache.org> on 2013/05/06 19:54:16 UTC
[jira] [Resolved] (CLIMATE-5) misc.py tried to import SubRegion
when rcmet.py already has
[ https://issues.apache.org/jira/browse/CLIMATE-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cameron Goodale resolved CLIMATE-5.
-----------------------------------
Resolution: Fixed
Committed revision 1479654
> 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
> Attachments: CLIMATE-5-goodale-20130506-patch.txt
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> 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