Re: Help on module import

23 views
Skip to first unread message

Jordi Puigsegur Figueras

unread,
Mar 26, 2012, 2:57:40 PM3/26/12
to wfro...@googlegroups.com
Hi,

I don't understand how you get this error. Is this a fresh installation of wfrog using the debian package?  Which version?

If you try /usr/lib/wfrog/bin/wfrog -v, does it work?

Can you post the result of ls -l /usr/bin/wfrog

Jordi.

2012/3/24 PK <pk2...@gmail.com>
Hello

I was restarting wfrog, and it crashed. I have been experimenting a
bit with some files, but have restored (I hope) original files after
that. Python version is 2.6.6.

Module import datasource.accumulator now fails - why?

# wfrog -v
Traceback (most recent call last):
 File "/usr/bin/wfrog", line 39, in <module>
   import wfrender.wfrender
 File "/usr/lib/wfrog/wfrender/wfrender.py", line 27, in <module>
   import config
 File "/usr/lib/wfrog/wfrender/config.py", line 20, in <module>
   import renderer
 File "/usr/lib/wfrog/wfrender/renderer/__init__.py", line 31, in
<module>
   import meteoclimatic
 File "/usr/lib/wfrog/wfrender/renderer/meteoclimatic.py", line 32,
in <module>
   from datasource.accumulator import AccumulatorDatasource

ImportError: No module named datasource.accumulator

I guess the import change in meteoclimatic.py has a reason (perhaps
like issue 81?):

try:
   from wfrender.datasource.accumulator import AccumulatorDatasource
except ImportError, e:
   from datasource.accumulator import AccumulatorDatasource

Does anyone see a reason for this problem?
Thanks in advance
/PK

Reply all
Reply to author
Forward
0 new messages