holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

Cannot install pycryptodome (needed by pdfminer.six and pdf plumber) #210

Closed ugopvn closed 2 years ago

ugopvn commented 2 years ago

Hi how can I install pycryptodome?

When I try, carnets get stuck at 'Prepa metadata (setup.py): started'

Thanks in advance for the help

holzschu commented 2 years ago

So, I've got bad news, good news and bad news.

The bad news is that you cannot install pycryptodome at the user level, because it contains components written in C. The good news is that pdfminer.six dropped the dependency on pycryptodome in July 2020, so "%pip install pdfminer.six" will work. The bad news is that pdfplumber has a requirement for pdfminer.six==20200517, that is the last version before the change away from pycryptodome.

Looking at pdfplumber github repository, they have a develop branch, where they have already made the changes required to use pdfminer.six==20211012. You have several strategies available:

ugopvn commented 2 years ago

Thank you for the advice. The new pdfplumber 0.60 was released and everything works fine.