Skip to content

Updated install instructions and procedure for migrating to Zenodo #35

@pboley

Description

@pboley

So, it's February 2021 and Elsevier recently announced they will be killing the Mendeley iOS application on March 15th. I guess I am not the only one desperately looking for a way to get out of Mendeley's grasp, despite it having worked reasonably well for so many years. The good news is that the Menotexport tool still mostly works, but it required a few tricks to get it working and get my library fully into Zenodo. I provide my experience here.

Zenodo's direct import from Mendeley works fine; it will copy all the PDFs and preserve your Collection/Folder structure, but you will be missing all your annotations. Menotexport can be used to move the annotations to the PDF files directly, but when importing the .bib or .ris files created by Menotexport to Zenodo my Collection folder was lost somehow. Also, while the annotations were included in the bibliography items, the PDFs were somehow not present.

The solution presented here preserves your Collection/Folder structure and annotates all your PDFs directly in the files.

I did this in macOS using Anaconda, but it will probably work in Linux too (with adjustments to your paths)

  1. Back up your Mendeley directory structure entirely and proceed only at your own risk...
  2. Downgrade to Mendeley v1.18, as higher versions than this began to encrypt your local database for your comfort and convenience.... I suggest you clear your "Downloads" directory in Mendeley first, since you will have to download everything again, and it's better not to have duplicate files there.
  3. Launch Mendeley and resync your library. For me this took several hours to download 1.6GB.
  4. Set up a new conda environment, since you will need Python 2.7; you can delete the environment entirely when you are done and satisfied. There will be some additional dependencies which are not listed in the documentation, and the guangzhi conda channel is gone, so install Menotexport from github.
conda create -n menotexport python=2.7
conda activate menotexport
pip install PyPDF2
pip install pdfminer.six
pip install beautifulsoup4
git clone https://github.com/Xunius/Menotexport
cd Menotexport
python setup.py install
  1. Export and annotate your Mendeley PDF files (replace the location of your sqlite file as appropriate). You don't need anything other than the "-p" option, since you won't use the .bib or .ris file for anything.
python menotexport.py -p ~/Library/Application\ Support/Mendeley\ Desktop/yourlogin\@email.com\@www.mendeley.com.sqlite export
  1. Move the exported PDF files BACK into the Mendeley Downloads directory
find export -type f -name "*.pdf" -exec mv {} ~/Library/Application\ Support/Mendeley\ Desktop/Downloaded ;/
  1. Import your files directly using the "Mendeley" option in Zenodo import.
  2. (Optional, recommended) Restore your Mendeley backup, as the PDFs there are already annotated (which is not what you want).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions