You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Huikyo Lee (JIRA)" <ji...@apache.org> on 2013/05/06 23:22:17 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13650116#comment-13650116 ]
Huikyo Lee commented on CLIMATE-5:
----------------------------------
Thank you for work, Cameron.
Now it works on workstations (low/high pressure & warm/cold front) except on Argo.
The error messages on Argo is as below:
[argo:/home/huikyole/work/RCMES/rcmet/src/main/python/bin]$ rcmet.py -c ../rcmes/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/metrics.py", line 28, in <module>
from toolkit import plots, process
File "/home/huikyole/work/RCMES/rcmet/src/main/python/rcmes/toolkit/plots.py", line 10, in <module>
import pylab
File "/usr/local/lib/python2.6/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/local/lib/python2.6/site-packages/matplotlib/pylab.py", line 222, in <module>
from matplotlib import mpl # pulls in most modules
File "/usr/local/lib/python2.6/site-packages/matplotlib/mpl.py", line 1, in <module>
from matplotlib import artist
File "/usr/local/lib/python2.6/site-packages/matplotlib/artist.py", line 7, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, \
File "/usr/local/lib/python2.6/site-packages/matplotlib/transforms.py", line 46, in <module>
from path import Path
File "/usr/local/lib/python2.6/site-packages/matplotlib/path.py", line 12, in <module>
from matplotlib._path import point_in_path, get_path_extents, \
ImportError: cannot import name points_in_path
Cheers,
Kyo
> 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