LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I want to use bzr-explorer in Debian 11. How to install it? (https://www.linuxquestions.org/questions/linux-software-2/i-want-to-use-bzr-explorer-in-debian-11-how-to-install-it-4175709375/)

dedec0 03-13-2022 04:03 PM

I want to use bzr-explorer in Debian 11. How to install it?
 
I want to use bzr-explorer in Debian 11. How to install it?

bzr-explorer is a GUI for dealing with bazaar repositories. I downloaded its source from https://launchpad.net/bzr-explorer/1.1/1.1.1 , and now i am trying to compile and install it.

First, i checked the REAME file, which says:

Quote:

Dependencies
------------

Required packages are:

* Python 2.4 or later
* Bazaar 2.1 or later.
* QBzr 0.18 or later.
* PyQt4/Qt4 version 4.4 or later.

If you wish to use the applets provided via bzr-gtk, it should be
installed as well.

Testing
-------

To test the plugin after installation:

bzr selftest explorer

For this testing command, i received the error:

Code:

$ bzr selftest explorer
brz: ERROR: tests not available. Install the
 python-breezy.tests package to run the breezy testsuite.

And this is where i am lost: python-breezy.tests package.

I searched for it in Debian page:

https://packages.debian.org/search?k...ll&section=all

Downloaded the strech version of it:

https://packages.debian.org/stretch-...n-breezy.tests

And then tried to install it, but look at these errors:

Code:

# dpkg -i python-breezy_3.0.0~bzr7210-3~bpo9+1_amd64.deb
(Reading database ... 359691 files and directories
 currently installed.)
Preparing to unpack
 python-breezy_3.0.0~bzr7210-3~bpo9+1_amd64.deb ...
Unpacking python-breezy (3.0.0~bzr7210-3~bpo9+1)
 over (3.0.0~bzr7210-3~bpo9+1) ...
dpkg: dependency problems prevent configuration of
 python-breezy:
 python-breezy depends on python-configobj; however:
  Package python-configobj is not installed.
 python-breezy depends on python (<< 2.8); however:
  Package python is not installed.
 python-breezy depends on python (>= 2.7~); however:
  Package python is not installed.
 python-breezy depends on python:any (<< 2.8); however:
  Package python is not installed.
 python-breezy depends on python:any (>= 2.7.5-5~); however:
  Package python is not installed.

dpkg: error processing package python-breezy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-breezy

It does not make sense to me. I have python 2.7. Look what happens and is suggested when i type "pyt<TAB><TAB>" in my command line:

Code:

$  python
python2          python2-config    python3.9-config 
python2.7        python3          python3-config   
python2.7-config  python3.9        python3-wsdump

Using aptitude, I looked all the packages containing "python" in their name, but found nothing mising. I even had libpython2-dev installed.

TB0ne 03-13-2022 04:22 PM

Quote:

Originally Posted by dedec0 (Post 6337971)
I want to use bzr-explorer in Debian 10. How to install it? bzr-explorer is a GUI for dealing with bazaar repositories. I downloaded its source from https://launchpad.net/bzr-explorer/1.1/1.1.1 , and now i am trying to compile and install it. First, i checked the REAME file, which says:
Code:

Dependencies
------------

Required packages are:

* Python 2.4 or later
* Bazaar 2.1 or later.
* QBzr 0.18 or later.
* PyQt4/Qt4 version 4.4 or later.

If you wish to use the applets provided via bzr-gtk, it should be
installed as well.

Testing
-------
To test the plugin after installation:

bzr selftest explorer

For this testing command, i received the error:
Code:

$ bzr selftest explorer
brz: ERROR: tests not available. Install the
 python-breezy.tests package to run the breezy testsuite.

And this is where i am lost: python-breezy.tests package. I searched for it in Debian page:
https://packages.debian.org/search?k...ll&section=all

Downloaded the strech version of it:
https://packages.debian.org/stretch-...n-breezy.tests

And then tried to install it, but look at these errors:
Code:

# dpkg -i python-breezy_3.0.0~bzr7210-3~bpo9+1_amd64.deb
(Reading database ... 359691 files and directories
 currently installed.)
Preparing to unpack
 python-breezy_3.0.0~bzr7210-3~bpo9+1_amd64.deb ...
Unpacking python-breezy (3.0.0~bzr7210-3~bpo9+1)
 over (3.0.0~bzr7210-3~bpo9+1) ...
dpkg: dependency problems prevent configuration of
 python-breezy:
 python-breezy depends on python-configobj; however:
  Package python-configobj is not installed.
 python-breezy depends on python (<< 2.8); however:
  Package python is not installed.
 python-breezy depends on python (>= 2.7~); however:
  Package python is not installed.
 python-breezy depends on python:any (<< 2.8); however:
  Package python is not installed.
 python-breezy depends on python:any (>= 2.7.5-5~); however:
  Package python is not installed.

dpkg: error processing package python-breezy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-breezy

It does not make sense to me. I have python 2.7. Look what happens and is suggested when i type "pyt<TAB><TAB>" in my command line:
Code:

$  python
python2          python2-config    python3.9-config 
python2.7        python3          python3-config   
python2.7-config  python3.9        python3-wsdump

Using aptitude, I looked all the packages containing "python" in their name, but found nothing mising. I even had libpython2-dev installed.

It says version 2.7.5-5 of Python...what's yours? And what's first in your path, since you have 2.7 and 3.9 installed?? And why don't you just install the package for Debian??
https://debian.pkgs.org/10/debian-ma...2_all.deb.html

dedec0 03-13-2022 04:37 PM

Quote:

Originally Posted by TB0ne (Post 6337975)
It says version 2.7.5-5 of Python...what's yours? And what's first in your path, since you have 2.7 and 3.9 installed??

Code:

$  python2 --version
Python 2.7.18

I do not know how to answer the second question.

Quote:

Originally Posted by TB0ne (Post 6337975)
And why don't you just install the package for Debian??
https://debian.pkgs.org/10/debian-ma...2_all.deb.html

I cannot find any "bzr-explorer" with aptitude or synaptic. Why? My sources.list is:

Code:

deb http://deb.debian.org/debian/ bullseye
 non-free contrib main
deb-src http://deb.debian.org/debian/ bullseye
 non-free contrib main

deb https://deb.debian.org/debian-security/
 bullseye-security non-free contrib main
deb-src https://deb.debian.org/debian-security/
 bullseye-security non-free contrib main

deb http://deb.debian.org/debian/ bullseye-updates
 non-free contrib main
deb-src http://deb.debian.org/debian/ bullseye-updates
 non-free contrib main


TB0ne 03-13-2022 04:51 PM

Quote:

Originally Posted by dedec0 (Post 6337979)
Code:

$  python2 --version
Python 2.7.18

I do not know how to answer the second question.

Probably should find out...why do you have two versions of Python installed??
Quote:

I cannot find any "bzr-explorer" with aptitude or synaptic. Why? My sources.list is:
Code:

deb http://deb.debian.org/debian/ bullseye
 non-free contrib main
deb-src http://deb.debian.org/debian/ bullseye
 non-free contrib main

deb https://deb.debian.org/debian-security/
 bullseye-security non-free contrib main
deb-src https://deb.debian.org/debian-security/
 bullseye-security non-free contrib main

deb http://deb.debian.org/debian/ bullseye-updates
 non-free contrib main
deb-src http://deb.debian.org/debian/ bullseye-updates
 non-free contrib main


You were given a link directly to the Debian package for the Debian 10 you said you were using....so why do you have Debian 11 repositories?

dedec0 03-13-2022 04:57 PM

Quote:

Originally Posted by TB0ne (Post 6337983)
Probably should find out...why do you have two versions of Python installed??

You were given a link directly to the Debian package for the Debian 10 you said you were using....so why do you have Debian 11 repositories?

I do not know.

I said i am using Debian 10 because this is what is currently written in my motd file:

Code:

$  cat /etc/motd
motd                  motd.debian9.stretch  motd.original
$  cat /etc/motd
Debian 10 = Bullseye

I find it hard to always remember the names for distributions, and which version they correspond. So, i write them in my motd file, and check it, when needed. And that is how i left it, the last time i upgraded distribution in this computer.

TB0ne 03-13-2022 05:03 PM

Quote:

Originally Posted by dedec0 (Post 6337985)
I do not know.
I said i am using Debian 10 because this is what is currently written in my motd file:

Code:

$  cat /etc/motd
motd                  motd.debian9.stretch  motd.original
$  cat /etc/motd
Debian 10 = Bullseye

I find it hard to always remember the names for distributions, and which version they correspond. So, i write them in my motd file, and check it, when needed. And that is how i left it, the last time i upgraded distribution in this computer.

So you say you're using Debian 10, have Debian 11 repositories enabled, and you (apparently) have two different files of the *EXACT SAME NAME*, saying both Debian 9 and Debian 10.

Sorry...not much I can guess at given all this. You started by saying Debian 10, and I gave you a package/install instructions for that. Past that, you're going to have to figure out why you have two versions of Python, which is first in your path, and get the dependencies installed before you can compile from source.

boughtonp 03-13-2022 05:32 PM

Bullseye is Debian 11.
Buster is Debian 10.

https://packages.debian.org/search?keywords=bzr-explorer

bzr-explorer 1.3.0-2 is available for Debian 10.

It is not available in Debian 11.

Trying to install v1.1.1 in either Debian 10 or 11 makes no sense.

What is the output of "apt search bzr gui" ?


dedec0 03-13-2022 05:33 PM

Now, I checked with lsb_release:

Code:

#  lsb_release -a
No LSB modules are available.
Distributor ID:        Debian
Description:        Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:        bullseye

I made an error with my own version keeping. The other motd* file does not matter. They are there just as a history of what i had there in other moments. I changed the current /etc/motd to be:

Code:

Debian 11 = Bullseye
I have Debian 11 repositories enabled because i upgraded to it, some time ago (i assume). It was with the help of this forum, in an older thread:

https://www.linuxquestions.org/quest...on-4175700202/

'python2' and 'python3' are on the same folder:

Code:

$ whereis python2
python2: /usr/bin/python2.7 /usr/bin/python2.7-config
 /usr/bin/python2 /usr/lib/python2.7 /etc/python2.7
 /usr/local/lib/python2.7 /usr/include/python2.7
 /usr/share/man/man1/python2.1.gz
$ whereis python3
python3: /usr/bin/python3.9 /usr/bin/python3
 /usr/bin/python3.9-config /usr/lib/python3.9
 /usr/lib/python3 /etc/python3.5 /etc/python3.9
 /etc/python3 /etc/python3.7 /usr/local/lib/python3.5
 /usr/local/lib/python3.9 /usr/include/python3.9
 /usr/include/python3.9m /usr/share/python3
 /usr/share/man/man1/python3.1.gz

Since they are in the same folder, python2 should be found first (i guess). But it is very strange what i just found: the package named just 'python' is not installed. And when i ask it to be installed, this error is given to me in synaptic:

"python:

The package python has no available version, but exists in the database.
This typically means the package was mentioned in some dependency but was never put in the repository, was obsoleted or is not available with the current data of file sources.list."

Why i have both versions... i think that this is normal. It happened without me doing anything for it, i think. The package installing programs do not complain about any problem within all the packages installed, so, i think there is no conflict of files between them.

dedec0 03-13-2022 05:40 PM

Quote:

Originally Posted by boughtonp (Post 6337998)
Bullseye is Debian 11.
Buster is Debian 10.

https://packages.debian.org/search?keywords=bzr-explorer

bzr-explorer 1.3.0-2 is available for Debian 10.

It is not available in Debian 11.

Trying to install v1.1.1 in either Debian 10 or 11 makes no sense.

What is the output of "apt search bzr gui" ?

In the opening post, i had a wrong motd file. My Debian version is 11, bullseye.

Code:

#  apt search bzr gui
Sorting... Done
Full Text Search... Done
#


boughtonp 03-13-2022 05:54 PM


 
Apparently Bazaar was replaced by Breezy, but nobody has bothered to update the GUIs.

I've no idea if that's a big task or a small one.

Your best best is probably to ask on the Bazaar mailing list.


dedec0 03-13-2022 05:57 PM

Quote:

Originally Posted by boughtonp (Post 6338005)
Apparently Bazaar was replaced by Breezy, but nobody has bothered to update the GUIs.

I've no idea if that's a big task or a small one.

Your best best is probably to ask on the Bazaar mailing list.

Thank you for the help and information. I will write there. Have a nice weekend end.

dedec0 03-13-2022 06:28 PM

About the help in Bazaar mailing list
 
If i receive anything useful there, i make a post here about it.

(Sadly, thread starters cannot receive reputation in those threads, right?)

dedec0 03-13-2022 08:19 PM

The answer i received in Bazaar mailing list
 
The answer i received in Bazaar mailing list:

Quote:


On Sun, Mar 13, 2022 at 08:20:31PM -0300, Dedeco Balaco wrote:

> I want to use bzr-explorer in Debian 11. How to install it?

The short answer is unfortunately that that isn't possible.

> I opened a tread in linuxquestion.org about it, but in the end, users
> there told me that:
>
> 1. Apparently Bazaar was replaced by Breezy
> <https://www.breezy-vcs.org/>, but nobody has bothered to update the GUIs.

QBzr has been ported to Breezy, and can found at
https://launchpad.net/qbrz and in Debian.

The other GUIs have indeed not been ported.

> 2. bzr-explorer 1.3.0-2 is available for Debian 10. It is not available
> in Debian 11.
>
> I have bazaar installed here (the command is 'bzr', actually). I would
> like to have bzr-explorer. I would like to understand the existence of
> breezy X bazaar.

/usr/share/doc/bzr/NEWS.Debian.gz on your system should have details, but I'll also
include it here:

bzr (2.7.0+bzr6622+brz) unstable; urgency=medium

Bazaar has been replaced in Debian with Breezy. Breezy is a friendly fork
of Bazaar that is actively maintained and has been ported from Python 2 to
Python 3.

The command-line interface for Breezy is backwards-compatible with Bazaars, and
it provides the ``bzr'' command for convenience. Breezy will also read
its configuration from ~/.bazaar, if present.

Third-party plugins that worked with Bazaar will almost certainly not work
with Breezy but can be ported with some effort.

-- Jelmer Vernooij <jelmer@debian.org> Sun, 24 Feb 2019 02:27:11 +0000

> It does not take much time to read the thread i mentioned. I will not
> copy more details from there. But reading it all can be useful, anyway:
>
> https://www.linuxquestions.org/quest...71#post6337971
>
> Can you help me?

Unfortunately bzr-explorer hasn't been ported to Breezy. Until
somebody does so, you won't be able to use it with Breezy.

Bazaar is no longer packaged for modern versions of Debian (the "bzr"
package is merely a shim that installs Breezy), since it only supports
Python 2 which is no longer suppored on Debian.

The Breezy developers have no plans to port bzr-explorer to Breezy.
Though if somebody were interested in porting it, we could probably
provide guidance on the API, etc.

The only ways to still run bzr-explorer, would be to either stick
with an older version of Debian or to install older packages
(from an older Debian) of Python, Bazaar, qt, pyqt, qbzr and bzr-explorer
on Debian 11 - which may or may not work.

Cheers,

Jelmer

--
Jelmer Vernooij <jelmer@jelmer.uk>
PGP Key: https://www.jelmer.uk/D729A457.asc
So, all this said, I will try everything with breezy, now.

jmgibson1981 03-13-2022 10:34 PM

I know snap, flatpak, and appimage packages aren't the most popular idea for some folks. Might be the ideal solution here.

I hacked out this Docker container if your interested. It will work for now I think while you sort something out. Not ideal, but it seems to work. The program loads anyway.

https://gitlab.com/jmgibson1981/home...er/bzrexplorer

dedec0 03-14-2022 06:38 AM

Quote:

Originally Posted by jmgibson1981 (Post 6338048)
I know snap, flatpak, and appimage packages aren't the most popular idea for some folks. Might be the ideal solution here.

I hacked out this Docker container if your interested. It will work for now I think while you sort something out. Not ideal, but it seems to work. The program loads anyway.

https://gitlab.com/jmgibson1981/home...er/bzrexplorer

Thank you very much, jmgibson! I will try it now. (:


All times are GMT -5. The time now is 09:48 AM.