コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
8575 ビュー

I am trying to install a \third party module​ with external dependencies on Odoo.sh via the Webshell. I need access to SUDO to install PyCups but when I attempt the commands I get:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid 
How do I get root access in Odoo.sh to perform SUDO commands? Or is there an alternative way to install PyCups?
アバター
破棄
著作者 最善の回答

So just to wrap this up, you cannot SUDO from Odoo.sh v12

You can however define python dependencies into a requirements.txt that will install your required dependencies.

アバター
破棄
最善の回答

As found on the Odoo.sh FAQ:

Python dependencies:

You can define requirements.txt files in your branch holding the python dependencies your project relies on. These requirements files can be placed in the root of the folders containing your addons. The platform will then install the dependencies for each build.

System dependencies:

This is currently not possible to install system packages (e.g. apt packages).

Nevertheless, if the package could be useful for more than one project, we will consider to install it by default in the containers images if the package meets the following requirements:

  • there should be not conflict with the rest of the packages
  • the software should not run as a long running service or daemon
  • no elevated privileges or additional system user should be required
  • the software should not directly or indirectly represent a security attack vector
  • the software should run flawlessly in a constrained linux namespace environment with cgroup limits on memory, processes, threads, files, ... (this excludes greedy VMs such as java)
Same goes for python modules requiring system packages for their compilation. In such a case, leave us a feedback and provide us with some details about your use-case.

PostgreSQL dependencies:

PostgreSQL extensions are not supported on Odoo.sh hence it is not possible to install extensions (such as PostGIS, ltree, ...) in an Odoo.sh database.


アバター
破棄
著作者

Thanks for the response Jake.

We managed to install the app successfully using the "requirements.txt" files. Only to find that we wouldn't be able to configure the app for our purposes :P

Appreciate the direction though. Cheers.

関連投稿 返信 ビュー 活動
3
8月 21
3179
4
10月 24
9574
1
4月 19
5278
1
4月 19
3904
4
4月 25
10592