Failed installation Ubuntu (24.04)
Failed installation Bazarr on Ubuntu 24.04 LXC/VM.
Followed instructions on 'https://wiki.bazarr.media/Getting-Started/Installation/Linux/linux/#ubuntu-debian-install-requirements-with'. Problem : 'python3-distutils' deprecated. Replaced by 'setuptools'. https://docs.python.org/3.10/library/distutils.html
Software : Proxmox 8.2.2, LXC/VM Ubuntu 24.04.
Provide full installation log. Only the final error message doesn't help.
Hey Morpheus65535,
Try install the software via the provided instructions and you immediatelly see what I mean. The instructions for Ubuntu simply don't work because of the deprecated python3-distutils. I hope you can update the instructions soon so we can get it working again on Ubuntu :).
Have you tried installing setuptools which is supposed to include distutils?
apt-get install python3-setuptools
Hey hello,
I'm trying to get this work. Via setupstools it won't work because in utils.py script it depends on importing a lost functionality the looseversion. I already solved that problem.
I guess I have it working already but I use now a python venv within LXC what simply don't work. I will have to verify if I can get it working by excluding venv.
I have in the coming days time to dug in and let you know the solution.
From: morpheus65535 @.> Sent: Tuesday, May 28, 2024 4:41:57 AM To: morpheus65535/bazarr @.> Cc: Danny Janmaat @.>; Author @.> Subject: Re: [morpheus65535/bazarr] Failed installation Ubuntu (24.04) (Issue #2503)
Have you tried installing setuptools which is supposed to include distutils?
apt-get install python3-setuptools
— Reply to this email directly, view it on GitHubhttps://github.com/morpheus65535/bazarr/issues/2503#issuecomment-2134256356, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BF3VXBC4MEQ3VRE6LOPPNULZEPVHLAVCNFSM6AAAAABIGLJ42CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGI2TMMZVGY. You are receiving this because you authored the thread.Message ID: @.***>
Let me know! I don't have a environment to test it so your input is welcome.
I ran into the same issue trying to test the current dev environment under Ubuntu 24.04. The setuptools package provided through apt is only on version 68.1.2, a later version is needed to run properly/respect distutils import. I was able to resolve the issue by forcing my venv to update to the latest setuptools (70.1.0).
As far as I can tell, until apt gets the update, Ubuntu 24.04 hosts will either have to host their install through a venv or use pip's --break-system-packages flag to update the system env's version, with the risk of breaking system packages.
Thought I'd chime in on my Ubuntu 24.04 install. Identical issue to DannyJanmaat. (my first github bug report, cheers)
Is @carrow8993 fix your issue @DannyJanmaat ?
Still have an error when trying to deploy on Ubuntu 24.04 LTS, specifically with some part of Python3. Also tried the workaround outlined in https://github.com/morpheus65535/bazarr/issues/2201#issuecomment-1760699081 but could not get it to work with Ubuntu 24.04 LTS .
Thought I'd chime in on my Ubuntu 24.04 install. Identical issue to DannyJanmaat. (my first github bug report, cheers)
same here....
python3-setuptools is already the newest version (68.1.2-2ubuntu1)
Following the instructions on https://wiki.bazarr.media/Getting-Started/Installation/Linux/linux/
`/opt/bazarr$ python3 bazarr.py Python version greater than 3.11.x is unsupported. Current version is 3.12.3. Keep in mind that even if it works, you're on your own. Bazarr starting child process with PID 628794... /opt/bazarr/bazarr/../custom_libs/subzero/language.py:165: SyntaxWarning: invalid escape sequence '.' IETF_MATCH = ".+.([^-.]+)(?:-[A-Za-z]+)?$" /opt/bazarr/bazarr/../custom_libs/subzero/language.py:166: SyntaxWarning: invalid escape sequence '.' ENDSWITH_LANGUAGECODE_RE = re.compile(".([^-.]{2,3})(?:-[A-Za-z]{2,})?$") /opt/bazarr/bazarr/../custom_libs/subzero/language.py:170: SyntaxWarning: invalid escape sequence '.' language_match = re.match(".+.([^.]+)$" if not ietf 2024-08-18 20:34:04,895 - root (7a5298895080) : ERROR (check_update:174) - BAZARR unable to unzip release Traceback (most recent call last): File "/opt/bazarr/bazarr/../libs/sqlalchemy/engine/base.py", line 1960, in _exec_single_context self.dialect.do_execute( File "/opt/bazarr/bazarr/../libs/sqlalchemy/engine/default.py", line 924, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: attempt to write a readonly database
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/bazarr/bazarr/main.py", line 51, in
] (Background on this error at: https://sqlalche.me/e/20/e3q8) `
I didn't had time to solve this, I hope the creator of this tool get this working again. You can temp get this working by using a earlier python version in a venv environment.
I didn't had time to solve this, I hope the creator of this tool get this working again. You can temp get this working by using a earlier python version in a venv environment.
thanks. Unfortunately I am not that familiar with Linux. I tried to follow the instructions given in this issue and related ones, but without success.... I think to remember I had read in a related issue that almost 50% seem so run fine in Python 3.12, just don't see how.
DistUtils is deprecated; that's why you need to use the older version for direct result.
Else you have to install a 3th party Setuptools for it to work. I had it working, except I ran it from a LXC (Proxmox) and it don't have direct full support for virtual environments.
I have a vacation coming, maybe I will have time for this
Ok so I've deployed an Ubuntu 24.04 virtual machine, followed the wiki with some adaptations:
- Requirements installation:
apt-get install 7zip python3-dev python3-pip **python3-setuptools** unrar unzip - Before step 6, I had to disable EXTERNALLY-MANAGED flag introduced in newer distros:
mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.bkp
Once you start Bazarr 1.4.3, you can see some SyntaxWarning caused by outdated REGEX string that are fixed in upcoming 1.4.4.
Globally, it's working perfectly fine if you install python3-setuptools. Regarding EXTERNALLY-MANAGED flag, you can also use venv to prevent having to disable this globally.
I don't see anything to fix in Bazarr but I'll add mentions to the wiki about those 2 adaptations.
Thanks for reporting.
Ok so I've deployed an Ubuntu 24.04 virtual machine, followed the wiki with some adaptations:
works! Thanks a million!