Skip to content

Prompt Engineering Forum

A Private Forum For Premium Users

Python Script crash...
 
Notifications
Clear all

Python Script crashes

12 Posts
3 Users
3 Likes
268 Views
Aerostan
(@aerostan)
Posts: 6
Active Member
Points: 25
Topic starter
 

Hi Guys

I am having problems with the script. Everything downloaded ok but when I pushed 'any key to continue' the Command screen just disappears. I've included a screenshot, just before I pushed the button. Any thoughts on where I've gone wrong?

Thanks, Stan

Python Script
 
Posted : 24/05/2023 8:24 am
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

This is how it works, you will find the pdf report in the script folder

 
Posted : 24/05/2023 10:27 am
Aerostan
(@aerostan)
Posts: 6
Active Member
Points: 25
Topic starter
 

@admin - I went back into the original folder and the only PDF was the one with the cost estimates via ChatGPT. Where else should I be looking?

 
Posted : 24/05/2023 11:35 am
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

@aerostan is the PDF empty, can you attach it here?

 
Posted : 24/05/2023 4:26 pm
Aerostan
(@aerostan)
Posts: 6
Active Member
Points: 25
Topic starter
 

Morning Hasan

I tried adding the PDF & the Report.py but I get a message on the screen saying 'Error: Filetype not allowed', however I took a snagit screenshot and it allowed it? See JPG below.

PDF Report

Β Thanks, Stan

 
Posted : 24/05/2023 8:35 pm
Aerostan
(@aerostan)
Posts: 6
Active Member
Points: 25
Topic starter
 

Hi Hasan

Any thoughts on the issues I'm facing? Or where I might have gone wrong?

Thanks, Stan

 
Posted : 26/05/2023 7:14 am
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

@aerostan did you add your openai API key?

 
Posted : 26/05/2023 1:13 pm
Aerostan
(@aerostan)
Posts: 6
Active Member
Points: 25
Topic starter
 

@admin Hi Hasan. See the screenshot. API Key was entered via Visual Studio. Is that the correct way? Or should I have entered it elsewhere?

Thanks, Stan

API Key Screenshot

Β 

 
Posted : 26/05/2023 10:51 pm
SSAdvisor
(@ssadvisor)
Posts: 263
Reputable Member
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
Points: 1056
 

@aerostan Yes, that is the correct file. I haven't tried Earthquake yet but I can read code. How are you executing this; in Visual Studio Code or in a command window? Is there anything else you changed? Why were you trying to attach the Report.py file?

P.S.: I hate Windows OS. Don't get me wrong I've used it for a long time but programming for it is a nightmare IMO. Currently I'm using a Google Pixel Go with ChromeOS and using the Linux layer for my development efforts.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
https://calendly.com/seasonedsolutionsadvisor

 
Posted : 27/05/2023 1:12 am
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

@aerostan Yeah that's right, are you familiar with code debugging in visual studio?

are you sure your openAAI account is working? it seems that the api is not returning any results

 
Posted : 27/05/2023 6:34 am
Aerostan
(@aerostan)
Posts: 6
Active Member
Points: 25
Topic starter
 

@admin @ssadvisorΒ  Hi Hasan & Earnie. Thank you both for your responses. As you can no doubt see I'm very new to Coding. Green like a traffic light.

So, late yesterday I sent a Help request to OpenAI and was advised they were aware of a bug that was causing issues on new accounts. Anyway I rebooted the computer this morning (I'm in Australia) and I'm pleased to say everything worked like a charm. I now have a functioning PDF on my chosen Topic.Β 

I appreciate you both reaching out to help. Cheers, Stan

This post was modified 4 months ago by Aerostan
 
Posted : 28/05/2023 1:10 am
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

@aerostan Great! happy to hear this

 
Posted : 28/05/2023 7:42 am

Share:
Take Your Digital Marketing Skills To The Next Level

Β© 2023 LearnWithHasan | All Rights Reserved.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

πŸ”΄ New Series Started: Programming With AI - RJP Technique
This is default text for notification bar