-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to rip CD: "ValueError: could not convert string to float: " #374
Comments
This was introduced by #345 |
What I've found is that it includes some blank lines that it's trying to parse, which is the direct cause for the error (ie., the result of calling I tried a I tried to set up a test case, Maybe @jtl999 can help here, having written the code? |
I ran into the same problem. I fixed it by changing
It seems there is a space before the track number in the cdrdao output. I also assume the |
I'm currently busy but I'll see if I can give this a test in a few days. |
@srussel Thanks! I'd also really like if this doesn't make it in without a test to make sure it doesn't regress again in the future. |
@jtl999 Ping. 😉 /remind jtl999 to please review this issue in 3 days |
@JoeLametta set a reminder for Apr 5th 2019 |
👋 @jtl999, please review this issue |
@jtl999 Ping. 😉 |
I can borrow the CD again and try with and without the regex, but I’d really like if someone can think up a way to test this so we can prevent it from regressing in the future. |
I tried this with Salif Keita’s ‘“Folon”… The Past’ (Disc ID) which gave the same error, and @srussel’s regex from #374 (comment) change fixes the issue for me. I would still very much like if this could be tested to prevent future regressions, but if no one can come up with a way to do this, I’d say we should just get the fix in so we can move closer to a 0.8.0 release. |
Howdy. whipper 0.7.4.dev76+g57d386e |
I have emerged from my absence I haven't touched anything whipper related since last December but while I was testing #345 I don't recall experiencing the issue in question with any of my discs. I just checked and the environment I was using to test was an Ubuntu 18.04 LXC container with sr0 block device passthrough, whipper from git (a bit vague because I've used both "my personal fork" and upstream in the past) and cdrdao v1.2.3 from Ubuntu 18.04's universe repository. At some point I'll see if I can rip a bunch of discs with a recent whipper build and reproduce this issue. |
👍 |
Fixed thanks to #418. |
Trying to rip Hamza El Din - Escalay (The Water Wheel): Oud Music, I get this traceback:
It's apparently trying to convert an empty string to a float. I didn't figure out why it was getting an empty string at a quick glance.
CD TOC from
cdrdao read-toc --device '/dev/sr0' ~/tmp/23016bff-10d1-404c-aa90-f50d36c83390.toc
: 23016bff-10d1-404c-aa90-f50d36c83390.toc.gzwhipper debug log output (with a couple of extra
logger.debug
statements thrown in to try and figure out what was going on, so line numbers may not line up perfectly…): whipper.log.gzThe text was updated successfully, but these errors were encountered: