Comments (12)
amazing!!
issue resolved
from birdseye.
Can you share more details?
from birdseye.
Running in WSL (Ubuntu 22.04)
real location of file:
/home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py
link in birdseye:
result:
404 (not found)
changing link manually to http://127.0.0.1:7777/file/Datasource.py/__function__/Datasource.get_users
result
File "/home/maks/PycharmProjects/backoffice/.venv/lib/python3.10/site-packages/birdseye/db.py", line 241, in wrapper
return func(session, *args, **kwargs)
File "/home/maks/PycharmProjects/backoffice/.venv/lib/python3.10/site-packages/birdseye/server.py", line 124, in func_view
func = session.query(Function).filter_by(file=path, name=func_name)[0]
File "/home/maks/PycharmProjects/backoffice/.venv/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2551, in __getitem__
return orm_util._getitem(
File "/home/maks/PycharmProjects/backoffice/.venv/lib/python3.10/site-packages/sqlalchemy/orm/util.py", line 2195, in _getitem
return list(iterable_query[item : item + 1])[0]
IndexError: list index out of range
trying http://127.0.0.1:7777/file/Datasource.py
result:
from birdseye.
the data in .birdseye.db present and viewable
from birdseye.
I don't think using just Datasource.py
as the file path is helpful. The last link isn't actually working in any sense, you could put any filename there and it would show a similar page. The question is why the first link is giving 404.
I'm not familiar with WSL. Are you running both the original Python program and the birdseye server within Ubuntu? What happens if you run one or both directly in Windows?
What do you see in .birdseye.db
?
from birdseye.
both running inside of WSL.
sqlite> .tables
call function keyvalue
in function table things like this:
2|/home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py|Datasource.__init__|function|
maybe this important - i`m running in poetry venv
tried running birdseye server on windows copying .birdseye.db to user directory - still the same behavior (non working links)
db it self viewable and looks correct (cant upload it as too much sensitive data inside)
from birdseye.
I assume there's a row in the DB that says /home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py|Datasource.get_users|function|
?
Can you edit this file and print(path, func_name)
before that line?
File "/home/maks/PycharmProjects/backoffice/.venv/lib/python3.10/site-packages/birdseye/server.py", line 124, in func_view
func = session.query(Function).filter_by(file=path, name=func_name)[0]
from birdseye.
here content of function table
added print, but nothing in output
I tried to move print out of if\else
@db.provide_session
def func_view(session, path, func_name):
path = fix_abs_path(path)
query = get_calls(session, path, func_name, 200)
print(path, func_name)
if query:
func = query[0]
calls = [withattrs(Call(), **row._asdict()) for row in query]
else:
func = session.query(Function).filter_by(file=path, name=func_name)[0]
calls = None
return render_template('function.html',
func=func,
short_path=basename(path),
calls=calls)
but still nothing in output
from birdseye.
What if you visit http://127.0.0.1:7777/file/home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py/__function__/Datasource.get_users ?
from birdseye.
INFO:werkzeug:127.0.0.1 - - [16/Oct/2023 22:57:48] "GET /file//home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py/__function__/Datasource.get_users HTTP/1.1" 404 -
INFO:werkzeug:127.0.0.1 - - [16/Oct/2023 22:57:52] "GET /file//home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py/__function__/Datasource.__init__ HTTP/1.1" 404 -
INFO:werkzeug:127.0.0.1 - - [16/Oct/2023 23:03:22] "GET /file/home/maks/PycharmProjects/backoffice/to_dockerBB/Datasource.py/__function__/Datasource.get_users HTTP/1.1" 404 -
from birdseye.
OK, I was able to reproduce locally once I did a fresh install. There was an update to werkzeug's routing that broke things. Will release a fix soon.
from birdseye.
released 0.9.5, give it a go
from birdseye.
Related Issues (20)
- Migrate from Travis to Github Actions
- Feature request: Debug Adapter Protocol (DAP) support. HOT 1
- Expressions inside f-strings don't get observed HOT 1
- Coroutines not supported ? HOT 1
- No module named 'birdseye', windows 10, jupyter lab HOT 4
- Schema out of date HOT 2
- IndexError: list index out of range HOT 11
- http://localhost:7777/ipython_call rejected conection HOT 3
- Async function tracing HOT 1
- Compatability with python 3.8 HOT 3
- setting host argument to localhost by default may not work for macOS HOT 2
- Cannot trace a module and use @eye at the same time
- Include license file in PyPI package
- Hide slices in 3.9
- sqlalchemy dependency should be pinned to < 1.4 HOT 2
- NodeValue.expression fails on DataFrame objects HOT 2
- Tracing within an exec'd string does not work HOT 6
- Feature request: recursively trace calls within traced function HOT 1
- IPython extension gives ImportError: cannot import name 'ThreadingMixIn' from 'werkzeug.serving' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birdseye.