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

Feature/python 2to3 #477

Open
wants to merge 3 commits into
base: ghini-3.1-dev
Choose a base branch
from
Open

Conversation

cwyse
Copy link

@cwyse cwyse commented Oct 9, 2022

Convert to Python3.

Run Python 2to3 on source code.

Chris Wyse added 2 commits October 9, 2022 00:26
Update the application to use Gtk 3.24.
- Updated glade files using Gtk 3.24
- Replaced GtkTable with GtkGrid in glade
- Updated GtkTable.attach with GtkGrid.attach
- Updated property references from GtkTable as needed
Run Python 2to3 on source code.
@cwyse
Copy link
Author

cwyse commented Oct 9, 2022

This commit should be on a new version branch, probably ghini-4.0-dev.

@mfrasca
Copy link
Member

mfrasca commented Oct 12, 2022

hi. thanks. the branch 3.1-dev is the right one for Python3. I am a bit surprised by this commit, as I've not looked into ghini.desktop for quite a while now. did you run all unit tests? does the program manage to execute a couple of queries in a row without freezing for like 15s?

@cwyse
Copy link
Author

cwyse commented Dec 3, 2022

Hi Mario - you should be surprised.. It's nowhere near ready. I haven't issued merge requests for a public project, and I shouldn't have done it. I can't remember now, but I think I forked the project, and when I pushed it created a merge request??

Anyway, what I would like to do is have an updated desktop version that has support for more recent software packages (sqlalchemy, gtk, python & packages). Currently, I'm floundering around with a lot of things that I've touched on in the past, but haven't done a lot with (database programming - no experience w/ sqlalchemy, no experience w/ glade or much GUI programming, some python but not much).

I have the build configured in a pyenv environment using Eclipse as the debugger. I also have it running in a docker container, but the access is via VNC, and it's not perfect, and it's not configured for development. I need an isolated development environment - if you have suggestions for that, I'd love to hear them.

My motivation is to add some enhancements, and be able to easily install it. It's more work than I bargained for. I've struggled quite a bit with the SQLAlchemy updates, in particular defining relations using the relationship method instead of relation. I created an ERD in Eclipse, and have been double checking the relationships, but I'm not very familiar, so it's been slow.

It seems like there must be a way to encapsulate all the required packages for Python - is that the egg? Not sure, learning as I go. Any pointers would be appreciated, but you can safely ignore the merge requests for now.

Chris

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