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

Cannot use tool due to [AttributeError: 'NoneType' object has no attribute 'find'] #87

Open
xU77654x opened this issue Nov 15, 2023 · 1 comment

Comments

@xU77654x
Copy link

I'm using Fedora 38 with Python 3.11.6 installed. I run the command python khinsider.py xenoblade in the master khinsider folder, and the song list fails.

[username@fedora khinsider-master]$ python khinsider.py xenoblade
Getting song list...

An unexpected error occurred! If it isn't too much to ask, please report to https://github.com/obskyr/khinsider/issues.
Attach the following error message:

Traceback (most recent call last):
  File "/home/username/Documents/khinsider-master/khinsider.py", line 591, in <module>
    sys.exit(doIt())
             ^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 535, in doIt
    success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=True)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 410, in download
    return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 322, in download
    for song in self.songs:
                ^^^^^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 149, in lazyVersion
    setattr(self, attrName, func(self))
                            ^^^^^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 285, in songs
    table = self._contentSoup.find('table', id='songlist')
            ^^^^^^^^^^^^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 149, in lazyVersion
    setattr(self, attrName, func(self))
                            ^^^^^^^^^^
  File "/home/username/Documents/khinsider-master/khinsider.py", line 268, in _contentSoup
    if contentSoup.find('p').string == "No such album":
       ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find'

I don't know if there's anything else that I should be doing here. This used to work for me in the past, but now it isn't working. Maybe the script needs to be re-written due to updates on the site itself?

@martin-irwin
Copy link

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants