atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.61k stars 349 forks source link

ModuleNotFoundError #379

Open aliimranshah opened 4 years ago

aliimranshah commented 4 years ago

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 import camelot ModuleNotFoundError: No module named 'camelot'
vinayak-mehta commented 4 years ago

@aliimranshah Can you post the command you used to install the package?

smbrandonjr commented 4 years ago

I am also receiving this error. I installed camelot via my requirements.txt file:

requirements.txt camelot-py[all] gunicorn Flask pymongo werkzeug requests passlib pyral python-dateutil google-api-python-client google-auth-httplib2 google-auth-oauthlib beautifulsoup4 lxml validate_email

Installed via: pip3 --no-cache-dir install -r /home/mike_brandon/client_ops_webapp/requirements.txt;

Error: Traceback (most recent call last): File "/root/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/root/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/root/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/root/env/lib/python3.5/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/root/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/root/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/root/env/lib/python3.5/site-packages/gunicorn/util.py", line 350, in import_app __import__(module) File "/home/mike_brandon/client_ops_webapp/src/run.py", line 1, in <module> from webapp import webapp File "/home/mike_brandon/client_ops_webapp/src/webapp.py", line 11, in <module> from models.sprint_pdf.sprint_pdf import SPdf File "/home/mike_brandon/client_ops_webapp/src/models/sprint_pdf/sprint_pdf.py", line 2, in <module> import camelot ImportError: No module named 'camelot'

I am utilizing (or want to utilize) camelot in a web app I am running on Debain 9.

I am deving my app on Windows and do not get the import error.

smbrandonjr commented 4 years ago

Finally just got past this....even though it appeared that camelot-py was getting installed via my requirements file, I manually went into my venv and ran pip3 install camelot-py[all] and that finally got me past this error.

User64390 commented 1 year ago

After running 'excalibur webserver ' on jupyter notebook ..i am getting this error -

Input In [15] excalibur webserver ^ SyntaxError: invalid syntax

and after running it on cmd i am getting this error -

Traceback (most recent call last): File "c:\users\User64390\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\User64390\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\User64390\AppData\Local\Programs\Python\Python38-32\Scripts\excalibur.exe__main__.py", line 4, in File "c:\users\User64390\appdata\local\programs\python\python38-32\lib\site-packages\excalibur\cli.py", line 10, in from .tasks import split, extract File "c:\users\User64390\appdata\local\programs\python\python38-32\lib\site-packages\excalibur\tasks.py", line 13, in from camelot.ext.ghostscript import Ghostscript ModuleNotFoundError: No module named 'camelot.ext'