Answer the question
In order to leave comments, you need to log in
Does an error occur when converting a python program using eel to exe?
I created this python script:
import eel
import pyowm
# api key
owm = pyowm.OWM ( '80e8e723ef945c291f4661f5898f93e0',language = "RU" )
@eel.expose
def get_weather(place):
#owm
observation = owm.weather_at_place(place)
Observation = weather = observation.get_weather()
#temp
Temp = weather.get_temperature('celsius')['temp']
#status
Status = weather.get_detailed_status()
return "В городе "+place+' температура '+str(Temp)+' °С ,' + Status
#eel
eel.init("web")
eel.start("main.html", size=(500 , 550))
Error: 404 Not Found
Sorry, the requested URL 'http://localhost:8000/main.html' caused an error:
File does not exist.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question