This topic was automatically generated from Slack. You can find the original thread here.
hello
how to use SpeechRecognition · PyPI ?
I tried to import in several ways and the error always occurs: read ECONNRESET
This topic was automatically generated from Slack. You can find the original thread here.
hello
how to use SpeechRecognition · PyPI ?
I tried to import in several ways and the error always occurs: read ECONNRESET
Hi , you’d need to add this code comment on top of your Python action
# pipedream add-package SpeechRecognition
It’s because Pipedream’s package installation uses the pipreqs
package to detect package imports and install the associated package for you. And this package uses an import
name that differs from their PyPI name.
I’ve tested this an successfully import the library as the image below
hi how are you ? thanks, but here still with error:
I have just tested again and I couldn’t reproduce your issue. Could you create a new Python action and paste in the code of mine to test?
# pipedream add-package SpeechRecognition
import speech_recognition as sr
def handler(pd: "pipedream"):
print(sr)
now it worked, I had to delete the workflow and create a new one
thanks