-
Notifications
You must be signed in to change notification settings - Fork 521
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
prevent installation of latest version on Python 2.7 #318
Comments
The way to fix this is to:
The result will be:
|
Looks like the reason for this is the usage of the f-string interpolation which is only available in Python 3. However, modifying lines 3789 and 3790 to replace the
|
Thanks!! I'll do that. |
Hi @erocarrera , The way to actually fix this error, is to fix the formatting issues which cause the error in python 2, as seen in PR #319. This will fix the installation issue for Python2.7. The fix methods above identified by @itamarst won't fix the cause of this issue, they will just allow the proper separation between Python 2 and Python 3. |
Hi, I am no longer supporting Python 2. I prefer to focus the code on Python 3 and slowly take advantage of its features. I have yanked the version incompatible with Python 2 from PyPi, as suggested (thanks @itamarst ), so those systems can use a version that runs on them. All future fixes an improvements will only be tested to work under Python 3. |
While I can appreciate that you no longer wish to support Python 2, and I understand it, it's a shame that you pulled the last release because all that was needed to leave that as the last Python 2 supported pefile was to fix the formatting on two lines, merging that pull request, and the 2021.5.13 release would have been the last python 2 release. As it stands now, the last compatible python 2 release you left is from 2019, which doesn't have any of the features or updates you added in the last two years. Either way, I appreciate your work on the project. Thank you. |
Thank you for understanding, I wish I had the cycles to keep it compatible a while longer but I had to drop Python 2 at some point. I hope it's not too annoying for you, maybe extra motivation to move to Python 3? ;-) |
Since version 2019.4.18 is the last version that supports python2: erocarrera/pefile#318
Windows 10 20H2 64bit, python 2.7.18.
In 2021.5.13 version, python 2.7 support is stopped.
When I tried to install it on Python 2.7 I got the error below.
I think that the previous version (2019.4.18) must be installed instead of the 2021.5.13 version.
The text was updated successfully, but these errors were encountered: