GreenOdoo reports "ImportError: No module named simplejson" when creating a new module

environment:

Operating system: CentOS7

Odoo Edition Book: GreenOdoo8.0

 

In this environment, ready to create a new module, execute:

./odoo.py scdffold openacademy ../../myaddons/

, will report:

...

  File "/data1/odoo/GreenOdoo-8.0-linux64/source/openerp/osv/orm.py", line 1, in <module>

    import simplejson

ImportError: No module named simplejson

, this is not the lack of the corresponding class in GreenOdoo, but when odoo.py is executed, the Python that comes with CentOS is used, so this class cannot be found, just use the Python brought by GreenOdoo to execute:

../runtime/python/bin/python2.7 ./odoo.py scdffold openacademy ../../myaddons/

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326720938&siteId=291194637