Bug 1408541 - [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)
Summary: [abrt] pitivi: medialibrary.py:190:AssetThumbnail:GLib.GError: g-file-error-q...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pitivi
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:3ecc212e625c0d3eabede973a77...
: 1410762 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-24 12:24 UTC by daniele.marsella95
Modified: 2017-01-20 17:43 UTC (History)
15 users (show)

Fixed In Version: pitivi-0.98-5.fc25
Clone Of:
Environment:
Last Closed: 2017-01-02 19:51:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.42 KB, text/plain)
2016-12-24 12:24 UTC, daniele.marsella95
no flags Details
File: environ (1.09 KB, text/plain)
2016-12-24 12:24 UTC, daniele.marsella95
no flags Details
fix /usr//usr/share in configure.py (762 bytes, patch)
2016-12-31 19:12 UTC, Link Dupont
no flags Details | Diff

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. ***


Note You need to log in before you can comment on or make changes to this bug.