Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aeroo-docs installation - No module named 'uno' #124

Open
lbertran opened this issue Dec 7, 2019 · 9 comments
Open

Aeroo-docs installation - No module named 'uno' #124

lbertran opened this issue Dec 7, 2019 · 9 comments

Comments

@lbertran
Copy link

lbertran commented Dec 7, 2019

Hi,

I am installing odoo 11 on Debian 9 (bitnami). I will use modules for Argentina and the requirements are Aeroo-reports.

Now update apt-get and install python3-uno and unoconv.

Running

sudo python3 / opt / aeroo / aeroo_docs / aeroo-docs start -c /etc/aeroo-docs.conf

I get the following error:

Traceback (most recent call last):
File "/ opt / aeroo / aeroo_docs / aeroo-docs", line 42, in
from aeroo_docs_fncs import OfficeService
File "/opt/aeroo/aeroo_docs/aeroo_docs_fncs.py", line 37, in
from DocumentConverter import DocumentConverter, DocumentConversionException
File "/opt/aeroo/aeroo_docs/DocumentConverter.py", line 34, in
import one
ModuleNotFoundError: No module named 'one'

@sraps
Copy link
Contributor

sraps commented Dec 7, 2019 via email

@lbertran
Copy link
Author

lbertran commented Dec 8, 2019

Thanks for answering. It's UNO, "one" was a translation error.

As you can see I try to install UNO and the message is that it is already installed. Then I run import UNO and the message is that the module does not exist

bitnami@debian:~$ sudo apt-get install python3-uno
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-uno is already the newest version (1:5.2.7-1+deb9u11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bitnami@debian:~$ python3
Python 3.7.4 (default, Oct 17 2019, 10:22:20)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'uno'

then I ran pip3 install uno successfully.

I run again yes | sudo python3 /opt/aeroo/aeroo_docs/aeroo-docs start -c /etc/aeroo-docs.conf and the error is ModuleNotFoundError: No module named 'base'

I ran pip3 install base successfully.

I run again yes | sudo python3 /opt/aeroo/aeroo_docs/aeroo-docs start -c /etc/aeroo-docs.conf and the error is

Traceback (most recent call last):
  File "/opt/aeroo/aeroo_docs/aeroo-docs", line 42, in <module>
    from aeroo_docs_fncs import OfficeService
  File "/opt/aeroo/aeroo_docs/aeroo_docs_fncs.py", line 37, in <module>
    from DocumentConverter import DocumentConverter, DocumentConversionException
  File "/opt/aeroo/aeroo_docs/DocumentConverter.py", line 34, in <module>
    import uno
  File "/opt/bitnami/python/lib/python3.7/site-packages/uno/__init__.py", line 4, in <module>
    from base import Element, Css, Payload, UnoBaseFeature, UnoBaseField
ImportError: cannot import name 'Element' from 'base' (/opt/bitnami/python/lib/python3.7/site-packages/base/__init__.py)

Not sure if pip3 install uno is correct

@sraps
Copy link
Contributor

sraps commented Dec 8, 2019 via email

@sraps
Copy link
Contributor

sraps commented Dec 8, 2019 via email

@lbertran
Copy link
Author

lbertran commented Dec 8, 2019

Versions:

bitnami@debian:~$ pip3 -V
pip 19.0.3 from /opt/bitnami/python/lib/python3.7/site-packages/pip (python 3.7)
bitnami@debian:~$ python3 -V
Python 3.7.4

Just aeroo-docs start

bitnami@debian:/opt/aeroo/aeroo_docs$ sudo ./aeroo-docs start
Traceback (most recent call last):
  File "./aeroo-docs", line 42, in <module>
    from aeroo_docs_fncs import OfficeService
  File "/opt/aeroo/aeroo_docs/aeroo_docs_fncs.py", line 37, in <module>
    from DocumentConverter import DocumentConverter, DocumentConversionException
  File "/opt/aeroo/aeroo_docs/DocumentConverter.py", line 34, in <module>
    import uno
  File "/opt/bitnami/python/lib/python3.7/site-packages/uno/__init__.py", line 4, in <module>
    from base import Element, Css, Payload, UnoBaseFeature, UnoBaseField
ImportError: cannot import name 'Element' from 'base' (/opt/bitnami/python/lib/python3.7/site-packages/base/__init__.py)

@lbertran
Copy link
Author

Hi @sraps

Could you advance on this issue? thank you very much

@sraps
Copy link
Contributor

sraps commented Dec 13, 2019 via email

@lbertran
Copy link
Author

Thank you very much @sraps . I tried what you told me and the output was:

bitnami@debian:~$ sudo pip3 uninstall uno
Uninstalling uno-0.3.3:
  Would remove:
    /opt/bitnami/python/lib/python3.7/site-packages/uno-0.3.3.dist-info/*
    /opt/bitnami/python/lib/python3.7/site-packages/uno/*
Proceed (y/n)? Y
  Successfully uninstalled uno-0.3.3
bitnami@debian:~$ sudo aptitude install python3-uno
python3-uno is already installed at the requested version (1:5.2.7-1+deb9u11)
python3-uno is already installed at the requested version (1:5.2.7-1+deb9u11)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

bitnami@debian:~$ sudo python3 /opt/aeroo/aeroo_docs/aeroo-docs start -c /etc/aeroo-docs.conf
Traceback (most recent call last):
  File "/opt/aeroo/aeroo_docs/aeroo-docs", line 42, in <module>
    from aeroo_docs_fncs import OfficeService
  File "/opt/aeroo/aeroo_docs/aeroo_docs_fncs.py", line 37, in <module>
    from DocumentConverter import DocumentConverter, DocumentConversionException
  File "/opt/aeroo/aeroo_docs/DocumentConverter.py", line 34, in <module>
    import uno
ModuleNotFoundError: No module named 'uno'

Something is missing

@lbertran
Copy link
Author

Hi @sraps how are you? Can you find something else about this issue?

Thanks you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants