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

WIP: Adding Python 3 support #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP: Adding Python 3 support #31

wants to merge 1 commit into from

Conversation

shazow
Copy link

@shazow shazow commented Apr 18, 2018

Hi there, I took a quick attempt at making batterym work on Python 3.

It's not quite done but hopefully this progress is helpful to you. I need to move on to other things for now.

Some things that might still need tweaking:

  • AppIndicator doesn't support Python 3, need a backport or something. I have something half-written but never got it working.
  • Tests don't run in the current setup.
  • I believe setup.py is incorrect, might need to be redone from scratch so that batterym behaves like a proper Python package.

@arch-user-france1
Copy link

arch-user-france1 commented Mar 12, 2022

It is very easy to fix. You have to execute following commands:

2to3 -w *
2to3 -w */* 
2to3 -w */*/*
2to3 -w */*/*/*

Then is should work. It's important to replace python2 with python3 in .sh files.

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

Successfully merging this pull request may close these issues.

2 participants