| Summary: | dnf API base.do_transaction fails in python3 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tim Lauridsen <tla> | ||||
| Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 20 | CC: | akozumpl, packaging-team-maint, pnemade, rholy | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-11-25 07:55:22 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
*** This bug has been marked as a duplicate of bug 1033596 *** |
Created attachment 827752 [details] api example to reproduce the issue Description of problem: Attached example fails in python3, works in python2 Version-Release number of selected component (if applicable): 0.4.8-1 How reproducible: every time Steps to Reproduce: 1. sudo python3 dnf-api.py 2. 3. Actual results: cachedir: /var/cache/dnf/i386/20 =============== install btanks ===================== # of packages added : 1 <hawkey.Goal object at 0xb6c3ef2c> Install - btanks-0.9.8083-7.fc20.i686 Install - btanks-data-0.9.8083-7.fc20.noarch [<hawkey.Package object id 3038, btanks-0.9.8083-7.fc20.i686, fedora>, <hawkey.Package object id 3039, btanks-data-0.9.8083-7.fc20.noarch, fedora>] Downloading Packages {} Running Transaction Traceback (most recent call last): File "test.py", line 84, in <module> base.do_install() File "test.py", line 78, in do_install print(self.do_transaction()) File "/usr/lib/python3.3/site-packages/dnf/base.py", line 627, in do_transaction self.transaction.populate_rpm_ts(self.ts) File "/usr/lib/python3.3/site-packages/dnf/transaction.py", line 183, in populate_rpm_ts ts.addInstall(hdr, tsi, 'i') File "/usr/lib/python3.3/site-packages/rpm/transaction.py", line 48, in addInstall if isinstance(item, basestring): NameError: global name 'basestring' is not defined Expected results: No Traceback Additional info: