This question has been flagged
8 Replies
15232 Views
Hello guys, after installing Odoo 10 directly on my Mac and after creating the db that I want to use I get this error, and I don't know how to fix it:

2017-06-16 20:16:49,998 75226 WARNING odoo-dev odoo.addons.base.ir.ir_qweb.assetsbundle: /Users/Jorge/.rvm/gems/ruby-2.3.1/gems/less-2.6.0/bin/lessc:83:in `<top (required)>': invalid option: --no-js (OptionParser::InvalidOption)
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `load'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `<main>'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
This error occured while compiling the bundle 'web.assets_common' containing:
    - /web/static/lib/bootstrap/less/variables.less
    - /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
    - /web/static/lib/bootstrap/less/mixins/buttons.less
    - /web/static/src/less/variables.less
    - /web/static/src/less/utils.less
    - /web_editor/static/src/less/web_editor.variables.less
    - /web/static/src/less/fonts.less
    - /web/static/src/less/navbar.less
    - /web/static/src/less/mimetypes.less
    - /web/static/src/less/animation.less
    - /web/static/lib/bootstrap-datetimepicker/src/less/bootstrap-datetimepicker.less
    - /web_planner/static/src/less/web_planner_common.less
    - /web_tour/static/src/less/tip.less
    - /web_tour/static/src/less/keyframes.less 2017-06-16 20:16:50,628 75226 WARNING odoo-dev odoo.addons.base.ir.ir_qweb.assetsbundle: /Users/Jorge/.rvm/gems/ruby-2.3.1/gems/less-2.6.0/bin/lessc:83:in `<top (required)>': invalid option: --no-js (OptionParser::InvalidOption)
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `load'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `<main>'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
This error occured while compiling the bundle 'web.assets_backend' containing:
    - /web/static/lib/bootstrap/less/variables.less
    - /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
    - /web/static/lib/bootstrap/less/mixins/buttons.less
    - /web/static/src/less/variables.less
    - /web/static/src/less/utils.less
    - /web_editor/static/src/less/web_editor.variables.less
    - /web/static/src/less/import_bootstrap.less
    - /web/static/src/less/bootstrap_overridden.less
    - /web/static/src/less/webclient_extra.less
    - /web/static/src/less/webclient_layout.less
    - /web/static/src/less/webclient.less
    - /web/static/src/less/datepicker.less
    - /web/static/src/less/progress_bar.less
    - /web/static/src/less/dropdown.less
    - /web/static/src/less/tooltip.less
    - /web/static/src/less/debug_manager.less
    - /web/static/src/less/control_panel.less
    - /web/static/src/less/control_panel_layout.less
    - /web/static/src/less/views.less
    - /web/static/src/less/pivot_view.less
    - /web/static/src/less/graph_view.less
    - /web/static/src/less/tree_view.less
    - /web/static/src/less/form_view_layout.less
    - /web/static/src/less/form_view.less
    - /web/static/src/less/list_view.less
    - /web/static/src/less/search_view.less
    - /web/static/src/less/modal.less
    - /web/static/src/less/data_export.less
    - /web/static/src/less/switch_company_menu.less
    - /web/static/src/less/dropdown_extra.less
    - /web/static/src/less/views_extra.less
    - /web/static/src/less/form_view_extra.less
    - /web/static/src/less/form_view_layout_extra.less
    - /web/static/src/less/search_view_extra.less
    - /base_import/static/src/less/base_import.less
    - /web_calendar/static/src/less/web_calendar.less
    - /web_diagram/static/src/less/diagram_view.less
    - /web_editor/static/src/less/web_editor.common.less
    - /web_editor/static/src/less/web_editor.backend.less
    - /web_kanban/static/src/less/kanban_dashboard.less
    - /web_kanban/static/src/less/kanban_view.less
    - /web_settings_dashboard/static/src/less/dashboard.less 2017-06-16 20:16:51,102 75226 WARNING odoo-dev odoo.addons.base.ir.ir_qweb.assetsbundle: /Users/Jorge/.rvm/gems/ruby-2.3.1/gems/less-2.6.0/bin/lessc:83:in `<top (required)>': invalid option: --no-js (OptionParser::InvalidOption)
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `load'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `<main>'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
This error occured while compiling the bundle 'web_editor.summernote' containing:
    - /web_editor/static/lib/summernote/src/less/summernote.less 2017-06-16 20:16:51,467 75226 WARNING odoo-dev odoo.addons.base.ir.ir_qweb.assetsbundle: /Users/Jorge/.rvm/gems/ruby-2.3.1/gems/less-2.6.0/bin/lessc:83:in `<top (required)>': invalid option: --no-js (OptionParser::InvalidOption)
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `load'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/lessc:23:in `<main>'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
 from /Users/Jorge/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
This error occured while compiling the bundle 'web_editor.assets_editor' containing:
    - /web/static/lib/bootstrap/less/variables.less
    - /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
    - /web/static/lib/bootstrap/less/mixins/buttons.less
    - /web/static/src/less/variables.less
    - /web/static/src/less/utils.less
    - /web_editor/static/src/less/web_editor.variables.less
    - /web_editor/static/src/less/web_editor.ui.less
    - /web_editor/static/src/less/web_editor.ui.components.less
Avatar
Discard
Best Answer

pip3 install -r odoo10/odoo/requirements.txt

Restart server
Still, an error occurs then fire below command.

sudo npm uninstall -g less
sudo npm install -g less@3.10.3

Avatar
Discard
Best Answer

Hi Guys,


I just made an update of the code pulling from git as usual

Than I restart my odoo server and update the application


After I do this I get the less related error message showing on the screen:

  1. This error occured while compiling the bundle 'web_editor.assets_editor' containing:\A - /web/static/lib/bootstrap/less/variables.less\A - /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less\A - /web/static/lib/bootstrap/less/mixins/buttons.less\A - /web/static/src/less/variables.less\A - /web/static/src/less/utils.less\A - /web_editor/static/src/less/web_editor.variables.less\A - /web_editor/static/src/less/web_editor.ui.less\A - /web_editor/static/src/less/web_editor.ui.components.less"


This is in teh backend view.


On the front end view, I get the following message

  1. "This error occured while compiling the bundle 'website.assets_editor' containing:\A - /web/static/lib/bootstrap/less/variables.less\A - /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less\A - /web/static/lib/bootstrap/less/mixins/buttons.less\A - /web/static/src/less/variables.less\A - /web/static/src/less/utils.less\A - /web_editor/static/src/less/web_editor.variables.less\A - /website/static/src/less/website.edit_mode.less\A - /theme_treehouse/static/src/less/colors.less\A - /theme_treehouse/static/src/less/customize.less"


So I ran the following command thining that less was update

sudo npm install -g less less-plugin-clean-css

And restarted again the odoo server

But no luck, still the same issue


Anybody having an idea what to do?

The previous update, I did not get this error showing up so I don't understand

No other changes was made apart from update of the code.


Cheers

Avatar
Discard
Best Answer

If anyone still needs this: less version 3.10.3 should best fit Odoo 9, Odoo 10, Odoo 11.

sudo npm install -g less@3.10.3

sudo npm install -g less-plugin-clean-css
Avatar
Discard
Best Answer

Simply run

*** sudo ln nodejs node

*** sudo apt-get install --reinstall node-less


You RAM has nothing to do with the issue

Avatar
Discard
Best Answer
Hello \Jorge\ Dominguez\\\
\\
\
\\


please try with following links

 https://gist.github.com/jfie5/7343868 

or 

https://coolestguidesontheplanet.com/running-installing-less-css-osx-10-8-mountain-lion/

I hope it will help for you 


Thank you

Avatar
Discard
Best Answer

Hi For mac something like this might be more appropriate : https://treehouse.github.io/installation-guides/mac/node-mac.html

Regards,

Imran

Avatar
Discard
Author Best Answer

Kabeer, thank you for trying. but like i already say im on a Mac. So I cant apt-get :(

Avatar
Discard
Best Answer

install these dependencies  

     sudo apt-get install -y npm

     sudo ln -s /usr/bin/nodejs /usr/bin/node
     sudo npm install -g less less-plugin-clean-css

Hope it will help you.


Avatar
Discard