question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

about_artist.py doe snot work

See original GitHub issue

Hi, I love this code but while testing it I found out that about_artist.py, regardless the id I use, always returns

DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() Traceback (most recent call last): File "C:\Development\Sampler\Python\get_artist_by_id.py", line 16, in <module> loop.run_until_complete(main()) File "C:\Users\nicola\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete return future.result() File "C:\Development\Sampler\Python\get_artist_by_id.py", line 9, in main serialized = Serialize.artist(about_artist) File "C:\Users\nicola\AppData\Local\Programs\Python\Python310\lib\site-packages\shazamio\serializers.py", line 23, in artist return FACTORY_ARTIST.load(data, Union[ArtistV2, ArtistInfo]) File "C:\Users\nicola\AppData\Local\Programs\Python\Python310\lib\site-packages\dataclass_factory\factory.py", line 222, in load return self.parser(class_)(data) File "C:\Users\nicola\AppData\Local\Programs\Python\Python310\lib\site-packages\dataclass_factory\parsers.py", line 99, in union_parser raise UnionParseError("No suitable parsers in union found for%s" % data, errors) dataclass_factory.exceptions.UnionParseError: No suitable parsers in union found for {‘message’: ‘Not found’}` Suberrors:

  • get_complex_parser.<locals>.complex_parser: ArtistV2.init() missing 1 required positional argument: ‘artist’
  • get_complex_parser.<locals>.complex_parser: ArtistInfo.init() missing 2 required positional arguments: ‘name’ and ‘verified’`

I installed python 3.16 and latest Shazamio library. I think the URL https://www.shazam.com/discovery/v3/en/GB/web/artist is not valid anymore.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolad76commented, Oct 17, 2022

sorry to hear that. No rush for me of course. Take your time.

1reaction
nicolad76commented, Sep 28, 2022

@nicolad76,

Does this look normal to you as a user? Depending on the (views, extends) params model will either include the required data or not.

This looks perfect to me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confusion about Artist place in matplotlib hierarchy
The problem is that, by reading the official documentation, I also encountered the notions of Backends and Artists.
Read more >
"Artist" in Matplotlib - something I wanted to know before ...
In this post, I would like to share some basic knowledge about Artist objects in matplotlib which would prevent you from spending hours...
Read more >
About - Artist Cass Womack
Cass has devoted her life to education and the arts. After teaching programming and animation for 4 years and working another 10 as...
Read more >
7 important things to know about artist signatures - Christie's
'It's a way of saying, “That piece is complete, don't rework it”. ... Either a painting has been created to imitate an artist's...
Read more >
How Do I Research My Art? | Smithsonian American Art Museum
For answers, be prepared for a little detective work. We hope these tips and resources will help you begin, but remember that these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found