After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 560330 - Pitivi dont import any video (python trouble)
Pitivi dont import any video (python trouble)
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: General
0.11.x
Other All
: Normal major
: 0.11.3
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-11 12:57 UTC by Janvitus
Modified: 2008-12-10 17:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Janvitus 2008-11-11 12:57:44 UTC
Please describe the problem:
When I try to import any video into Pitivi, the application return a Python error:

Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 123 in do_expose_event
    self.drawPosition(context, self.get_allocation())
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 319 in drawPosition
    if self.getDuration() <= 0:
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 218 in getDuration
    return instance.PiTiVi.current.timeline.getDuration()
AttributeError: 'NoneType' object has no attribute 'timeline'

Steps to reproduce:
1. Import a video.
2. Pitivi show a dialog with error: PiTiVi is unable to load file "file:///path/video.avi": There was an error loading the file.
3. Anyway, Pitivi dont crash.

Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Ubuntu Intrepid Ibex 8.10 AMD64
GNOME 2.24.1
Kernel GNU/Linux 2.6.26.7 RT
Pitivi 0.11.2
Comment 1 Edward Hervey 2008-11-17 16:09:31 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

Fixed in this commit :

* pitivi/ui/ruler.py:
Fix duration query.
Don't seek if there's no available content.

git-svn-id: svn+ssh://svn.gnome.org/svn/pitivi/trunk@1331 d3729300-e425-0410-8a4c-d956edccc248
Comment 2 Janvitus 2008-12-10 15:47:09 UTC
Another bug when import a video.

No dialog error and nothing happen on the GUI, but from terminal...

~/Scrivania$ pitivi
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/project.py", line 102 in load
    res = self._load()
  • File "/usr/lib/pitivi/python/pitivi/project.py", line 125 in _load
    self.fromDataFormat(tree)
  • File "/usr/lib/pitivi/python/pitivi/project.py", line 281 in fromDataFormat
    Serializable.fromDataFormat(self, obj)
  • File "/usr/lib/pitivi/python/pitivi/serializable.py", line 51 in fromDataFormat
    if not obj["datatype"]:
TypeError: 'NoneType' object is unsubscriptable

PiTiVi version is now 0.11.2.2
Comment 3 Edward Hervey 2008-12-10 17:09:01 UTC
This is a different issue, therefore you should open a new bug report. But don't because it's just that you opened the file as a project (as opposed to using "Import files").