Skip to content
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

whipper offset find exception #208

Closed
tlc opened this issue Dec 26, 2017 · 8 comments
Closed

whipper offset find exception #208

tlc opened this issue Dec 26, 2017 · 8 comments
Assignees
Labels
Bug Generic bug: can be used together with more specific labels
Milestone

Comments

@tlc
Copy link

tlc commented Dec 26, 2017

$ whipper offset find -o 667
Checking device /dev/sr0
ERROR:whipper.common.accurip:error retrieving AccurateRip entry: 404 Not Found <Response [404]>
WARNING:whipper.common.accurip:entry not found in AccurateRip database
Accuraterip entry not found
Trying read offset 667 ...
Traceback (most recent call last):
File "/usr/local/bin/whipper", line 9, in
load_entry_point('whipper==0.5.1', 'console_scripts', 'whipper')()
File "/usr/local/lib/python2.7/dist-packages/whipper-0.5.1-py2.7.egg/whipper/command/main.py", line 32, in main
ret = cmd.do()
File "/usr/local/lib/python2.7/dist-packages/whipper-0.5.1-py2.7.egg/whipper/command/basecommand.py", line 124, in do
return self.cmd.do()
File "/usr/local/lib/python2.7/dist-packages/whipper-0.5.1-py2.7.egg/whipper/command/basecommand.py", line 124, in do
return self.cmd.do()
File "/usr/local/lib/python2.7/dist-packages/whipper-0.5.1-py2.7.egg/whipper/command/offset.py", line 142, in do
c, i = match(archecksums, 1, responses)
File "/usr/local/lib/python2.7/dist-packages/whipper-0.5.1-py2.7.egg/whipper/command/offset.py", line 111, in match
for i, r in enumerate(responses):
TypeError: 'NoneType' object is not iterable

@JoeLametta JoeLametta added the Bug Generic bug: can be used together with more specific labels label Jan 4, 2018
@JoeLametta
Copy link
Collaborator

It seems that whipper checks if there are AccurateRip's responses but only warns if there are none. Instead of just warning, in case there are no responses, it should inform the user and quit.

@JoeLametta
Copy link
Collaborator

I think this issue has been solved in whipper v0.6.0.

@twvandewarker
Copy link

I am having this same issue in version 0.7.2. I have a debug log here, should I start a new issue? Thanks!

$ WHIPPER_DEBUG=DEBUG WHIPPER_LOGFILE=whipper.log whipper offset find
Checking device /dev/sr0
Accuraterip entry not found
Trying read offset 6 ...
Traceback (most recent call last):      
  File "/usr/bin/whipper", line 11, in <module>
    load_entry_point('whipper==0.7.2', 'console_scripts', 'whipper')()
  File "/usr/lib/python2.7/site-packages/whipper/command/main.py", line 36, in main
    ret = cmd.do()
  File "/usr/lib/python2.7/site-packages/whipper/command/basecommand.py", line 139, in do
    return self.cmd.do()
  File "/usr/lib/python2.7/site-packages/whipper/command/basecommand.py", line 139, in do
    return self.cmd.do()
  File "/usr/lib/python2.7/site-packages/whipper/command/offset.py", line 140, in do
    c, i = match(archecksums, 1, responses)
  File "/usr/lib/python2.7/site-packages/whipper/command/offset.py", line 109, in match
    for i, r in enumerate(responses):
TypeError: 'NoneType' object is not iterable

whipper.log.gz

@JoeLametta
Copy link
Collaborator

I am having this same issue in version 0.7.2. I have a debug log here, should I start a new issue? Thanks!

Reopened, thanks for the issue report!

@JoeLametta JoeLametta reopened this Nov 8, 2018
@JoeLametta JoeLametta self-assigned this Nov 8, 2018
@JoeLametta JoeLametta added this to the 1.0 milestone Nov 8, 2018
@JoeLametta
Copy link
Collaborator

Confirmed: whipper should abort the offset find operation if no remote AccurateRip entries are found...
Fix coming soon. 😉

except accurip.EntryNotFound:
print('Accuraterip entry not found')

JoeLametta added a commit that referenced this issue Nov 9, 2018
Whipper offset find needs a (remote) matching AccurateRip entry to perform its task and confirm the drive offset: if none is found, return early to prevent exception.

Fixes #208.
@varac
Copy link

varac commented Nov 10, 2018

I'm still having this issue with latest joelametta/whipper image, which I pulled today:

docker images | grep whi 
joelametta/whipper   latest              6ff8fad9462c        10 days ago         609MB

Isn't this image built on every new commit ? If not, please push a new build.

@varac
Copy link

varac commented Nov 10, 2018

Happening also with a self-built docker image following the README.md from latetst master of today:

 …/audio/cd-ripping/whipper | whipper offset find -o 6
Checking device /dev/cdrom
eject: CD-ROM tray close command failed: Input/output error
ERROR:whipper.common.accurip:error retrieving AccurateRip entry: 404 Not Found <Response [404]>
WARNING:whipper.common.accurip:entry not found in AccurateRip database
Accuraterip entry not found
Trying read offset 6 ...
Traceback (most recent call last):      
  File "/usr/local/bin/whipper", line 11, in <module>
    load_entry_point('whipper==0.7.2', 'console_scripts', 'whipper')()
  File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.2-py2.7.egg/whipper/command/main.py", line 36, in main
    ret = cmd.do()
  File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.2-py2.7.egg/whipper/command/basecommand.py", line 139, in do
    return self.cmd.do()
  File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.2-py2.7.egg/whipper/command/basecommand.py", line 139, in do
    return self.cmd.do()
  File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.2-py2.7.egg/whipper/command/offset.py", line 140, in do
    c, i = match(archecksums, 1, responses)
  File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.2-py2.7.egg/whipper/command/offset.py", line 109, in match
    for i, r in enumerate(responses):
TypeError: 'NoneType' object is not iterable

@JoeLametta
Copy link
Collaborator

Happening also with a self-built docker image following the README.md from latetst master of today:
Isn't this image built on every new commit ? If not, please push a new build.

That image is built from the master branch, which I've decided starting with release v0.7.2 is going to be updated only when new tagged releases are ready to be published.
Pull requests are developed into feature/bugfix branches: if accepted those are merged into the development branch.
Just issue the following command:

docker pull joelametta/whipper:develop

😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Generic bug: can be used together with more specific labels
Projects
None yet
Development

No branches or pull requests

4 participants