ethanchewy / PythonBuddy

1st Online Python Editor With Live Syntax Checking and Execution
https://pythonbuddy.com
BSD 3-Clause "New" or "Revised" License
277 stars 84 forks source link

KeyError: 'file_name' by clicking on the Run button #60

Closed LeonardoFurtado closed 3 years ago

LeonardoFurtado commented 3 years ago

Describe the bug When I start the app, my first test was click on Run button and I've received KeyError: 'file_name'. Before run the app, i've needed to update werkzeug to the last version cuz with the version in requirements.txt the app cannot be run

To Reproduce Steps to reproduce the behavior:

  1. start application with Flask run (werkzeug updated)
  2. Click on Run button
  3. open your terminal
  4. See error

Screenshots xxxx

Desktop (please complete the following information):

Additional context It happens on my Windows PC and Ubuntu too.

ethanchewy commented 3 years ago

Hmmm that's weird - I wasn't able to replicate this on my Linux OS. I'll try testing on Windows in the next few weeks.

Thanks for bringing this up!

ethanchewy commented 3 years ago

lmk if this change helps at all: https://github.com/ethanchewy/PythonBuddy/commit/7889f39acb624e5a146ac7a6052c83106ccf61ef

I think this has to do with socket io not working well in windows.

ethanchewy commented 3 years ago

Just double checking, you ran pip install -r requirements.txt

in your virtualenv before running PythonBuddy, right?

LeonardoFurtado commented 3 years ago

Just double checking, you ran pip install -r requirements.txt

in your virtualenv before running PythonBuddy, right?

yep, I've done all instalation steps, in both OS I can't run PythonBuddy before update werkzeug, I'll reinstall and try to run whitout update werkzeug and I'll post the error output here.

ethanchewy commented 3 years ago

@LeonardoFurtado thank you! I don't develop on Windows but I do have a Windows partition in my laptop so I'll test it out once I can as well.

LeonardoFurtado commented 3 years ago

lmk if this change helps at all: 7889f39

I think this has to do with socket io not working well in windows.

Oh, it works, PythonBuddy is throwing a pylint exception in the terminal, but I can still use the editor :). I can't post the exception message now because I don't remember what was written. As soon as I have some time, I'll post it here for you. TY

ethanchewy commented 3 years ago

@LeonardoFurtado thank you so much for taking time to dig through this. Appreciate it!

ethanchewy commented 3 years ago

@LeonardoFurtado lmk if pulling the most recent changes work! Thanks!

ethanchewy commented 3 years ago

Should be resolved.Please let me know if the above recent commits didn't fix it!