์ฝ˜ํ…์ธ ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
๋ฉ”๋‰ด
์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜๋ ค๋ฉด ํšŒ์› ๊ฐ€์ž…์„ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
์‹ ๊ณ ๋œ ์งˆ๋ฌธ์ž…๋‹ˆ๋‹ค
3 ๋‹ต๊ธ€
13988 ํ™”๋ฉด
If someone created a module in Odoo, which uses Python modules for its working. So at the time of module installation if the system does not find Python packages installed in the system, it will raise an error and not allow to install the module. ๐Ÿ˜”

๐Ÿ‘‰ To avoid this, I suggest you the following solution:
1- Create a Python file e.g.: setup.py ๐Ÿ™‚
2- Add the following code (see code below) into the setup.py file โœ๏ธ
3- Don't forget to call the setup.py file in your __init__.py file. ๐Ÿง

๐Ÿ‘‰ Once all the previous step done, your Python packages will be installed automatically when you install the module. ๐Ÿ˜Ž

class Packages:
"""
This Class installs required Packages or library
"""

get_pckg = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])
installed_packages = [r.decode().split('==')[0] for r in get_pckg.split()]
# List of your required packages
required_packages = ['dateparser', 'pandas-highcharts', 'scipy']
for packg in required_packages:
if packg in installed_packages:
pass
else:
print('installing package %s' % packg)
os.system('pip3 install ' + packg)
์•„๋ฐ”ํƒ€
์ทจ์†Œ

I can't thank you enough!

Thank you so much. It was much needed.

๋ฒ ์ŠคํŠธ ๋‹ต๋ณ€

Hello ,

Rob Bro,

It is looking like you dont haveย the pip "ggplot" . if you are running python2 install with commandย  "pip install ggplot" and if you are using python3 pip3 install ggplot . This willย  solve your problem.

Thanks & Regards,

Jay R. Dasani

์•„๋ฐ”ํƒ€
์ทจ์†Œ

Thank you for responding.It worked when I reomved 'external_dependencies': from manifest.

I'm glad that i solved your problem.

๋ฒ ์ŠคํŠธ ๋‹ต๋ณ€

Thanks that is valuable information! :D :

์•„๋ฐ”ํƒ€
์ทจ์†Œ
๊ด€๋ จ ๊ฒŒ์‹œ๋ฌผ ๋‹ต๊ธ€ ํ™”๋ฉด ํ™œ๋™
0
8์›” 18
6491
2
12์›” 16
9081
Order of installed modules ํ•ด๊ฒฐ ์™„๋ฃŒ
1
1์›” 22
2562
2
9์›” 16
6072
Military states module -- help :D ํ•ด๊ฒฐ ์™„๋ฃŒ
1
3์›” 15
3912