Bug 1403925 - pyrpkg cannot upload sources - Could not execute new_sources: unsupported second type in tuple
Summary: pyrpkg cannot upload sources - Could not execute new_sources: unsupported sec...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: rpkg
Version: epel7
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-12 16:07 UTC by Orion Poplawski
Modified: 2021-01-15 10:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 10:59:45 UTC
Type: Bug


Attachments (Terms of Use)

Description Orion Poplawski 2016-12-12 16:07:55 UTC
Description of problem:

$ fedpkg -d -v new-sources idna-2.1.tar.gz
Creating repo object from /home/orion/fedora/python3-idna
Could not execute new_sources: unsupported second type in tuple
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 16, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/fedpkg/__main__.py", line 77, in main
    sys.exit(client.args.command())
  File "/usr/lib/python2.7/site-packages/pyrpkg/cli.py", line 1273, in new_sources
    self.cmd.upload(self.args.files, replace=self.args.replace)
  File "/usr/lib/python2.7/site-packages/pyrpkg/__init__.py", line 2368, in upload
    self.lookasidecache.upload(self.module_name, f, file_hash)
  File "/usr/lib/python2.7/site-packages/pyrpkg/lookaside.py", line 263, in upload
    if self.remote_file_exists(name, filename, hash):
  File "/usr/lib/python2.7/site-packages/pyrpkg/lookaside.py", line 207, in remote_file_exists
    c.setopt(pycurl.HTTPPOST, post_data)
TypeError: unsupported second type in tuple

Version-Release number of selected component (if applicable):
1.47-3.el7

Comment 1 Lubomír Sedlář 2016-12-12 17:31:13 UTC
Thank you for the report. Unfortunatelly this a previously fixed issue that just popped up again:

https://bugzilla.redhat.com/show_bug.cgi?id=1319924

I have proposed a fix:
https://pagure.io/rpkg/pull-request/174

Comment 2 Ondřej Nosek 2021-01-15 10:59:45 UTC
I looks this was fixed in rpkg-1.47 back in 2016.


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