-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Python 3 / wxPython 4 Support #78
Comments
Patches are welcome, it's unlikely that I will find time for that. |
I may take a stab at it. I'm assuming you would want to retain Python 2 / wxPython 3.x support as well? |
I would not mind dropping Python 2 support |
Hello , |
Yes, @sergiomb2 that was my motivation in the first place. However, I'm not very motivated as I don't actually use wammu. |
ya , even https://github.com/gammu/wammu/blob/master/setup.py is not python 3 compatible ... |
Maybe just retire it from Fedora? |
The same issue is on Debian, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=938807 |
Let me know if any progress on Debian package I will follow it on Fedora . Thanks |
Unless somebody steps up to implement needed changes, the package will be removed. |
How does 33faf64 relate to this? |
There is no relationship. It is just a bump of a GitHub action... |
Hello. I am trying to make Wammu working on Python 3 during spare time at work. It's Windows 7 PC with limited (because security) internet, and I upload many changes at once later at home. I worked with Delphi for several years and Python is new for me but it is very interesting. Hopefully there are a lot of documentation and advice over the web. Next thing to fix: SMS and Messages export. These are the main things why I use Wammu. Please check my Wammu fork. Looking forward to any help. |
Hi! Any news regarding use of Wammu on Linux having Python 3.9? I went around one issue, but wammu expects wxPython being installed under 2.7. |
I have successfully tested fork https://github.com/kamikaze-kun/wammu. The branch python3 works for me with some minor corrections. --- Main.py.orig 2024-01-14 10:46:20.917228159 +0100
+++ Main.py 2024-01-14 10:47:56.017224259 +0100
@@ -975,7 +975,7 @@
def OnProgress(self, evt):
if hasattr(self, 'progress'):
- if not self.progress.Update(evt.progress):
+ if not self.progress.Update(round(evt.progress)):
try:
evt.cancel()
except:
to resolve
and I have some problems with resources/images lookup solved by --- Paths.py.orig 2024-01-14 02:58:13.430861085 +0100
+++ Paths.py 2024-01-14 01:56:29.882999398 +0100
@@ -36,6 +37,8 @@
os.path.join(os.path.dirname(__file__).replace('lib/python2.7/dist-packages/Wammu', ''), 'share', 'Wammu'),
# Local directory
os.path.join(os.path.dirname(__file__), '..'),
+ os.path.join(os.path.dirname(__file__), '../share/Wammu'),
+ #os.path.join(os.path.dirname(__file__), '/opt/gammu/lib/python3.11/dist-packages/wammu-0.44-py3.11.egg/share'),
]
def CheckImagesPath(path):
My test are on Debian 12.4 (Bookworm, actual stable). The gammu, python_gammu and wammu are build into |
Ahoj @kamikaze-kun, I was trying your fork https://github.com/kamikaze-kun/wammu, Python3 branch. Many thanks for it! OK, here some issue report with your Python3 fork, @kamikaze-kun: When I launch
The file
When I click "OK" in this dialogue window, a next one appears with the content
The file
When I click "OK" on that window, I get an empty dialogue window only with a "Cancel" button in the top left corner. When I then click again on "Wammu" → "Settings", the empty dialogue appears straight away. I can connect to the phone (at least I do not get any error). When I want to retrieve messages, a dialogue pops up with the error message
The file
(Full log file attached: When I click "OK" in this dialogue, I actually can see the two SMS messages on the device. And runnint
Regards! |
This URL does not work anymore. "Server Not Found". |
Another issue with your Python 3-port you might want to look at, @kamikaze-kun:
Regards! |
@dreirund Thank you for reports. I think this is all because of new Python version. Then I tried to rework Wammu for Python 3 it was version 3.8.10 on Windows 7. It was two years ago and it was fun but it was just an experiment. It worked quite well though. I do not have everything installed for Python development now. For my little needs of mobile phone backup I use Gammu on Linux. Also I built standalone Wammu on Linux Mint 19.3 with PyInstaller. |
Now that wxPython 4 is out (with Python 3 support) it would be great if wammu supported wxPython 4 and Python 3.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: