Bug 962553

Summary: [abrt] fpaste-0.3.7.1-8.fc18: fpaste:414:main:TypeError: 'bool' object is not iterable
Product: [Fedora] Fedora Reporter: Alexei Panov <me>
Component: fpasteAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: a.barghigiani, alex, athmanem, dan.mashal, germano.massullo, ignatenko, metherid, mhroncok, mikeus, robatino, sanjay.ankur
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c73ba326a629b4339925f11ee62dd087d07dc4ac
Fixed In Version: fpaste-0.3.7.1-11.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-25 02:22:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description Alexei Panov 2013-05-13 20:51:57 UTC
Description of problem:
I try to run 'fpaste some-python-script.pt'

Version-Release number of selected component:
fpaste-0.3.7.1-8.fc18

Additional info:
cmdline:        python /usr/bin/fpaste automate-index-html-repos.py
executable:     /usr/bin/fpaste
kernel:         3.8.11-200.fc18.x86_64
uid:            1000
ureports_counter: 1

Comment 1 Alexei Panov 2013-05-13 20:51:59 UTC
Created attachment 747440 [details]
File: backtrace

Comment 2 Alexei Panov 2013-05-13 20:52:01 UTC
Created attachment 747441 [details]
File: core_backtrace

Comment 3 Alexei Panov 2013-05-13 20:52:03 UTC
Created attachment 747442 [details]
File: environ

Comment 4 Ankur Sinha (FranciscoD) 2013-05-14 06:08:52 UTC
Hi Alexei,

Thank you for your bug report. I can't seem to reproduce this. Can you? I just pasted a python file and it worked fine.

Thanks,
Ankur

Comment 5 Alexei Panov 2013-05-14 07:23:57 UTC
Hi Ankur.
No. I can not reproduce the bug.
I have tried several times, different scripts.

Comment 6 Ankur Sinha (FranciscoD) 2013-05-14 07:53:49 UTC
Hi Alexei,

I'm closing it for the time being. Hopefully it was a one time thing. Please file another if it happens again :)

Thanks again,
Warm regards,
Ankur

Comment 7 Dan Mashal 2013-05-27 20:31:37 UTC
Got this when running " qemu-kvm -device ? |fpaste"

No text to send.
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 447, in <module>
    main()
  File "/usr/bin/fpaste", line 414, in main
    [url, short_url] = paste(text, options)
TypeError: 'bool' object is not iterable

Comment 8 Othman Madjoudj 2013-05-27 21:25:28 UTC
Hi Ankur,

The issue reported by Dan is 100% reproducible, I thought it was the content of the paste that creates the issue (unparseable json), but it's not, it seems to happen only when you do redirects:

]$ qemu-kvm -device ? 2> f.txt
]$ ./fpaste f.txt 
Uploading (5.7KiB)...
http://ur1.ca/e2e7t -> http://paste.fedoraproject.org/14847/13696896

Comment 9 Othman Madjoudj 2013-05-27 21:29:45 UTC
The issue seems to be related to the fact that 'qemu-kvm -device ?' outputs to stderr, because the following command works correctly:

]$ qemu-kvm -device ? 2>&1 | fpaste
Uploading (5.7KiB)...
http://ur1.ca/e2eae -> http://paste.fedoraproject.org/14848/36969007

Comment 10 Ankur Sinha (FranciscoD) 2013-05-27 23:52:17 UTC
Yep. I found this too. Ideally fpaste should just exit with "No text to send". Not sure why it crashes. We'll need to look into this.

Comment 11 Alexander Wigen 2013-07-08 02:06:16 UTC
If you do not have a network connection you will also hit this TypeError exception:

fpaste --sysinfo
Gathering system info..........................Uploading (15.1KiB)...
Error Uploading: [Errno -2] Name or service not known
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 447, in <module>
    main()
  File "/usr/bin/fpaste", line 414, in main
    [url, short_url] = paste(text, options)
TypeError: 'bool' object is not iterable

Comment 12 Andre Robatino 2013-07-16 06:42:24 UTC
I got this in F19 x86_64 when attempting to fpaste a 0-byte file.

[andre@compaq-pc tmp]$ fpaste ks.cfg 
No text to send.
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 447, in <module>
    main()
  File "/usr/bin/fpaste", line 414, in main
    [url, short_url] = paste(text, options)
TypeError: 'bool' object is not iterable
[andre@compaq-pc tmp]$

Comment 13 Germano Massullo 2013-07-25 08:09:37 UTC
If you need more use cases, I can reproduce it

Comment 14 Miro HronĨok 2013-11-19 17:03:42 UTC
$ fpaste -i
WARNING: your paste looks a lot like binary data instead of text.
Send binary data anyway? [y/N]: n
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 447, in <module>
    main()
  File "/usr/bin/fpaste", line 414, in main
    [url, short_url] = paste(text, options)
TypeError: 'bool' object is not iterable

Comment 15 Andrea Barghigiani 2013-12-21 00:46:46 UTC
I ran into this error when I was trying to solve some audio problems. I run:

$ alsactl init | fpaste
Found hardware: "HDA-Intel" "Realtek ALC883" "HDA:10ec0883,1043829f,00100002" "0x1043" "0x829f"
Hardware is initialized using a generic method
No text to send.
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 447, in <module>
    main()
  File "/usr/bin/fpaste", line 414, in main
    [url, short_url] = paste(text, options)
TypeError: 'bool' object is not iterable

Comment 16 Fedora End Of Life 2013-12-21 15:31:12 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

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 prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 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 to Fedora 18's end of life.

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 17 Fedora Update System 2014-01-23 07:05:01 UTC
fpaste-0.3.7.1-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/fpaste-0.3.7.1-10.fc20

Comment 18 Fedora Update System 2014-01-23 07:05:49 UTC
fpaste-0.3.7.1-10.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/fpaste-0.3.7.1-10.fc19

Comment 19 Fedora Update System 2014-01-24 07:46:27 UTC
Package fpaste-0.3.7.1-11.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fpaste-0.3.7.1-11.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1440/fpaste-0.3.7.1-11.fc19
then log in and leave karma (feedback).

Comment 20 Alexei Panov 2014-01-24 08:06:44 UTC
Works for me. Thanks.
I've leave karma.

Comment 21 Fedora Update System 2014-01-25 02:22:48 UTC
fpaste-0.3.7.1-11.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2014-01-29 03:09:25 UTC
fpaste-0.3.7.1-11.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.