shreyashankar / gpt3-sandbox

The goal of this project is to enable users to create cool web demos using the newly released OpenAI GPT-3 API with just a few lines of Python.
MIT License
2.9k stars 884 forks source link

help with check the env #93

Open jiz17043 opened 2 years ago

jiz17043 commented 2 years ago

I have followed the set up but at the step of checking the environment by running python examples/run_latex_app.py, I came across the error as follows: I wonder if anyone could help solve it Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:417:16) at handleParseError (C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:471:10) at C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:503:5 at C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:358:12 at C:\Users\jiz52\gpt3-sandbox\node_modules\loader-runner\lib\LoaderRunner.js:373:3 at iterateNormalLoaders (C:\Users\jiz52\gpt3-sandbox\node_modules\loader-runner\lib\LoaderRunner.js:214:10) at iterateNormalLoaders (C:\Users\jiz52\gpt3-sandbox\node_modules\loader-runner\lib\LoaderRunner.js:221:10) C:\Users\jiz52\gpt3-sandbox\node_modules\react-scripts\scripts\start.js:19 throw err; ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:417:16) at C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:452:10 at C:\Users\jiz52\gpt3-sandbox\node_modules\webpack\lib\NormalModule.js:323:13 at C:\Users\jiz52\gpt3-sandbox\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at C:\Users\jiz52\gpt3-sandbox\node_modules\loader-runner\lib\LoaderRunner.js:233:18 at context.callback (C:\Users\jiz52\gpt3-sandbox\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at C:\Users\jiz52\gpt3-sandbox\node_modules\babel-loader\lib\index.js:59:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

Node.js v17.1.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

shreyashankar commented 2 years ago

I am not getting this error. Could you provide steps on how to reproduce?

jiz17043 commented 2 years ago

Hi, After I set up the environment variable to read the secret key, I run the code python examples/run_latex_app.py. Then a website came out but with nothing to display and in the anaconda shell shows the error message.

On Mon, Jan 24, 2022 at 8:50 PM Shreya Shankar @.***> wrote:

Message sent from a system outside of UConn.

I am not getting this error. Could you provide steps on how to reproduce?

— Reply to this email directly, view it on GitHub https://github.com/shreyashankar/gpt3-sandbox/issues/93#issuecomment-1020726537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQHMRWEHQOLFWRU7U5EAGTUXX6UPANCNFSM5MP7I6YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Sincerely, Jintao Zhang

​Jintao Zhang, Ph.D. candidate Department of Civil & Environmental Engineering University of Connecticut, Storrs, CT 06269

He/Him/His Mobile: (858)247-8401

shreyashankar commented 2 years ago

can you try to run with node v16?

jiz17043 commented 2 years ago

Could you give some more detailed steps explanations by running with node v16?

On Tue, Jan 25, 2022 at 1:03 AM Shreya Shankar @.***> wrote:

Message sent from a system outside of UConn.

can you try to run with node v16?

— Reply to this email directly, view it on GitHub https://github.com/shreyashankar/gpt3-sandbox/issues/93#issuecomment-1020840572, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQHMRTNJMWPJIT4OSR4P3TUXY4JVANCNFSM5MP7I6YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Sincerely, Jintao Zhang

​Jintao Zhang, Ph.D. candidate Department of Civil & Environmental Engineering University of Connecticut, Storrs, CT 06269

He/Him/His Mobile: (858)247-8401

shreyashankar commented 2 years ago

Downgrading your node version to v0.16 might work, as detailed here: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

jiz17043 commented 2 years ago

I could see the page showing Description and a button to submit. But when I clicked submit in the anaconda prompt it showed proxy error instead. The detailed error message is shown below: Proxy error: Could not proxy request /translate from localhost:3000 to http://localhost:5000/. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

On Tue, Jan 25, 2022 at 1:58 PM Shreya Shankar @.***> wrote:

Message sent from a system outside of UConn.

Downgrading your node version to v0.16 might work, as detailed here: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

— Reply to this email directly, view it on GitHub https://github.com/shreyashankar/gpt3-sandbox/issues/93#issuecomment-1021508173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQHMRW3VTOYOQJ6L67TGN3UX3XDTANCNFSM5MP7I6YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Sincerely, Jintao Zhang

​Jintao Zhang, Ph.D. candidate Department of Civil & Environmental Engineering University of Connecticut, Storrs, CT 06269

He/Him/His Mobile: (858)247-8401

How2RideABoar commented 1 year ago

I could see the page showing Description and a button to submit. But when I clicked submit in the anaconda prompt it showed proxy error instead. The detailed error message is shown below: Proxy error: Could not proxy request /translate from localhost:3000 to http://localhost:5000/. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED). On Tue, Jan 25, 2022 at 1:58 PM Shreya Shankar @.> wrote: Message sent from a system outside of UConn. Downgrading your node version to v0.16 might work, as detailed here: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported — Reply to this email directly, view it on GitHub <#93 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQHMRW3VTOYOQJ6L67TGN3UX3XDTANCNFSM5MP7I6YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.> -- Sincerely, Jintao Zhang ​Jintao Zhang, Ph.D. candidate Department of Civil & Environmental Engineering University of Connecticut, Storrs, CT 06269 He/Him/His Mobile: (858)247-8401

I changed localhost to 127.0.0.1 and that worked for me.