Bug 1408541

Summary: [abrt] pitivi: medialibrary.py:190:AssetThumbnail:GLib.GError: g-file-error-quark: Failed to open file '/usr/usr/share/pitivi/pixmaps/asset-proxied.svg': File o directory non esistente (4)
Product: [Fedora] Fedora Reporter: daniele.marsella95
Component: pitiviAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: antonio.montagnani, bartkessels, dimapunk80, drindt, elad, gwync, ignatenko, kyrimis, link, otte, phracek, rouquier.p, thomas, tobias47n9e, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/37ce72e14afab238b0d623ca1118aaf8efb9bf5e
Whiteboard: abrt_hash:3ecc212e625c0d3eabede973a77ab510464c8ddb;VARIANT_ID=workstation;
Fixed In Version: pitivi-0.98-5.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-02 19:51:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ
none
fix /usr//usr/share in configure.py none

Description daniele.marsella95 2016-12-24 12:24:12 UTC
Description of problem:
I open Pitivi and it crashes immediately

Version-Release number of selected component:
pitivi-0.98-2.fc25

Additional info:
reporter:       libreport-2.8.0
cmdline:        python3 /usr/bin/pitivi
executable:     /usr/bin/pitivi
kernel:         4.8.14-300.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
medialibrary.py:190:AssetThumbnail:GLib.GError: g-file-error-quark: Failed to open file '/usr/usr/share/pitivi/pixmaps/asset-proxied.svg': File o directory non esistente (4)

Traceback (most recent call last):
  File "/usr/bin/pitivi", line 144, in <module>
    _run_pitivi()
  File "/usr/bin/pitivi", line 128, in _run_pitivi
    from pitivi import application
  File "/usr/lib64/python3.5/site-packages/pitivi/application.py", line 34, in <module>
    from pitivi.mainwindow import MainWindow
  File "/usr/lib64/python3.5/site-packages/pitivi/mainwindow.py", line 43, in <module>
    from pitivi.medialibrary import MediaLibraryWidget
  File "/usr/lib64/python3.5/site-packages/pitivi/medialibrary.py", line 173, in <module>
    class AssetThumbnail(Loggable):
  File "/usr/lib64/python3.5/site-packages/pitivi/medialibrary.py", line 190, in AssetThumbnail
    os.path.join(get_pixmap_dir(), "%s.svg" % status), size, size))
GLib.GError: g-file-error-quark: Failed to open file '/usr/usr/share/pitivi/pixmaps/asset-proxied.svg': File o directory non esistente (4)

Local variables in innermost frame:
__qualname__: 'AssetThumbnail'
__doc__: 'Provider of decorated thumbnails for an asset.'
DEFAULT_ALPHA: 255
PROXIED: 'asset-proxied'
IN_PROGRESS: 'asset-proxy-in-progress'
size: 32
icons_by_name: {}
__module__: 'pitivi.medialibrary'
status: 'asset-proxied'
NO_PROXY: 'no-proxy'
EMBLEMS: {'asset-proxied': []}
ASSET_PROXYING_ERROR: 'asset-proxying-error'

Comment 1 daniele.marsella95 2016-12-24 12:24:15 UTC
Created attachment 1235201 [details]
File: backtrace

Comment 2 daniele.marsella95 2016-12-24 12:24:17 UTC
Created attachment 1235202 [details]
File: environ

Comment 3 daniele.marsella95 2016-12-24 13:50:29 UTC
I found a way to fix the problem:
-Go to the python module path (in my case it's /usr/lib64/python3.5/)
-Go to the site-packages subdirectory e find the pitivi directory
-Open "configure.py" with an editor
-Change the variable PKGDATADIR from "/usr//usr/...." to "/usr/..."

After that my pitivi application worked well.

I hope they will fix this bug very soon :)

Comment 4 Link Dupont 2016-12-31 19:12:20 UTC
Created attachment 1236286 [details]
fix /usr//usr/share in configure.py

The %meson macro sets both --prefix=/usr and --datadir=/usr/share. The meson.build file sets DATADIR to prefix + datadir ("/usr//usr/share"). It then preprocesses configure.py.in and sets PKGDATADIR to DATADIR/PACKAGE, so the full path becomes "/usr//usr/share/pitivi".

The attached patch fixes this, but should be cleaned up before submitting upstream since it overlaps with a few lines changed by patch 0001-build-use-join_paths-in-some-critical-places.patch from RHBZ#1406444.

Comment 5 Igor Gnatenko 2016-12-31 19:32:00 UTC
(In reply to Link Dupont from comment #4)
> Created attachment 1236286 [details]
> fix /usr//usr/share in configure.py
> 
> The %meson macro sets both --prefix=/usr and --datadir=/usr/share. The
> meson.build file sets DATADIR to prefix + datadir ("/usr//usr/share"). It
> then preprocesses configure.py.in and sets PKGDATADIR to DATADIR/PACKAGE, so
> the full path becomes "/usr//usr/share/pitivi".
> 
> The attached patch fixes this, but should be cleaned up before submitting
> upstream since it overlaps with a few lines changed by patch
> 0001-build-use-join_paths-in-some-critical-places.patch from RHBZ#1406444.
This is wrong, because patch exactly fixes that. Problem is that it was not backported to F25....

Comment 6 Fedora Update System 2016-12-31 19:45:05 UTC
pitivi-0.98-5.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c604a98964

Comment 7 Fedora Update System 2017-01-02 01:19:38 UTC
pitivi-0.98-5.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c604a98964

Comment 8 Fedora Update System 2017-01-02 19:51:42 UTC
pitivi-0.98-5.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Daniel Rindt 2017-01-03 12:51:18 UTC
The problem still persists.

Comment 10 Igor Gnatenko 2017-01-03 12:53:12 UTC
(In reply to Daniel Rindt from comment #9)
> The problem still persists.

which version do you have?

Comment 11 Daniel Rindt 2017-01-03 12:54:38 UTC
pitivi-0.98-2.fc25.x86_64

Comment 12 Igor Gnatenko 2017-01-03 12:56:08 UTC
(In reply to Daniel Rindt from comment #11)
> pitivi-0.98-2.fc25.x86_64
Then you read bugzilla more carefully and find -- Fixed In Version: pitivi-0.98-5.fc25

Comment 13 daniele.marsella95 2017-01-03 13:50:50 UTC
I've upgraded my system today and the pitivi bug is now fixed. 
Thank you

Comment 14 Igor Gnatenko 2017-01-06 12:05:40 UTC
*** Bug 1410762 has been marked as a duplicate of this bug. ***