2011/6/26 Massimo Di Pierro <[email protected]>

> I found the problem
>
> http://groups.google.com/group/web2py/msg/aaa803e14404fc62
>
> This is not a problem with web2py.
>
> @ Pierre, I did found a non-related problem with web2py.
>
> models/meteo.py uses custom_import to import modules/meteo.py. The latter
> imports matplotlib. I do not have matplotlib and current_import fails with
> this error:
>
> Traceback (most recent call last):
>   File "/Users/mdipierro/web2py/gluon/restricted.py", line 192, in restricted
>     exec ccode in environment
>   File "/Users/mdipierro/web2py/applications/wind2pow2/models/meteo.py" 
> <http://127.0.0.1:8000/admin/default/edit/wind2pow2/models/meteo.py>, line 
> 74, in <module>
>     from meteo import model, data_units, meta_datas, getUniqueSequence
>   File "/Users/mdipierro/web2py/gluon/custom_import.py", line 280, in __call__
>     fromlist, level)
>   File "/Users/mdipierro/web2py/gluon/custom_import.py", line 124, in __call__
>
>     raise e  # Don't hide something that went wrong
> ImportError: No module named meteo
>
>
> This error is not quite correct.
>
> Massimo
>
>
Hello Massimo,

Sorry, I was not very available. So as I understand, the problem here is
that the custom importer does not give a proper error message? An error is
expected but it does not show the right one?

-- 


A+

-------------
Pierre
My blog and profile
(http://pierrethibault.posterous.com)<http://pierrethibault.posterous.com>
YouTube page 
(http://www.youtube.com/user/tubetib)<http://www.youtube.com/user/tubetib>
Twitter (http://twitter.com/pierreth2) <http://twitter.com/pierreth2>

Reply via email to