Closed arrowgent closed 2 years ago
Hi,
I was certain that the Python version on the updated Ubuntu Bionic was 3.6.9.
However from the tests I had performed, the Python version to make videomass work must be at least v.3.6.9 (better if 3.7.0), since on version 3.6.9 not everything works completely.
Also, the following debug message is not responsible for this error, as it is always shown to me .
Debug: Adding duplicate image handler for 'Windows bitmap file'
yes i was checking
python3 --version
Python 3.6.9
not sure why my apt list shows 3.6.7
i also tried
sudo update-alternatives --config python3
changing to 3.7, 3.8, and 3.9
those also did not work im using the appimage, let me know if there is something else i can test for you?
apt list python3-distutils
python3-distutils/bionic-updates,bionic-updates,now 3.6.9-1~18.04 all [installed,automatic]
i have to use 3.6 for the overall OS, several software i use requires it and fails with 3.7,3.8,3.9
The AttributeError: module 'wx' line has no attribute 'NewIdRef'
explains everything: the wxPython v.4.0.3 is no longer supported by Videomass.
I will have to specify in the minimum requirements that the version of Python3 must be at least 3.7.0 and that the version of the wx must be at least 4.0.7.
I'm sorry I made these errors of assessment, I will make the necessary corrections on the documentation.
The last thing you could try is to remove python3-wxgtk4.0
and try to install the latest release of wxPython using pip as user not with sudo
, like this:
$ python3 -m pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
then start Videomass.
Thanks!
After some tests:
replaced the reference to the identifier wx.NewIdRef()
(which causes the error you reported) with wx.ID_ANY
and it seems to also work on Bionic with Python 3.6.9 and wxPython 4.0.3. No apparent conflicts on other versions of wxPython.
its only a year left of Bionic support (not including extended 10 year support) so most CI will remove building in this enviornment anyways. hell, even ubuntu's repos and mirrors will probally remove it.
further, python 3.6 is deprecated. you should be moving forward with python 3.7
so i did what you modified:
replace NewIdRef()
with ID_ANY
closing i will say what interested me in this software was a super easy GUI for cropping the area of a video compared to cli ffmpeg to input - output with WxH crops.
its only a year left of Bionic support (not including extended 10 year support) so most CI will remove building in this enviornment anyways. hell, even ubuntu's repos and mirrors will probally remove it.
Yes I know, also the Videomass.AppImage building is based on Bionic until the end of its support.
further, python 3.6 is deprecated. you should be moving forward with python 3.7
Yes I will
install process:
sudo apt install python3-videomass
run videomass, launches and queries ffmpeg & youtube-dl/yt-dlp then requests restart after restart:
videomass
reminder videomass.conf is set to
Disable all
for youtube-dl & yt-dlpsystem info:
ubuntu 18.04 heavily modified package base... unfortunately
python3-videomass_3.5.3-1_all
apt list python3
python3/bionic-updates,now 3.6.7-1~18.04 amd64 [installed]
apt list python3-wxgtk4.0
python3-wxgtk4.0/bionic,now 4.0.1+dfsg-2 amd64 [installed,automatic]
apt list python3-pubsub
python3-pubsub/now 4.0.3-4 all [installed,local]
^ installed from focal.apt list python3-requests
python3-requests/bionic,bionic 2.25.1+dfsg-2~18.04.sav0 all [upgradable from: 2.22.0-2~18.04.sav0]
most likely python3.6.7 and wxgtk4.0 are not supported with your current build?