raise ValueError('malformed node or string: ' + repr(node)) ValueError: malformed node or string: b"['$HOME']\n"

Bug #1863498 reported by Norbert
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu MATE
Invalid
Undecided
Unassigned
deja-dup-caja
Fix Committed
Critical
costales
deja-dup-caja (Ubuntu)
Fix Released
Undecided
Unassigned
python-caja (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Install Ubuntu MATE 20.04 LTS
2. Launch terminal with `tail -f ~/.xsession-errors`
3. Launch Caja and select *File System* line in the left sidebar

Expected result:
* Caja switches to /, the terminal do not have any errors

Actual results:
* Caja switches to /, the terminal have python-related errors:

Traceback (most recent call last):
  File "/usr/share/caja-python/extensions/dejadup.py", line 156, in get_file_items
    include_paths = self.dejadup.get_dejadup_paths('include-list')
  File "/usr/share/caja-python/extensions/dejadup.py", line 70, in get_dejadup_paths
    paths = ast.literal_eval([stdout][0]) # Convert shell dump to list
  File "/usr/lib/python3.8/ast.py", line 96, in literal_eval
    return _convert(node_or_string)
  File "/usr/lib/python3.8/ast.py", line 95, in _convert
    return _convert_signed_num(node)
  File "/usr/lib/python3.8/ast.py", line 74, in _convert_signed_num
    return _convert_num(node)
  File "/usr/lib/python3.8/ast.py", line 66, in _convert_num
    raise ValueError('malformed node or string: ' + repr(node))
ValueError: malformed node or string: b"['$HOME']\n"

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: deja-dup-caja 0.0.8-0ubuntu3
ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
Uname: Linux 5.4.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
CurrentDesktop: MATE
Date: Sun Feb 16 21:12:13 2020
InstallationDate: Installed on 2020-02-16 (0 days ago)
InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Alpha amd64 (20200216)
PackageArchitecture: all
SourcePackage: deja-dup-caja
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote :

Still happens with latest updates on Ubuntu MATE 20.04 LTS installed from beta ISO.

Revision history for this message
Norbert (nrbrtx) wrote :

It seems that "Revert to Previous Version..." is missed because of this Python error.

costales (costales)
Changed in deja-dup-caja:
assignee: nobody → costales (costales)
status: New → In Progress
Revision history for this message
costales (costales) wrote :

Hi,

It was a change in the ast module in python3, the string from gsettings needs to be converted to string.

The attachment patch should fix the extension /usr/share/caja-python/extensions/dejadup.py

How to patch for testing:
sudo su -
patch /usr/share/caja-python/extensions/dejadup.py < dejadup.patch

Please, could you test it? It's critical to check if the directory in dejavu is the right directory you selected.

Thanks in advance!

Changed in deja-dup-caja:
importance: Undecided → Critical
Revision history for this message
Norbert (nrbrtx) wrote :

It works!
Thank you!

Hope you can get it packaged to focal-updates.

costales (costales)
Changed in deja-dup-caja:
status: In Progress → Fix Committed
Changed in ubuntu-mate:
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix dejadup.py" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in deja-dup-caja (Ubuntu):
status: New → Confirmed
Changed in python-caja (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

Still happens on both focal and groovy.
Please upload patch to them.

tags: added: groovy
Revision history for this message
costales (costales) wrote :

I can't upload to the repo. Someone has to upload it.

Changed in ubuntu-mate:
status: Confirmed → Invalid
Revision history for this message
Sai Vinoba (saivinob) wrote :

I see this error in 21.04 as well.

Norbert (nrbrtx)
tags: added: hirsute
Revision history for this message
Norbert (nrbrtx) wrote :

Still broken in 'Ubuntu-MATE 21.04 "Hirsute Hippo" - Beta amd64 (20210403)'.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package deja-dup-caja - 0.0.9-0ubuntu1

---------------
deja-dup-caja (0.0.9-0ubuntu1) hirsute; urgency=medium

  * New upstream release. (LP: #1868124)
  * Make Python 3 compatible. (LP: #1863498)
  * Drop Restore Missing, no longer a feature of deja-dup. (LP: #1885063)
  * debian/patches:
    + Drop deja-dup-patch. Applied upstream.

 -- Martin Wimpress <email address hidden> Wed, 07 Apr 2021 10:58:11 +0100

Changed in deja-dup-caja (Ubuntu):
status: Confirmed → Fix Released
Norbert (nrbrtx)
tags: removed: groovy
Revision history for this message
Norbert (nrbrtx) wrote :

Please sponsor fix for 20.04 LTS.

scott (alban-scott64)
Changed in python-caja (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Carlson Betty (carlsonbetty) wrote :

Where might I download the dejadup.py and dejadup.patch? I'm unfamiliar with this system... Thx.

Revision history for this message
costales (costales) wrote :

Hi Carlson, you have the steps & file need in this comment:
https://bugs.launchpad.net/ubuntu/+source/deja-dup-caja/+bug/1863498/comments/4
Best regards.

Revision history for this message
Carlson Betty (carlsonbetty) wrote :

Costales: I've looked at the comment multiple times, I'm not finding any files to click-on for download / copy... I must be really dense. Do you have any direct links to the 2 files (.py and .patch)? Appreciated.

Revision history for this message
costales (costales) wrote :

Hi Carlson, you shouldn't need to patch the file, just use the last code from the branch. In a Terminal:

wget https://bazaar.launchpad.net/~costales/deja-dup-caja/trunk/download/head:/caja-extension/dejadup.py
sudo mv dejadup.py /usr/share/caja-python/extensions/dejadup.py
caja -q

I didn't test these commands, they should work, tell us if not :)

Best regards.

Revision history for this message
Carlson Betty (carlsonbetty) wrote :

"caja -q" just gave back a prompt. 'caja' alone started the file manager, no errors in the terminal. Thanks!

Revision history for this message
costales (costales) wrote : Re: [Bug 1863498] Re: raise ValueError('malformed node or string: ' + repr(node)) ValueError: malformed node or string: b"['$HOME']\n"

Hi, Yes, caja -q just quit caja. Glad it worked! Enjoy it :) Best regards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.