You are not logged in.

#1 2017-05-26 05:09:52

dr1nkus
Member
Registered: 2017-05-09
Posts: 26

[SOLVED] gDebi dependencies best practices? Cannot install Trelby

Hello again, I'm trying to install screenplay software Trelby (trelby_2.2_all.deb from their official webpage), and I came across the following error when unpacking with gDebi:

Error: Cannot satisfy dependency python-wxgtk2.8

The version I have installed (repos) is python-wxgtk3.0

What's the right thing to do in this scenario?

And, btw, sorry if I post this noobish question here, I just don't seem to have the ddg-fu skills right now.

Last edited by dr1nkus (2017-06-07 14:47:20)

Offline

#2 2017-05-26 05:38:49

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

You could try extracting and editing the Depends in the deb, which is an archive format. The file you need is the control file in 'trelby_2.2_all/control.tar.gz'.

Depends: python, python-wxgtk2.8, python-crypto, python-lxml

Change the dependency to what you have, then tar it up again.

NB: This is not guaranteed to work, and may not even be good advice sad


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-05-26 05:43:05

dr1nkus
Member
Registered: 2017-05-09
Posts: 26

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

damo wrote:

NB: This is not guaranteed to work, and may not even be good advice sad

It's something new to try. You never know... ^^

Offline

#4 2017-05-26 05:57:02

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

Slightly offtopic: before you invest some time into this consider that trelby does not support unicode (which may or may not affect you depending on your languge) .

Offline

#5 2017-05-26 06:51:25

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,217

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

Dang it, know it's totally possible to run more than one version of a package simultaneously in gnu/Linux. Haven't come across a time when I needed to do so, so don't know the details and xyz-nixer who has a need could search out the solution they need for themselves. ( am admittedly lazy) See stuff like that. In particular this one looked hopeful as regards your situation/need.

nother edit: Though mentioned have never needed to do this type of thing. So have zero idea if what's said in that thread is valid or not.

Also was thinking something like a chroot jail could apply here. Which again ... have read over the general how to in doing that but am not up to speed on it in detail and something that'd be better taken up with a search engine. Chroot jail, yep ... install everything xyz app/util needs to run in an isolated directory or part of the gnu/Nix filesystem. It's supposed to run fine and in this case you should be able to slap the required python thingy into that chroot jail and/or perhaps just into something in your users /home. Should run, shouldn't care about whatever other package versions are installed on the OS etc.

Last edited by BLizgreat! (2017-05-26 07:03:37)

Offline

#6 2017-05-26 07:51:29

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

Why not just use the tarball?

Puffy: ~ $ cat Downloads/trelby-2.2/README                                                                                                                    
Installation instructions for Trelby on Linux (tar.gz)
------------------------------------------------------

You have to copy trelby/ to /opt/trelby/. Afterwards you can run the
program with the command "/opt/trelby/src/trelby.py".

External dependencies required:

 * Python (2.6 or 2.7)
 * wxWidgets (2.8) and its Python bindings (wxPython)
 * lxml

Offline

#7 2017-05-26 14:01:34

MsMattie
Member
Registered: 2015-09-29
Posts: 99

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

I did get Trelby working on BunsenLabs, but I managed to do this about six months ago and I can't remember the exact process. My notes from back then indicate I used this thread:

Github thread


...
Linux in the backwoods of the Rocky Mountains...

Offline

#8 2017-05-26 16:52:31

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

^

git clone https://github.com/oskusalerma/trelby
cd trelby/
sudo python setup.py install
cd /opt/trelby/
./trelby

Offline

#9 2017-05-26 18:42:33

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 381

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

I don't think you can fool the package by just hacking the dependencies in the deb.  However, it's a fairly simple forwardport from the Wheezy 2.8 source files to rebuild on Jessie, that's what we have in the MX 15/16 repo:  http://main.mepis-deb.org/mx/repo/pool/ … idgets2.8/

So...you could temporarily add the MX 15 repo,  I could build the packages in a separate OBS repo, or Head on a Stick also knows the OBS procedure.  Or you could also port them on your machine locally, or use the OBS (it's free). Maybe even BL could add them to the repo.

Offline

#10 2017-05-26 20:14:18

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

@stevep: git version seems to be fixed (tested on stretch only).

Offline

#11 2017-05-26 20:20:05

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 381

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

I had a few extra minutes, so I went ahead and made a Jessie repo with the necessary packages.

As root or with sudo, add the repo:

echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser:/wxgtk_2.8/Debian_8.0/ /' > /etc/apt/sources.list.d/python-wxgtk2.8.list

as normal user, download the repo authentication key:

wget -nv http://download.opensuse.org/repositories/home:stevenpusser:wxgtk_2.8/Debian_8.0/Release.key -O Release.key

as root or with sudo, add the key to your system and update the package database:

apt-key add - < Release.key
apt-get update

That should get gdebi & Trelby working with that missing dependency, at least.

Last edited by stevep (2017-05-27 16:37:28)

Offline

#12 2017-05-27 04:20:02

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,169
Website

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

^ Nice. Thanks, Mr. Steve!


I don't care what you do at home. Would you care to explain?

Offline

#13 2017-06-07 14:46:28

dr1nkus
Member
Registered: 2017-05-09
Posts: 26

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

Sorry for my long nap, and thanks everyone for the input, especially to @stevep for the repo!
I chose what I think it's the simplest approach and did the trick alright:

brontosaurusrex wrote:
git clone https://github.com/oskusalerma/trelby
cd trelby/
sudo python setup.py install
cd /opt/trelby/
./trelby

Then symlinked and done.

To round up a bit, what should I do first in the future when I come across situations like this? Tarball is the way to go?

BTW, I'll mark this as [SOLVED].

EDIT: typo.

Last edited by dr1nkus (2017-06-07 15:24:45)

Offline

#14 2017-06-08 02:01:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

dr1nkus wrote:

what should I do first in the future when I come across situations like this?

A question that often comes up - I've just just reposted some stuff from the #! forums, with edits and additions, here: https://forums.bunsenlabs.org/viewtopic.php?id=3792 I don't know if that helps at all?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#15 2017-06-13 18:32:08

dr1nkus
Member
Registered: 2017-05-09
Posts: 26

Re: [SOLVED] gDebi dependencies best practices? Cannot install Trelby

@johnraff Neat stuff! I usually proceed that way, except for the OBS repos, which I knew just recently.

Offline

Board footer

Powered by FluxBB