Messagebox is shown correctly only once
Trying to put Ctk Messageboxes in my code so that users get some sort of response from the program. For some reason, the messagebox is shown correctly only once, the first time I run the program, then this happens:
def fetch_data_url(self):
url = self.app_frame.insert_url.get()
response = requests.get(url)
if response.status_code == 200:
soup = BeautifulSoup(response.content, 'html.parser')
tables = soup.find_all('table')
for i, table in enumerate(tables):
df = pd.read_html(str(table))[0]
self.df_list.append(df)
CTkMessagebox(message="Data successfully fetched from URL",
icon="check", option_1="OK")
Anybody knows about this error? Is there something I could change? I first suspected my python version for be outdated, but it is very weird that the first time, it displayes correctly.
As I have seen now, the IDE also throws a warning:
Still, I am not sure why this works the first instance
Hey, just wanted to report that I'm facing the same issue when using a jupyter file. The first time I run the code it works just fine. When i stop the code and start it again, it doesn't work anymore, as show above. I also get the same error. I always have to restart the kernel to get it to work again. In a regular python file it works, only occurs in a jupyter file to me
Using Jupyter Notebook as well. I did not test it in a regular python file, did not think this could be an Jupyter issue. But maybe this is it.
They managed to solve it, it happens to me in spyder, restarting the kernel in visual studio code, no, but it's something like the cache that keeps images in cache, the creator should solve that, not always store them, load them.