arXiv / arxiv-submission-ui

User interface of NG submit system.
MIT License
2 stars 6 forks source link

Bug/ARXIVNG-3061 #186

Closed bmaltzan closed 4 years ago

bmaltzan commented 4 years ago

This adds pypdf2 to the pipfile. I came across it because submission-ui was the first repo I tried to build with a new pip environment. I locked submission-core at rc12 to avoid David's current work on the 2885 branch.

DavidLFielding commented 4 years ago

I only added PyPDF2 package to development versions of arxiv-submission-core that I pushed to PyPi (from aRXIVNG-2885 core branch) and to arxiv-submission-ui (also on ARXIVNG-2885) branch.

I believe if you revert to develop branches and non-PyPDF2 core package you should not need to add this to your Pipfile.

It is possible pipenv is automatically upgrading to the development release candidates I'm working on. This problem should disappear once I merge into develop and Pipfile and Pipfile.lock are updated.

If I'm causing undesired problems due to the way I'm naming my development release candidates I will need to do something different in the future so other developers are not downloading these before they are ready.

bmaltzan commented 4 years ago

Hi @DavidLFielding ,

It sounds like this branch is not needed anymore? Now, I switched to develop, uninstalled PyPDF2, and submission-ui runs fine. Maybe you change your workflow for submission-core, since pipenv is now only finding rc12 again?

Previously, pipenv was pulling rc15 and submission-ui was exiting like below: arxiv-submission-ui | File "/root/.local/share/virtualenvs/arxiv-AI0WzCV4/lib/python3.6/site-packages/arxiv/submission/process/process_source.py", line 51, in <module> arxiv-submission-ui | from .checks.tex_produced import check_tex_produced_pdf_from_stream arxiv-submission-ui | File "/root/.local/share/virtualenvs/arxiv-AI0WzCV4/lib/python3.6/site-packages/arxiv/submission/process/checks/tex_produced/__init__.py", line 27, in <module> arxiv-submission-ui | from PyPDF2 import PdfFileReader, utils arxiv-submission-ui | ModuleNotFoundError: No module named 'PyPDF2' arxiv-submission-ui exited with code 1