Error upon compiling
Closed this issue · 2 comments
its-me-ghost commented
PS C:\fakepath\invert-pdf-master> python pdfinvert/main.py
Traceback (most recent call last):
File "C:\fakepath\invert-pdf-master\pdfinvert\main.py", line 11, in <module>
import pdfinvert.wsgi
ModuleNotFoundError: No module named 'pdfinvert'
its-me-ghost commented
how do i solve and compile this? i'm using vs code 😅
keotl commented
Hi there, it seems like your PYTHONPATH environment variable does not include the root directory, so Python can't find the pdfinvert module. In your case, you could run $env:PYTHONPATH='C:\fakepath\invert-pdf-master'
in Powershell before running Python. You should also be able to set that as a run config for VS Code in launch.json file (see here).
That being said, I have not tried running the app on Windows, so you might run into issues with the external binaries used by invert-pdf, namely ImageMagick and ghostscript. It might be easier to use the docker build.