mcuee
mcuee
Side topic: avrdude-gui depends on PySide2 or PySide6. I am able to run avrdude-gui under Windows, macOS, Linux, FreeBSD and OpenBSD. NetBSD does not seem to have PySide2 or Pyside6....
> For Linux distributions, using Virtual Env may not be required (but Debian/Ubuntu may be a problem). I tend to recommend using Python Virtual Env though. I can only get...
@dl8dtl It seems to me the right tool to use is pyinstaller. https://pyinstaller.org/en/stable/operating-mode.html Just wondering if you can give it a try. My Python knowledge is very basic.
PR #2031 is an attempt to partially fix this issue. * #2031
Results from PR #2031 ``` PowerShell 7.5.1 PS C:\work\avr\avrdude_bin\github_bin\avrdude-msvc-python_x64> ls Directory: C:\work\avr\avrdude_bin\github_bin\avrdude-msvc-python_x64 Mode LastWriteTime Length Name ---- ------------- ------ ---- ----- 6/21/2025 6:29 AM 10514944 _swig_avrdude.pyd ----- 6/21/2025 6:28 AM...
@dl8dtl Somehow I could not get the MSYS2 mingw build to work. I am thinking of disable MSYS2 mingw Python binding build for avrdude 8.1 release. Any objections? MSVC64 build...
Currently there is a bug that MSYS2 mingw64 build will not use its Python installation but rather Windows Store version of Python. There is a fix from @ndim mentioned here....
The fix helps if I creat an virtual environment. You can see that now it detects the MSYS2 mingw64 version of Python. ``` MINGW64 /c/work/avr/avrdude $ . /c/work/python/py312venv_mingw64/bin/activate ((py312venv_mingw64) )...
But then there is a new issue. ``` $ cp ./build_mingw64/src/swig_avrdude.py /c/work/python/py312venv_mingw64/lib/python3.12/site-packages/ ((py312venv_mingw64) ) $ cp ./build_mingw64/src/_swig_avrdude.pyd /c/work/python/py312venv_mingw64/lib/python3.12/site-packages/ ((py312venv_mingw64) ) $ python ./src/python/adgui.py Neither PySide6 (Qt6) nor PySide2 (Qt5) found,...
One step further using the MSYS2 mingw64 Python. ``` $ pacman -S mingw-w64-x86_64-pyside6 ... $ python ./src/python/adgui.py Traceback (most recent call last): File "C:/work/avr/avrdude/src/python/adgui.py", line 281, in from PySide6.QtUiTools import...