InvoiceNet icon indicating copy to clipboard operation
InvoiceNet copied to clipboard

installation problem

Open fturiot opened this issue 4 years ago • 3 comments
trafficstars

./install.sh: ligne 7: virtualenv : commande introuvable ./install.sh: ligne 8: env/bin/activate: Aucun fichier ou dossier de ce type Processing /home/triax/projects/modules/InvoiceNet DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.

fturiot avatar Sep 10 '21 06:09 fturiot

python3 trainer.py /usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported " Traceback (most recent call last): File "trainer.py", line 22, in <module> from invoicenet.gui.trainer import Trainer File "/home/user/InvoiceNet/invoicenet/gui/trainer.py", line 32, in <module> from PIL import Image, ImageTk ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)

python trainer.py Traceback (most recent call last): File "trainer.py", line 21, in <module> from tkinter import Tk ImportError: No module named tkinter

i am facing the same issues, unable to run anything

test2a avatar Nov 06 '21 17:11 test2a

ok. i used https://stackoverflow.com/questions/56155627/requestsdependencywarning-urllib3-1-25-2-or-chardet-3-0-4-doesnt-match-a-s and pip3 install --upgrade requests

but now i get something new python3 trainer.py Traceback (most recent call last): File "trainer.py", line 22, in <module> from invoicenet.gui.trainer import Trainer File "/home/user/InvoiceNet/invoicenet/gui/trainer.py", line 32, in <module> from PIL import Image, ImageTk ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)

which i solved by doing sudo apt-get install python3-pil.imagetk

and now new error python3 trainer.py Traceback (most recent call last): File "trainer.py", line 22, in <module> from invoicenet.gui.trainer import Trainer File "/home/user/InvoiceNet/invoicenet/gui/trainer.py", line 35, in <module> from ..common import util File "/home/user/InvoiceNet/invoicenet/common/util.py", line 32, in <module> from googleapiclient.discovery import build ModuleNotFoundError: No module named 'googleapiclient'

i used pip3 install google-api-python-client

this got me

python3 trainer.py Traceback (most recent call last): File "trainer.py", line 22, in <module> from invoicenet.gui.trainer import Trainer File "/home/user/InvoiceNet/invoicenet/gui/trainer.py", line 35, in <module> from ..common import util File "/home/user/InvoiceNet/invoicenet/common/util.py", line 34, in <module> from google.cloud import vision ModuleNotFoundError: No module named 'google.cloud'

then i used sudo pip3 install google-cloud-vision

now it works. @naivehobo is this something that needs to be updated in requirements or dependencies?

test2a avatar Nov 06 '21 17:11 test2a

same here when a run data training

(env) ➜  InvoiceNet git:(master) ✗ python prepare_data.py --data_dir train_data/
Traceback (most recent call last):
  File "prepare_data.py", line 30, in <module>
    from invoicenet.common import util
  File "/home/david/dev-test/InvoiceNet/invoicenet/common/util.py", line 32, in <module>
    from googleapiclient.discovery import build
ModuleNotFoundError: No module named 'googleapiclient'

I can fix this error with

pip3 install google-api-python-client

(env) ➜  InvoiceNet git:(master) ✗ python prepare_data.py --data_dir train_data/
Total: 0
Training: 0
Validation: 0
Preparing train data...
0it [00:00, ?it/s]
Preparing val data...
0it [00:00, ?it/s]

DavidBuyCo avatar Feb 13 '22 09:02 DavidBuyCo