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

cannot convert pdf to md #95

Open
0xSaurabhx opened this issue Dec 17, 2024 · 5 comments
Open

cannot convert pdf to md #95

0xSaurabhx opened this issue Dec 17, 2024 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@0xSaurabhx
Copy link

command:

markitdown demo.pdf

Traceback (most recent call last):
File "/home/user/.local/bin/markitdown", line 5, in
from markitdown.main import main
File "/home/user/.local/lib/python3.11/site-packages/markitdown/init.py", line 5, in
from ._markitdown import MarkItDown, FileConversionException, UnsupportedFormatException
File "/home/user/.local/lib/python3.11/site-packages/markitdown/_markitdown.py", line 23, in
import pptx
File "/home/user/.local/lib/python3.11/site-packages/pptx/init.py", line 9, in
from pptx.api import Presentation
File "/home/user/.local/lib/python3.11/site-packages/pptx/api.py", line 14, in
from pptx.package import Package
File "/home/user/.local/lib/python3.11/site-packages/pptx/package.py", line 11, in
from pptx.parts.image import Image, ImagePart
File "/home/user/.local/lib/python3.11/site-packages/pptx/parts/image.py", line 10, in
from PIL import Image as PIL_Image
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 89, in
from . import _imaging as core
ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/init.py)

@SigireddyBalasai
Copy link

can you please send the file here so that people can check @0xSaurabhx

@abdxzi
Copy link

abdxzi commented Dec 17, 2024

May be Pillow package installation is corrupted. Try pip install --no-cache-dir Pillow

@gagb gagb added question Further information is requested bug Something isn't working labels Dec 17, 2024
@afourney
Copy link
Member

Hmmm. Seems like an issue with Pillow.

Arguably @gagb we should start pinning some of the dependency versions.

@Shivangbijalwan
Copy link

your pakage is not installed or the pakkage is currupted .........

@SigireddyBalasai
Copy link

just use pip install -U markitdown

that way you will get latest version @Shivangbijalwan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants