python-liblarch fails to configure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
High
|
Parin Porecha |
Bug Description
I appear to be having a problem configuring the python-liblarch (2.2.0.
I went to install something and saw:
The following partially installed packages will be configured:
python-liblarch
apparently left over from a prior update. When it got to the step of configuring python-liblarch, I see:
Setting up python-liblarch (2.2.0.
SyntaxError: ('invalid syntax', ('/usr/
dpkg: error processing python-liblarch (--configure):
subprocess installed post-installation script returned error exit status 101
No apport report written because MaxReports is reached already
gtg depends on python-liblarch (>= 2.1.0); however:
Package python-liblarch is not configured yet.
I tried following the suggestion in bug 1038466 of removing python-liblarch (that bug was actually about python-
Parin Porecha (parinporecha) wrote : | #2 |
Sorry, this bug is not a duplicate but related to Bug #1275052
Changed in gtg: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 0.3.2 |
assignee: | nobody → Parin Porecha (parinporecha) |
Nimit Shah (nimit-svnit) wrote : | #3 |
Hi all,
We are releasing a legacy branch of GTG for all the users who are facing configuration issues with Python3 and GTK-3.
This branch contains the code till revision 1350. Mind you, not all changes made in the daily branch will get reflected in this one. This is just for the people who are having issues for running the Python3 and GTK3 version of the code.
Here is the link to the PPA: https:/
Changed in gtg: | |
importance: | Critical → Undecided |
milestone: | 0.3.2 → none |
Parin Porecha (parinporecha) wrote : | #4 |
Hi,
I've updated liblarch dependencies and now installing liblarch via gtg-daily ppa should work fine.
Here's the link to the recipe - https:/
and the ppa - https:/
The daily build by default works for Quantal (12.10) and Saucy (13.10), and Trusty (14.04)
We've removed Precise (12.04) since the GTK version it supports (3.0) is quite old and does not work very well with the one liblarch has been ported to (3.8)
Marking this as 'Fix Released'
Tom > Thanks for reporting the bug :-)
Changed in gtg: | |
importance: | Undecided → High |
status: | Triaged → Fix Released |
milestone: | none → 0.3.2 |
aslam karachiwala (akwala) wrote : | #5 |
Just tried to upgrade...
Setting up python-liblarch (2.2.0.
File "/usr/lib/
print(output, end=' ')
SyntaxError: invalid syntax
dpkg: error processing python-liblarch (--configure):
subprocess installed post-installation script returned error exit status 101
dpkg: dependency problems prevent configuration of gtg:
gtg depends on python-liblarch (>= 2.1.0); however:
Package python-liblarch is not configured yet.
Nimit Shah (nimit-svnit) wrote : Re: [Bug 1275642] Re: python-liblarch fails to configure | #6 |
Hi Aslam,
Latest liblarch uses python3. While you seem to be using a python2
environment.
Nimit Shah
On Mon, Mar 10, 2014 at 10:00 PM, aslam karachiwala <
<email address hidden>> wrote:
> Just tried to upgrade...
>
> Setting up python-liblarch (2.2.0.
> File "/usr/lib/
> print(output, end=' ')
> ^
> SyntaxError: invalid syntax
>
> dpkg: error processing python-liblarch (--configure):
> subprocess installed post-installation script returned error exit status
> 101
> dpkg: dependency problems prevent configuration of gtg:
> gtg depends on python-liblarch (>= 2.1.0); however:
> Package python-liblarch is not configured yet.
>
> --
> You received this bug notification because you are subscribed to Getting
> Things GNOME!.
> Matching subscriptions: bugs
> https:/
>
> Title:
> python-liblarch fails to configure
>
> Status in Getting Things GNOME!:
> Fix Released
>
> Bug description:
> I appear to be having a problem configuring the python-liblarch
> (2.2.0.
> coming from the GTG PPA (gtg-daily).
>
> I went to install something and saw:
>
> The following partially installed packages will be configured:
> python-liblarch
>
> apparently left over from a prior update. When it got to the step of
> configuring python-liblarch, I see:
>
> Setting up python-liblarch (2.2.0.
> SyntaxError: ('invalid syntax',
> ('/usr/
> print(output, end=' ')\n"))
>
> dpkg: error processing python-liblarch (--configure):
> subprocess installed post-installation script returned error exit
> status 101
> No apport report written because MaxReports is reached already
> dpkg:
> dependency problems prevent configuration of gtg:
> gtg depends on python-liblarch (>= 2.1.0); however:
> Package python-liblarch is not configured yet.
>
>
> I tried following the suggestion in bug 1038466 of removing
> python-liblarch (that bug was actually about python-
> reinstalling gtg, but that just triggered the same error when
> python-liblarch was attempted to be configured again.
>
> To manage notifications about this bug go to:
> https:/
>
Parin Porecha (parinporecha) wrote : | #7 |
Hi,
I've updated the debhelper rule in liblarch to python3 (sorry, I must've overlooked it).
Aslam, can you please try to install liblarch again ?
aslam karachiwala (akwala) wrote : | #8 |
This time it installed (no error re congifuration) but still gave the syntax error:
Compiling /usr/lib/
File "/usr/lib/
print(output, end=' ')
SyntaxError: invalid syntax
Setting up python-liblarch (2.2.0.
Setting up gtg (0.3.r1363~
Processing triggers for python-support ...
Compiling /usr/lib/
File "/usr/lib/
print(output, end=' ')
SyntaxError: invalid syntax
======
The same error occurs at runtime:
$ gtg
Traceback (most recent call last):
File "/usr/bin/gtg", line 90, in <module>
main()
File "/usr/bin/gtg", line 83, in main
elif import_
File "/usr/share/
has_libraries, missing = check_liblarch()
File "/usr/share/
import liblarch
File "/usr/lib/
from liblarch.tree import MainTree
File "/usr/lib/
print(output, end=' ')
SyntaxError: invalid syntax
=====
I also tried explicitly with python3...
$ python3 /usr/share/gtg/gtg
GTG can't find liblarch and liblarch_gtk. To install missing libraries,
run the following command in the current folder:
git clone https:/
More information about liblarch: https:/
=====
Jan Pleva (jenik-pleva) wrote : | #9 |
grrrr, so sad.... I'm not able to run GTG on still supported 12.04.4 :(
Parin Porecha (parinporecha) wrote : | #10 |
Jan > Please use the legacy GTG ppa for 12.04 (https:/
I am working on solving the python-liblarch installation problem, but it will support 12.10 and newer distros
Changed in gtg: | |
status: | Fix Released → In Progress |
Jan Pleva (jenik-pleva) wrote : | #11 |
@Parin that is the problem. I'm right now jumping throw supported distributions only (work usage). so it's little bit problematic for me to update to, in this case not supported, distribution. I did use legacy before, but GTG having dependency on newest package, so it want to update it and that is not what I want to.
Jan Pleva (jenik-pleva) wrote : | #12 |
Would it be possible to add old versions for legacy, so it will be possible to force installation without update of python-liblarch?
Jan Pleva (jenik-pleva) wrote : | #13 |
Whooo, I made it somehow, but do not know how. It looks like someone fixed this in stable repository? I found two packages compatible to each other and now it is working fine again, and even there are latest withou arguing about update, so there is no lock version needed. I did remove some of GTG repository and adding others and woala - it is working right now.
plevajan@laptop:~$ apt-cache policy gtg
gtg:
Installed: 0.3.r1332~
Candidate: 0.3.r1332~
Version table:
*** 0.3.r1332~
1100 http://
100 /var/lib/
0.
1100 http://
0.2.4-6 0
1100 http://
plevajan@laptop:~$ apt-cache policy python-liblarch
python-liblarch:
Installed: 2.2.0.r155~
Candidate: 2.2.0.r155~
Version table:
*** 2.2.0.r155~
1100 http://
100 /var/lib/
2.
1100 http://
gary mort (garyamort2) wrote : | #14 |
Either the daily package for liblarch or gtg needs to be changed.
I installed the python3-liblarch package from the daily repository. Instead of installing to /usr/lib/
When trying to install gtg from daily,
apt-get install gtg=0.3.
It would try to include python-liblarch with the install. Checking the dependencies with
sudo apt-cache showpkg gtg
Shows that python-liblarch is a dependency.
So either the dependency needs to be changed from python-liblarch to python3-liblarch or the python3-liblarch package must be modified so that it also declares itself as providing python-liblarch as well.
I pulled down the daily package via:
apt-get download gtg=0.3.
and force installed it with
sudo dpkg -i --force gtg_0.3.
After that it seems to be working fine.
aslam karachiwala (akwala) wrote : | #15 |
Bump...
What's up w/ this issue? I haven't been able to use GTG since this happened. I have python3/gtk3 (I'm now on Ubuntu 14.04). What do I need to do to be able to run the versions from the 'daily' repo?
Install of python3-liblarch fails if python-liblarch is present. Attempting to uninstall python-liblarch shows that gtg depends on it, which is what @garyamort2 reported as well.
Nimit Shah (nimit-svnit) wrote : | #16 |
Hi Aslam,
Can you try this thing:
Uninstall gtg.
If python-liblarch is present, uninstall liblarch aswell.
Goto software centre and install gtg and liblarch.
GTG is not installing liblarch by default. We will figure out the solution
soon.
Nimit Shah
On Fri, Jul 18, 2014 at 4:29 AM, aslam karachiwala <
<email address hidden>> wrote:
> Bump...
>
> What's up w/ this issue? I haven't been able to use GTG since this
> happened. I have python3/gtk3 (I'm now on Ubuntu 14.04). What do I need
> to do to be able to run the versions from the 'daily' repo?
>
> Install of python3-liblarch fails if python-liblarch is present.
> Attempting to uninstall python-liblarch shows that gtg depends on it,
> which is what @garyamort2 reported as well.
>
> --
> You received this bug notification because you are subscribed to Getting
> Things GNOME!.
> Matching subscriptions: bugs
> https:/
>
> Title:
> python-liblarch fails to configure
>
> Status in Getting Things GNOME!:
> In Progress
>
> Bug description:
> I appear to be having a problem configuring the python-liblarch
> (2.2.0.
> coming from the GTG PPA (gtg-daily).
>
> I went to install something and saw:
>
> The following partially installed packages will be configured:
> python-liblarch
>
> apparently left over from a prior update. When it got to the step of
> configuring python-liblarch, I see:
>
> Setting up python-liblarch (2.2.0.
> SyntaxError: ('invalid syntax',
> ('/usr/
> print(output, end=' ')\n"))
>
> dpkg: error processing python-liblarch (--configure):
> subprocess installed post-installation script returned error exit
> status 101
> No apport report written because MaxReports is reached already
> dpkg:
> dependency problems prevent configuration of gtg:
> gtg depends on python-liblarch (>= 2.1.0); however:
> Package python-liblarch is not configured yet.
>
>
> I tried following the suggestion in bug 1038466 of removing
> python-liblarch (that bug was actually about python-
> reinstalling gtg, but that just triggered the same error when
> python-liblarch was attempted to be configured again.
>
> To manage notifications about this bug go to:
> https:/
>
aslam karachiwala (akwala) wrote : | #17 |
I know of the legacy repo. Can you explain why GTG does not run despite the
presence of python3 & gtk3? I would appreciate knowing what makes my
generally up to-date system not current enough for GTG. What are the system
requirements for running the 'daily' updates?
On Feb 18, 2014 2:50 PM, "Nimit Shah" <email address hidden> wrote:
> Hi all,
> We are releasing a legacy branch of GTG for all the users who are facing
> configuration issues with Python3 and GTK-3.
> This branch contains the code till revision 1350. Mind you, not all
> changes made in the daily branch will get reflected in this one. This is
> just for the people who are having issues for running the Python3 and GTK3
> version of the code.
> Here is the link to the PPA:
> https:/
>
> ** Changed in: gtg
> Importance: Critical => Undecided
>
> ** Changed in: gtg
> Milestone: 0.3.2 => None
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> python-liblarch fails to configure
>
> Status in Getting Things GNOME!:
> Triaged
>
> Bug description:
> I appear to be having a problem configuring the python-liblarch
> (2.2.0.
> coming from the GTG PPA (gtg-daily).
>
> I went to install something and saw:
>
> The following partially installed packages will be configured:
> python-liblarch
>
> apparently left over from a prior update. When it got to the step of
> configuring python-liblarch, I see:
>
> Setting up python-liblarch (2.2.0.
> SyntaxError: ('invalid syntax',
> ('/usr/
> print(output, end=' ')\n"))
>
> dpkg: error processing python-liblarch (--configure):
> subprocess installed post-installation script returned error exit
> status 101
> No apport report written because MaxReports is reached already
> dpkg:
> dependency problems prevent configuration of gtg:
> gtg depends on python-liblarch (>= 2.1.0); however:
> Package python-liblarch is not configured yet.
>
>
> I tried following the suggestion in bug 1038466 of removing
> python-liblarch (that bug was actually about python-
> reinstalling gtg, but that just triggered the same error when
> python-liblarch was attempted to be configured again.
>
> To manage notifications about this bug go to:
> https:/
>
aslam karachiwala (akwala) wrote : | #18 |
Pls disregard my previous msg. Gmail on my Android showed Nimit's post from 2/18 when I opened the thread and I thought it was in response to my post from earlier today.
Anyways... Here's what happened when I uninstalled gtg, autoremoved python-liblarch and then installed gtg. As you can see, python-liblarch does get installed when gtg is installed.
-----
$ sudo apt-get purge gtg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
python-liblarch (2.1.0-2)
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
gtg* (0.3.1.
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 10.5 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 535058 files and directories currently installed.)
Removing gtg (0.3.1.
Purging configuration files for gtg (0.3.1.
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
$ sudo apt-get autoremove python-liblarch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python-liblarch
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 171 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 534594 files and directories currently installed.)
Removing python-liblarch (2.1.0-2) ...
$ sudo apt-get purge python-liblarch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'python-liblarch' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install gtg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-liblarch (2.1.0-2)
Suggested packages:
bugz (0.10.1-3)
python-cheetah (2.4.4-
python-evolution ()
python-geoclue (0.1.0-4build1)
python-suds (0.4.1-11ubuntu0.1)
The following NEW packages will be installed:
gtg (0.3.1.
python-liblarch (2.1.0-2)
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.1 kB/3,654 kB of archives.
After this operation, 10.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Fetched 27.1 kB in 0s (113 kB/s)
Selecting previously unselected package python-liblarch.
(Reading database ... 534565 files and directories currently installed.)
Preparing to unpack .../python-
Unpacking python-liblarch (2.1.0-2) ...
Selecting previously unselected package gtg.
P...
aslam karachiwala (akwala) wrote : | #19 |
- Console output: install python3-liblarch w/ --force-overwrite Edit (4.0 KiB, text/plain)
Thought I'd strongarm the install so I forced an overwrite of python-liblarch (console output attached):
$ sudo dpkg -i --force-overwrite /var/cache/
Now I have...
$ apt-cache policy python3-liblarch
python3-liblarch:
Installed: 3.0.0.r178~
Candidate: 3.0.0.r178~
Version table:
*** 3.0.0.r178~
500 http://
100 /var/lib/
Then I tried running gtg. Below is the console output from the things I tried.
=====
$ gtg
bash: /usr/bin/gtg: Permission denied
$ ls -l /usr/bin/gtg
lrwxrwxrwx 1 root root 20 Jul 10 12:32 /usr/bin/gtg -> ../share/
$ ls -l /usr/share/gtg/GTG
total 68K
drwxr-xr-x 4 root root 4.0K Jul 17 22:32 backends/
drwxr-xr-x 4 root root 4.0K Jul 17 22:32 core/
drwxr-xr-x 6 root root 4.0K Jul 17 22:32 gtk/
drwxr-xr-x 14 root root 4.0K Jul 17 22:32 plugins/
drwxr-xr-x 2 root root 4.0K Jul 17 22:32 __pycache__/
drwxr-xr-x 3 root root 4.0K Jul 17 22:32 tools/
-rw-r--r-- 1 root root 15K Jul 10 10:34 gtcli
-rw-r--r-- 1 root root 8.0K Jul 10 10:34 gtg
-rw-r--r-- 1 root root 2.2K Jul 10 10:34 gtg_new_task
-rw-r--r-- 1 root root 12K Jul 10 10:34 info.py
-rw-r--r-- 1 root root 2.3K Jul 10 10:34 __init__.py
$ python3 /usr/bin/gtg
Traceback (most recent call last):
File "/usr/bin/gtg", line 57, in <module>
from GTG import _
ImportError: No module named 'GTG'
$ ls -l /usr/share/gtg
total 36K
drwxr-xr-x 8 root root 4.0K Jul 17 22:32 GTG/
-rwxr-xr-x 1 root root 15K Jul 10 12:31 gtcli*
-rw-r--r-- 1 root root 1.5K Jul 10 10:34 gtcli_bash_
-rwxr-xr-x 1 root root 7.9K Jul 10 12:31 gtg*
-rwxr-xr-x 1 root root 2.1K Jul 10 12:31 gtg_new_task*
$ /usr/share/gtg/gtg
Traceback (most recent call last):
File "/usr/share/
from GTG.backends import BackendFactory
File "/usr/share/
from GTG.backends.
File "/usr/share/
from GTG.core import CoreConfig
File "/usr/share/
import configparser
ImportError: No module named configparser
$ python3 /usr/share/gtg/gtg
Traceback (most recent call last):
File "/usr/share/
from GTG.core.datastore import DataStore
File "/usr/share/
from GTG.core import requester
File "/usr/share/
from GTG.core.tag import Tag
File "/usr/share/
from liblarch import TreeNode
ImportError: No module named 'liblarch'
tags: | added: github |
Khurshid Alam (khurshid-alam) wrote : | #20 |
>I installed the python3-liblarch package from the daily repository. Instead of installing to /usr/lib/
That's the problem. Manually coping liblarch and liblarch-gtk folders from /usr/lib/
Jeff Fortin Tam (kiddo) wrote : | #21 |
LibLarch 3.0.1 exists now, reopen a bug upstream if you're still encountering an issue
Changed in gtg: | |
status: | In Progress → Fix Released |
Hi Tom,
liblarch was ported to python3 recently.
Apparently, ubuntu installer is using python2 to compile liblarch and this is causing the bug.
I've sent a mail to Luca Falavigna (GTG's deb package maintainer), and we're trying to patch is as soon as possible.
This bug has already been reported (Bug #1275052).