Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
27561 Представления

I am trying to install ESC/POS and i get a message that some pythin modules could not be found. I downloaded those modules (LIBUSB1, PYSERIAL, and QRCODE) and installed them using the command line python -m pip install xxxxxx, which works fine, using python 2.7. But this makes no difference for Odoo. Python2.7 is installed under c:\ folder while Odoo is installed under c:\program files (x86).

The question is how do you make Odoo recognise the installed packages under Python?  Do I need to copy the installed package folder to the c:\program files (x86)\odoo9\server\ folder? I did try but I got a different error: No module named serial. Note that I have copied the folder "serial" from python to odoo, and still the same error.

If anyone can help I would appreciate it.

Cheers

Charles

Аватар
Отменить

did you manage to solve it?

Лучший ответ

it is quite annoying that there isn't just an easy interface to use pip after installing via .exe installer. Only way I have found to actually make it work is this. https://www.youtube.com/watch?v=tGSNUgqZkYU&t=203s

Аватар
Отменить
Лучший ответ

I think the right solution is the one you pointed out yourself: to copy the installed package folder to the \odoo9\server\
The only problem is that you need to copy also all their dependencies, as you point out, "serial" is one of them.
You can use pip to download a package with all its dependencies, it will show you everything it is downloading, so you can copy all of them to \odoo9\server.

Аватар
Отменить
Лучший ответ

Hi

I used the pip install, when using windows

You find it in "https://sites.google.com/site/pydatalog/python/pip-for-windows"

I hope to help you, regards.



Аватар
Отменить
Лучший ответ

Same problem with me. with usb.core it pass  i just copied usb folder from c:/python to server folder under odoo foder. but get stuck with serial module.

Help

Аватар
Отменить
Лучший ответ

Same problem with me. I'm stuck with two Odoo third party modules because of this. I really think there should be some "official" concern about those developers who are using Odoo for Windows, rather than the "change to linux" attitude.


Guys in Odoo! Help!!!

Аватар
Отменить