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

Use Python 3 #5

Open
TheTechRobo opened this issue Jan 13, 2021 · 5 comments
Open

Use Python 3 #5

TheTechRobo opened this issue Jan 13, 2021 · 5 comments

Comments

@TheTechRobo
Copy link
Contributor

Python 2 is unmaintained and outdated. I suggest migrating to python 3.

It would be a rather large rewrite, but I think that in the long run it would be good.

I'll potentially work on that depending on my workload.

@TheTechRobo
Copy link
Contributor Author

Not sure whether or not to keep the existing GTK 2.0 or to switch to another like BeeWare, Tkinter, Pyside2 (would not be able to help with that), or something else...for now I'll keep GTK 2.0 since it's available on pypi still. Though it might not work for python 3.

@TheTechRobo
Copy link
Contributor Author

TheTechRobo commented Jan 13, 2021

I don't think we can keep the current GUI toolkit.

After 15 minutes of dependency hell, copying packages from python 2 because they're no longer seemingly available, and modifying those packages for python 3, nothing.

image

Ill try for a bit longer.

EDIT: Nope, I need glib for python 3 which I can't find. Damn. I was this close. I'll see if I can find it

EDIT 2: I foudn it which sparked another issue. Yeah, I'll finally give up. It wouldn't be feasible anyway. I've copied like five packages from python 2, which means that I doubt they'd work properly anyway, and it'd take a little while to install.

Here was the showstopper:

image

@TheTechRobo
Copy link
Contributor Author

Oh, also, my commit messages were a bit misleading. I forgot to fix the shebang, which meant that while I thought that it was running (and functioning!) under python 3, I was accidentally running it under python 2. It still does NOT work.

@Thanatermesis
Copy link
Member

actually Bullseye needs this package for share directories in Thunar (right click in folder: share it), so it launches smb-usershare from this tool

so we need one of these options:

  • port it to python3 / make it working on bullseye
  • search an alternative tool that we can use to share directories (that we can run on CLI like this one, so called from thunar and directly working)

@Thanatermesis
Copy link
Member

another option too can be to only make working "smb-usershare" which is the one we need 🤔

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