Remove Python 2 Dependency
See original GitHub issueWhen attempting to install Lyrebird on Ubuntu 20.04, the package requires now-deprecated Python 2.7 packages. I think this is because of python-gobject
. Is there any way to use Lyrebird without installing these packages?
user@comp:~$ sudo apt install ./Downloads/lyrebird_1.1.0-2.deb
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lyrebird' instead of './Downloads/lyrebird_1.1.0-2.deb'
The following additional packages will be installed:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libsox-fmt-alsa libsox-fmt-base libsox-fmt-pulse libsox3
python-gi python-gobject python-gobject-2 python2 python2-minimal python2.7 python2.7-minimal python3-toml sox
Suggested packages:
libsox-fmt-all python-gi-cairo python-gobject-2-dbg python2-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libsox-fmt-alsa libsox-fmt-base libsox-fmt-pulse libsox3
lyrebird python-gi python-gobject python-gobject-2 python2 python2-minimal python2.7 python2.7-minimal python3-toml
sox
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,604 kB/4,641 kB of archives.
After this operation, 19.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
user@comp:~$ apt show ./Downloads/lyrebird_1.1.0-2.deb
Package: lyrebird
Version: 1.1.0-2
Priority: optional
Section: base
Maintainer: Harry Stanton <h@harry.city>
Installed-Size: unknown
Depends: python3 (>= 3.7.0), sox, python3-toml, python-gobject, pulseaudio, libsox-fmt-pulse
Download-Size: 37.0 kB
APT-Sources: /home/herzog/Downloads/lyrebird_1.1.0-2.deb
Description: Simple and powerful voice changer for Linux, written in GTK 3
user@comp:~$ apt show python-gobject
Package: python-gobject
Version: 3.34.0+2.28.6-14ubuntu1
Priority: optional
Section: universe/python
Source: pygobject-2 (2.28.6-14ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Josselin Mouette <joss@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 123 kB
Depends: python-gi (>= 3.34.0), python-gobject-2 (>= 2.28.6-14ubuntu1)
Download-Size: 2,572 B
APT-Sources: http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: Python 2.x bindings for GObject - transitional package
This package will bring the two versions of GObject Python modules: the
deprecated gobject module, and the new gobject-introspection system. It
is here for upgrade purposes only. You can remove it safely when
nothing else depends on it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to uninstall Python 2.7 on a Mac OS X 10.6.4?
WARNING: This command makes no attempt to perform reference counting or dependency analy- sis. It can easily remove files required by your system....
Read more >How can I remove python 2.7 after installing python 3.3?
It looks really scary. So, is there a way to remove python 2.7 without removing the system dependent components, or can I direct...
Read more >How to Uninstall Python Packages - ActiveState
Open a command window by entering 'cmd' in the Search Box of the Task bar · Press Ctrl+Shift+Enter to gain Administration (Admin) privileges...
Read more >How to Uninstall Python
Step #1: Navigate to the Control Panel · Step #2: Navigate to the Uninstall Menu · Step #3: Uninstall Python · Step #4:...
Read more >Changes/F31 Mass Python 2 Package Removal - Fedora
Python 2 subpackages can be abandoned easily, by a process similar to orphaning; Python 2 modules with no additional functionality will be ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure enough! Works brilliantly. Thanks!
This is now fixed in
lyrebird_1.1.0-3.deb
available under releases.