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

Install failed #20

Open
MrUnknown789556 opened this issue Jul 23, 2024 · 2 comments
Open

Install failed #20

MrUnknown789556 opened this issue Jul 23, 2024 · 2 comments

Comments

@MrUnknown789556
Copy link

Dear Michele.

I tried to install pdf-renamer, but without success.

I have the newest Python version on Windows 11.

Install log attached.

/Frank
Install log.txt

@MicheleCotrufo
Copy link
Owner

Thanks. This is due to an this issue with the installation of pdf2doi MicheleCotrufo/pdf2doi#28.

Try the following.

  • Install pymupdf via the command pip install pymupdf
  • Try to install again pdfrenamer.

You might get a warning saying that the version of pymupdf that you have installed is not the right one. You can ignore it, it should work anyway.

@animusastralis
Copy link

animusastralis commented Aug 3, 2024

I'm also having this error, both pdf2bib and pdf2doi require pymupdf==1.21.0. Then (I guess) pip tries to build it from source but fails:

      PyMuPDF/setup.py: mupdf_local='mupdf-1.21.0-source/'
      PyMuPDF/setup.py: Building mupdf.
      PyMuPDF/setup.py: Building MuPDF by running: cd mupdf-1.21.0-source/&&"C:/Program Files (x86)/Microsoft Visual Studio/2019\Community\Common7\IDE\devenv.com" platform/win32/mupdf.sln /Build "ReleaseTesseract|x64" /Project mupdf

      Microsoft Visual Studio 2019 Version 16.11.38.
      Copyright (C) Microsoft Corp. All rights reserved.

      The operation could not be completed. The parameter is incorrect.

Edit: as a workaround I've installed an old version of Python (3.9) on a VM (having multiple versions on the same machine is a pain in my experience). Hope pdf-renamer could be updated for using it with the latest Python versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants