Opened 9 years ago
Closed 9 years ago
#1020 closed defect (fixed)
wcst_import.sh fails with ImportError
Reported by: | Dimitar Misev | Owned by: | Alex Dumitru |
---|---|---|---|
Priority: | blocker | Milestone: | 9.1.x |
Component: | applications | Version: | development |
Keywords: | Cc: | Vlad Merticariu | |
Complexity: | Medium |
Description (last modified by )
On a freshly installed rasdaman I get this:
$ wcst_import.sh Traceback (most recent call last): File "/home/dimitar/projects/rasdaman/community/install/share/rasdaman/wcst_import/wcst_import.py", line 11, in <module> from master.recipe.recipe_registry import RecipeRegistry File "/home/dimitar/projects/rasdaman/community/install/share/rasdaman/wcst_import/master/recipe/recipe_registry.py", line 5, in <module> from master.recipe.base_recipe import BaseRecipe File "/home/dimitar/projects/rasdaman/community/install/share/rasdaman/wcst_import/master/recipe/base_recipe.py", line 6, in <module> from session import Session File "/home/dimitar/projects/rasdaman/community/install/share/rasdaman/wcst_import/session.py", line 3, in <module> from util.file_obj import File File "/home/dimitar/projects/rasdaman/community/install/share/rasdaman/wcst_import/util/file_obj.py", line 2, in <module> from util.file_util import FileUtil ImportError: No module named file_util
Change History (7)
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
comment:3 by , 9 years ago
comment:4 by , 9 years ago
Hi Bang, my installation is definitely not missing that file:
$ find $RMANHOME -name file_util.py /home/dimitar/projects/rasdaman/community/install/share/rasdaman/wcst_import/util/file_util.py
comment:5 by , 9 years ago
I don't know why you could not import this file in wcst_import.py, but I also have a test with clone newest rasdaman and try to run wcst_import.py. Please see below (I'm in folder test and run the script)
git clone git://rasdaman.org/rasdaman.git [rasdaman@gonzo wcst_import]$ pwd /home/rasdaman/test/rasdaman/applications/wcst_import [rasdaman@gonzo wcst_import]$ python wcst_import.py /home/rasdaman/ingredient.txt Initialization Collected files: ['/home/rasdaman/util/rgb.png']... Validation The recipe has been validated and is ready to run. Recipe: map_mosaic Coverage: test6 WCS Service: http://localhost:8080/rasdaman/ows Operation: INSERT Subset Correction: False Mocked: False Track files: True WMS Import: False A couple of files have been analyzed. Check that the axis subsets are correct. Slice 1: {Axis Subset: i(0.0,400.0) j(344.0,0.0) k(0) m(0) Data Provider: file:///home/rasdaman/util/rgb.png}
comment:7 by , 9 years ago
I cannot replicate this on my system, I'm installing a Ubuntu VM to test on a fresh system. Have you installed rasdaman in a new folder or just updated the sources and installed in a previously used directory?
comment:8 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ok I removed $RMANHOME/share/rasdaman/wcst_import and recompiled again, and it's all fine now.
Hi Dimitar,
your installation misses file file_util.py in folder /wcst_import/util/file_util.py (my latest installation on Friday has this file).