Closed dreimer1986 closed 12 months ago
The requirements file I used which worked was:
isodate==0.6.0 boto3==1.9.216 ask-sdk-core==1.11.0 pydantic==1.10.4
The requirements file I used which worked was:
isodate==0.6.0 boto3==1.9.216 ask-sdk-core==1.11.0 pydantic==1.10.4
Then you did not use the most recent code. Otherwise you would get this one as expected:
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'sentry_sdk' Traceback (most recent call last):
Naa, I was trying to fix another issue and was trying to workout what one was needed, I used the requirements file from 0.10.1 which is the latest release, this is different to what is on the git repo though, but given I was looking at something else I relied on the released version:
Same for me, I replaced the HOME_ASSISTANT_URL with my URL and hit Deploy. And the deploy failed with below error.
Unfortunately, same here on a freshly imported git and followed wiki to the tee:
Fixed on master. Please use the new file
Well, sadly you did not. I made the changes as already explained (Quote from 1st post: "Shouldn't it be sentry-sdk instead of sentry? Regardless both cause the same error.") for a reason. This happens with the demanded version >= 1.32.0 of sentry-sdk:
It ONLY deploys fine here if you do NOT force a version and then it seems to load a not very recent one. Thus I had to change to the pre-1.17.0 variant of profiles_sample_rate. And you need to "import logging" regardless of that. (Source and proof: https://docs.sentry.io/platforms/python/integrations/logging/)
Updated the file, mind giving it a shot? Its very unstable rn and hasnt been tested but let me know. I would recommend using version 0.10.1. Master always contains unstable not fully tested stuff
Tested on my instance and its installing properly so its no longer an issue.
Confirmed working. Thx :D
Did you check our FAQ and Issue/PR for similar issues?
Contact Details
daniel.reimer@reactos.org
What happened?
I updated my Alexa Actions skill these days and first stumbled upon the missing sentry entry in reqirements.txt. You tried to fix that yesterday as it seems. First thing here. Shouldn't it be sentry-sdk instead of sentry? Regardless both cause the same error: Pip failed to install dependencies! Something wrong in your requirements.txt file!
If I change it from sentry>=1.32.0 to sentry-sdk it can be deployed, but then the logs are these:
See below.
If I comment out the three sentry imports and the new block a bit down below, the skill works fine, so it is not some faulty skill import in my case.
I fixed the problems.... SORT OF. I have no clue which sentry-sdk version Amazon adds here, but it works by adding
and changing the sentry block to the OLD variant here:
Why? Because even with the added missing import it then complains about "profiles_sample_rate" not existing which made me google a bit more and then finding out that it is a sign of a a bit older version being used.
I hope this helps you to get things working for everyone including me, as I have no idea if my hacking really passed anything useful over to you now. ^^
Version
e48aa69
What Alexa device are you using?
Echo, Echo Show
What other Alexa device are you using?
No response
Relevant log output