Bug 1033393 - [abrt] meld-1.8.2-1.fc19: __init__.py:86:get_vcs:ValueError: max() arg is an empty sequence
Summary: [abrt] meld-1.8.2-1.fc19: __init__.py:86:get_vcs:ValueError: max() arg is an ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: meld
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominic Hopf
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:7b463ebd91161c1ac1415b9dca1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-22 03:01 UTC by ARIKO
Modified: 2014-05-05 07:31 UTC (History)
9 users (show)

Fixed In Version: meld-1.8.4-1.fc20.noarch
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-14 05:07:39 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (924 bytes, text/plain)
2013-11-22 03:01 UTC, ARIKO
no flags Details
File: environ (1.87 KB, text/plain)
2013-11-22 03:01 UTC, ARIKO
no flags Details

Description ARIKO 2013-11-22 03:01:21 UTC
Version-Release number of selected component:
meld-1.8.2-1.fc19

Additional info:
reporter:       libreport-2.1.9
cmdline:        python /usr/bin/meld
executable:     /usr/bin/meld
kernel:         3.11.7-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
__init__.py:86:get_vcs:ValueError: max() arg is an empty sequence

Traceback (most recent call last):
  File "/usr/share/meld/meld/meldwindow.py", line 245, in on_widget_drag_data_received
    self.open_paths(paths)
  File "/usr/share/meld/meld/meldwindow.py", line 791, in open_paths
    self._single_file_open(a)
  File "/usr/share/meld/meld/meldwindow.py", line 781, in _single_file_open
    doc.set_location(path)
  File "/usr/share/meld/meld/vcview.py", line 395, in set_location
    self.choose_vc(vc.get_vcs(os.path.abspath(location or ".")))
  File "/usr/share/meld/meld/vc/__init__.py", line 86, in get_vcs
    max_depth = max(len(vc.root) for vc in vcs if vc.VC_ROOT_WALK)
ValueError: max() arg is an empty sequence

Local variables in innermost frame:
vcs: []
location: '/home/ARIKO/.etwolf/etmain/profiles/ARIKO-2-POTAGER/etconfig.cfg'
plugin: <module 'meld.vc.svn_17' from '/usr/share/meld/meld/vc/svn_17.pyc'>

Comment 1 ARIKO 2013-11-22 03:01:29 UTC
Created attachment 827549 [details]
File: backtrace

Comment 2 ARIKO 2013-11-22 03:01:33 UTC
Created attachment 827550 [details]
File: environ

Comment 3 Dmitry Dyachenko 2013-11-24 08:44:23 UTC
Description of problem:
view stunnel source code. Provide one dir-name
meld stunnel-4.20/ &

Version-Release number of selected component:
meld-1.8.2-1.fc19

Additional info:
reporter:       libreport-2.1.9
cmdline:        python /usr/bin/meld stunnel-4.20/
executable:     /usr/bin/meld
kernel:         3.11.9-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
__init__.py:86:get_vcs:ValueError: max() arg is an empty sequence

Traceback (most recent call last):
  File "/usr/bin/meld", line 173, in <module>
    main()
  File "/usr/bin/meld", line 165, in main
    new_window = app.parse_args(sys.argv[1:])
  File "/usr/share/meld/meld/meldapp.py", line 169, in parse_args
    tab = open_paths(args, options.auto_compare, options.auto_merge)
  File "/usr/share/meld/meld/meldwindow.py", line 793, in open_paths
    tab = self.append_vcview(a, auto_compare)
  File "/usr/share/meld/meld/meldwindow.py", line 753, in append_vcview
    doc.set_location(location)
  File "/usr/share/meld/meld/vcview.py", line 395, in set_location
    self.choose_vc(vc.get_vcs(os.path.abspath(location or ".")))
  File "/usr/share/meld/meld/vc/__init__.py", line 86, in get_vcs
    max_depth = max(len(vc.root) for vc in vcs if vc.VC_ROOT_WALK)
ValueError: max() arg is an empty sequence

Local variables in innermost frame:
vcs: []
location: '/home/dimhen/src/stunnel/stunnel-4.20'
plugin: <module 'meld.vc.svn_17' from '/usr/share/meld/meld/vc/svn_17.pyc'>

Comment 4 brshea 2013-12-02 21:32:22 UTC
same is also achieved by:

1) execute meld
2) choose "Version control view" in "New comparison" tab
3) select a directory from a version control checkout (cvs in my case)
4) click "Compare"


Traceback (most recent call last):
  File "/usr/share/meld/meld/newdifftab.py", line 115, in on_button_compare_clicked
    tab = self.diff_methods[self.diff_type](compare_paths)
  File "/usr/share/meld/meld/meldwindow.py", line 753, in append_vcview
    doc.set_location(location)
  File "/usr/share/meld/meld/vcview.py", line 395, in set_location
    self.choose_vc(vc.get_vcs(os.path.abspath(location or ".")))
  File "/usr/share/meld/meld/vc/__init__.py", line 86, in get_vcs
    max_depth = max(len(vc.root) for vc in vcs if vc.VC_ROOT_WALK)
ValueError: max() arg is an empty sequence

Comment 5 Julian Sikorski 2014-01-01 17:25:38 UTC
Other way to reproduce: in a folder with a CVS checkout, run
$ meld .

Comment 6 Sam Tygier 2014-01-20 15:42:48 UTC
looks like https://bugzilla.gnome.org/show_bug.cgi?id=721784

Comment 7 Julian Sikorski 2014-03-01 11:23:59 UTC
The fix is included in 1.8.4, please update.


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