Strange this is ok dependent.

On Tuesday, 27 November 2012 14:39:30 UTC-6, omicron wrote:
>
> And with CentOS 6.3 and his Python 2.6, this problem doesn't exist !!!
>
> Le jeudi 15 novembre 2012 12:24:16 UTC+1, omicron a écrit :
>>
>> I use an Ubuntu 12.04LTS, python 2.7 and web2py 2.2.1
>> lpod is installed in /usr/local/lib/python2.7/dist-packages, and it's an 
>> egg
>>
>> import lpod.document as oodoc -> import error
>> import lpod.document -> import error
>> import ldoc -> no import error, but error document isn't found in lpod 
>> module
>>
>> And, I repeat, with python shell and web2py 1.99.7 it's ok (i make a new 
>> test this morning)
>>
>> And now, if i copy the lpod folder from the egg to :
>>
>>    - web2py/site-packages folder -> import error
>>    - web2py/applications/myapp/modules -> it's ok !!!
>>    
>> So i have a solution, but it's strange. 
>> Perhaps the lpod library is particular, because this code is ok inweb2py 
>> 2.2.1 : import dateutil.relativedelta as rd
>>
>>
>> Le mercredi 14 novembre 2012 15:26:28 UTC+1, Massimo Di Pierro a écrit :
>>>
>>> Moreover. Where is lpod? How was it installed?
>>>
>>> On Wednesday, 14 November 2012 08:26:09 UTC-6, Massimo Di Pierro wrote:
>>>>
>>>> Does it work if you simply do:  import lpod.document  ?
>>>>
>>>>
>>>> On Tuesday, 13 November 2012 04:37:43 UTC-6, omicron wrote:
>>>>>
>>>>> With web2py 1.99.7 this import was Ok :
>>>>>     import lpod.document as oodoc
>>>>>
>>>>> But with version 2.2.1, I have this error :
>>>>>   File "/home/myhome/Applications/web2py/gluon/custom_import.py", line 
>>>>> 77, in custom_importer
>>>>>     raise ImportError, 'Cannot import module %s' % str(e)
>>>>>   ImportError: Cannot import module 'lpod'
>>>>>
>>>>> But if I replace with this:
>>>>>   import lpod
>>>>> It's ok !!!
>>>>>
>>>>> And, of course, in a python shell it's ok.
>>>>>
>>>>> Thanks
>>>>>
>>>>>

-- 



Reply via email to