Bug 1045828

Summary: [abrt] yum: pkgtag_db.py:55:__init__:ValueError: database parameter must be string or APSW Connection object
Product: [Fedora] Fedora Reporter: Dan Book <grinnz>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, jantill, jzeleny, packaging-team-maint, pnemade
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/50f461f3c208e7a931b5877117779b06caed4638
Whiteboard: abrt_hash:1482c5d752995e9b07c0704f3f2b2a9f6cf04d6b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 19:45:12 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 Dan Book 2013-12-22 10:50:00 UTC
Version-Release number of selected component:
yum-3.4.3-122.fc19

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/bin/yum search lvm
executable:     /usr/bin/yum
kernel:         3.11.10-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
pkgtag_db.py:55:__init__:ValueError: database parameter must be string or APSW Connection object

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 570, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1684, in doCommand
    return base.search(extcmds)
  File "/usr/share/yum-cli/cli.py", line 1437, in search
    for (po, keys, matched_value) in matching:
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3156, in searchGenerator
    tmpres = self.searchPackageTags(real_crit_lower)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3273, in searchPackageTags
    res = self.pkgtags.search_tags(c)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1108, in <lambda>
    pkgtags = property(fget=lambda self: self._getTags(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 998, in _getTags
    self._tags.add(repo.id, tag_sqlite)
  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 111, in add
    dbobj = PackageTagDB(repoid, sqlite_file)
  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 30, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 55, in __init__
    self._conn = sqlite.connect(sqlite_file)
ValueError: database parameter must be string or APSW Connection object

Local variables in innermost frame:
self: <yum.pkgtag_db.PackageTagDB object at 0x37fe190>
repoid: 'updates'
sqlite_file: None

Comment 1 Dan Book 2013-12-22 10:50:08 UTC
Created attachment 840319 [details]
File: backtrace

Comment 2 Dan Book 2013-12-22 10:50:11 UTC
Created attachment 840320 [details]
File: environ

Comment 3 Parag Nemade 2014-06-05 05:08:10 UTC
Hi,
   While executing this http://yum.baseurl.org/wiki/YumCodeSnippet/YumSearch code I too found this bug on my Fedora 20.

yum-3.4.3-137.fc20.noarch


Traceback is
raceback (most recent call last):
  File "yum-search.py", line 15, in <module>
    res = sorted(res, key=lambda x: x[0])
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3185, in searchGenerator
    tmpres = self.searchPackageTags(real_crit_lower)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3302, in searchPackageTags
    res = self.pkgtags.search_tags(c)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1108, in <lambda>
    pkgtags = property(fget=lambda self: self._getTags(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 998, in _getTags
    self._tags.add(repo.id, tag_sqlite)
  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 111, in add
    dbobj = PackageTagDB(repoid, sqlite_file)
  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 30, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 55, in __init__
    self._conn = sqlite.connect(sqlite_file)
ValueError: database parameter must be string or APSW Connection object

Comment 4 Fedora End Of Life 2015-01-09 20:56:02 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2015-02-17 19:45:12 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.