Hi Anthony,

Yes i have empty __init__.py files in each folders.
I tried to use "import xml.etree.ElementTree as ET". (instead of 
cElementTree) it works.

Now i am having problem importing another library: Plotly

the trace back as follows;
Traceback

1.
2.
3.
4.
5.
6.
7.
8.

Traceback (most recent call last):
  File "D:\2. Projects\Web2Py\2_MULA_2_0\web2py\gluon\restricted.py", line 219, 
in restricted
    exec(ccode, environment)
  File 
"c:/web2py/applications/MULA_2_0\compiled\controllers.cell_reselection.index.py",
 line 3, in <module>
  File "D:\2. Projects\Web2Py\2_MULA_2_0\web2py\gluon\custom_import.py", line 
104, in custom_importer
    raise ImportError(e1, import_tb)  # there an import error in the module
ImportError: (ImportError(ImportError(ImportError('cannot import name 
exceptions',), <traceback object at 0x087693F0>), <traceback object at 
0x0875BE18>), <traceback object at 0x086C1198>)


I even copied everything from my C:\Python27\Lib\site-packages to. ... 
web2py\site-packages, still no luck.

Is web2py binary limited to import certain type of libraries only?


Please advise.


Regards,

Jaison


On Friday, 16 March 2018 23:00:56 UTC+8, Anthony wrote:
>
> Do you have empty __init__.py files inside those two subfolders?
>
> On Friday, March 16, 2018 at 6:34:02 AM UTC-4, Jaison Raj wrote:
>>
>> Hi, 
>> I am trying to create a binary application (after compiling and packaging 
>> from windows).
>> In my controller, i am importing a library :"import 
>> xml.etree.cElementTree as ET".
>> I placed the files cElementTree.py and cElementTree.pyc in etree folder 
>> as follows:
>> \web2py\site-packages\xml\etree.
>>
>> I am getting error: 
>> <type 'exceptions.ImportError'> No module named cElementTree.
>>
>> How can i solver this error?
>> Pls advice.
>>
>>
>> Regards,
>> Jaison
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to