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

note for python 2.7 requirement, move to 3 #8

Open
skorasaurus opened this issue Sep 15, 2017 · 4 comments
Open

note for python 2.7 requirement, move to 3 #8

skorasaurus opened this issue Sep 15, 2017 · 4 comments

Comments

@skorasaurus
Copy link
Member

skorasaurus commented Sep 15, 2017

hey @eamonjohnson
A new brigade member and I were trying to fork this and ran into an error while installing the pip packages on python 3.5 virtualenv.

The installation of the packages worked fine when I made a new virtualenv in 2.7.

I can make a note of that in the readme, and move to 3.

@eamonjohnson
Copy link
Contributor

Confirmed, pdfminer package is 2.7 only. Alternatives for 3.x: pdfminer.six, pdfminer3k.

@skorasaurus
Copy link
Member Author

skorasaurus commented Jun 30, 2019

Guide for moving - https://docs.python.org/3/howto/pyporting.html

@skorasaurus skorasaurus pinned this issue Sep 16, 2019
@skorasaurus skorasaurus changed the title note for python 2.7 requirement, move to 3? note for python 2.7 requirement, move to 3 Sep 16, 2019
@skorasaurus
Copy link
Member Author

skorasaurus commented Sep 16, 2019

took a quick stab on my lunch hour for converting this and
realize that we'd probably run into issues..

ran `futurize --stage1 -w drocer-webapp/*.py
and futurize --stage2 -w /.py

replaced pdfminer with pdfminer.six (BUT you don't need to change name of package); https://github.com/skorasaurus/drocer-webapp/tree/python3

http://python-future.org/what_else.html?highlight=byte

but then I ran ; yes, 3 handles bytes differently than 2.

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

2 participants