#๐Ÿ”’ Program is crashing

17 messages ยท Page 1 of 1 (latest)

potent orchid
#

My program works fine in Editor but the packaged version crashes as soon as I put in all the values! I am very new to python.

upbeat stormBOT
#

@potent orchid

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

potent orchid
#

Program is crashing without error

echo falcon
#

!paste

upbeat stormBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

potent orchid
#

@echo falcon

House_Length_m = input("Give the wanted Length of your House!>>")

House_Width_m = input("Give the wanted Width of your House!>>")

Storys_High = input("Give the wanted anmount of storys of your House!>>")

Base_Dimensions = input("Give the square dimensions of your base wall>>")

Roof_Dimensions = input("Give the length dimensions of your roof>>")

Length_Segments = float(House_Length_m) / float(Base_Dimensions)

Width_Segments = float(House_Width_m) / float(Base_Dimensions)

HeightSegments = float(Storys_High) / float(Base_Dimensions)

Horizontal_Roof_Segments = float(House_Length_m) / float(Roof_Dimensions)

L = Length_Segments

W = Width_Segments

H = HeightSegments

R = Horizontal_Roof_Segments

print("Anmount Of Square Length Segments=")

print("Anmount Of Square Width Segments=")

print("Anmount Of Square Height Segments=")

print("Anmount Of Horizontal Roof Segments=")

echo falcon
#

and are you sure its crashing it could just be exiting because its done

potent orchid
echo falcon
#

add a empty input() statement at the end

potent orchid
#

lol thanks I really didnt know it would just exit

echo falcon
#

yeah it does that lol

potent orchid
#

Have been strugelling with that for 30 min lol

#

I tought it was because of pyinstaller since I did custom System variables and dont know what I'm doing. Thanks again

echo falcon
#

No problem!

upbeat stormBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.