Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pyscript doesn't recognise library #215

Answered by rjvbeek
rjvbeek asked this question in Q&A
Discussion options

Hi,

I'm playing around with some triggers based on data from my PSN account (like online status), using the PSNAWP library. I have a script which runs fine locally, runs fine via the HASS terminal (SSH add-on), but it throws an error when I make it into a service:

Exception in <file.psn.psn_availability> line 3: from psnawp_api import psnawp ^ ModuleNotFoundError: No module named 'psnawp_api'

It looks like pyscript cannot find the installed library, any ideas on why this is failing?

Thanks in advance!

You must be logged in to vote

I managed to fix this by adding the library PLUS VERSION in the pyscript/requirements.txt file. I tried various values in there before it finally worked. Running into another issue now, but I'll try to solve that myself first ;)

Replies: 1 comment 1 reply

Comment options

I managed to fix this by adding the library PLUS VERSION in the pyscript/requirements.txt file. I tried various values in there before it finally worked. Running into another issue now, but I'll try to solve that myself first ;)

You must be logged in to vote
1 reply
Comment options

You have, no idea, how long I was looking for this answer. I tried RTFM like 50 times and didn't seem to understand this piece of it.

Thank you. Thank you. Thank you.

Especially thank you for coming back and saying how you fixed it. I owe you, like so many beers.

Answer selected by rjvbeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /