camelot-dev / camelot-dev/excalibur

Python 3.8 Fail to initdb Excalibur 0.4.3 on Windows 10

Open
#144 8 comments 14 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.8k
Forks
238
PR merge metrics
No merged PRs in 30d

Description

After installing excalibur ( Already have a working camelot installation)

`PS C:\Users\klewer> python.exe --version
Python 3.8.0`

`PS C:\Users\klewer> python -m camelot --version
__main__.py, version 0.10.1`

`PS C:\Users\klewer> python -m excalibur --version
__main__.py, version 0.4.3`

I tried to initdb, the following exception was raised:

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

To fix this in my environment,

I changed the line:

https://github.com/camelot-dev/excalibur/blob/97eed2654bd8e842b38250417c644c77d0155b7e/excalibur/tasks.py#L9

to
`from ghostscript import Ghostscript`

This worked in my environment, I do not know the implications for all environments.

Thanks for your time, and the library it has been very helpful.

Contributor guide

Open the contributing guide

Research direction

Start with excalibur/tasks.py at the Ghostscript import and reproduce `excalibur initdb` using Python 3.8 on Windows. Compare the installed Camelot package with the separately imported `ghostscript` module and verify that initdb completes without breaking the supported environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.