Closed ghost closed 5 years ago
Restart the server and refresh the home page in the browser.
I did, no change. This is with import birdseye.trace_module_deep
ps aux | grep python
.http://localhost:7777
now results in an error.python -m birdseye.clear_db
.~/.birdseye.db
for good measure.http://localhost:7777
now results in a page with no calls or functions.If you still get the error, please share:
Right now I don't have enough information to reproduce this.
I reproduced on another computer. The error occurred if I click on a link, go back to homepage, 4 times.
Homepage looks like:
cata.py s fm cat cf Execution of module
Code:
import birdseye.trace_module_deep
def fm(f, data):
if isinstance(data, list):
return [f(x) for x in data]
return data
def cat(f, data):
def cf(x):
return cat(f, x)
return f(fm(cf, data))
def s(data):
if isinstance(data, list):
return sum(data)
return data
values = [[[1, 2], [20]], [300]]
result = cat(s, values)
print(result)
Thanks for your efforts! I appreciate you taking the time to figure this out with me.
Unfortunately I still can't reproduce it with any amount of clicking, using that exact code and my homepage looking just like that.
Please share the exact actions. Which link are you clicking? Does going back to the homepage mean clicking the browser back button?
Once you see the error, what does it take to make it go away?
Is it always that same traceback?
Is Flask showing any other logs? Can you share them?
I've reproduced on a server I can provide access to if you'd like to investigate further. Perhaps the simplest way is if you'd like to share an ssh public key I can authorize it and post the connection info.
Awesome! Here you go:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC3CDoZExgKf+6qmdxmdnsXqv/4aVa9BIqsKwDyCYA83P8lcZiGZmCae4kKphS0ecbtaEkZtwkqHy9SCgzFTCrY1XOfPWFy9QmFCA0/tvUNUZcDV7Lw+4UuG/AxQBnKFd4TBXUzm+xYxBAXj3fe5PJ5d0sWtKRPHxFyGGokKlyiUY+IcwV8N+tKLQ43Krx0ZGXjQ3V6NdG8XaPCz70VbGo5o/0SrapSXb/LbBb+/G+ZUaYlIsPw+XNzVGJq2ONjj8S/ruMySJ3WjTIZwm/cpP4BeiLHiEIi1KDhFn/xNFmmbFQBX0VvmSY+UQ/wTgL6MhhkyP4DOP66KQj1PN7T4wM0E3FXJ6bS7y/wt4G9OeAL/wq4l6wAExymVJKUQH8bkN3uNQ+fYhfiNwqONZzF9YD70+n3oXRrbhe/PSUr2+CRRXXUoZStKiMknV6dd8pfIE7YjNY/18ZTF04vwnW0eqTfFT5hGyJKLdKQ/aFCnQ6cNn9tAf4h7VAa5gRD+pnpujoHhPAXDvpY65dQmIHFNIFs5jxOCJrGbNRFZpFv0/TexeNTGCtE6op+vKs3YZi6PmVDuWYtwKwYnCzkZwA28G2nZo/o8jH/OrlENLjJSXYevqVuxxA1XkMYPStZtGO3701HjpylMGYNohKJsziuyh4mHKcfCTnpRzUjBjVu6292Kw== alex.mojaki@gmail.com
Birdseye is currently executing in a virtualenv. Please try ssh user@46.101.144.229
This is how all bug reports should be done!
I've found the problem, it's about absolute paths and tracing modules. Will push out a fix soon.
Thanks again.
OK, upgrade and give it a go.
Works great, thanks!
After running
python -m birdseye.clear_db
and executing the program again, I'm now getting this exception when I click on a function from the front page.birdseye 0.8.1 python 3.6.5 ubuntu 18.04