Bug 1033393

Summary: [abrt] meld-1.8.2-1.fc19: __init__.py:86:get_vcs:ValueError: max() arg is an empty sequence
Product: [Fedora] Fedora Reporter: ARIKO <arikomagik>
Component: meldAssignee: Dominic Hopf <dmaphy>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: belegdol, brshea, c.david86, cwickert, dimhen, dmaphy, rolle.hoffmann, samtygier, stefan.home
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/891583fe051c53762d6ccfd9496c59c24c2507bd
Whiteboard: abrt_hash:7b463ebd91161c1ac1415b9dca1c45b47ef87d8c
Fixed In Version: meld-1.8.4-1.fc20.noarch Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-14 05:07:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

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.