p403n1x87 / austin-tui Goto Github PK
View Code? Open in Web Editor NEWThe top-like text-based user interface for Austin
License: GNU General Public License v3.0
The top-like text-based user interface for Austin
License: GNU General Public License v3.0
I run the following command: austin-tui python train.py [arguments...]
Then I get the following message instead of the display screen shown in the README.
๐ Starting the Austin TUI ...
I know can see that the train script is running in the background since I have an external logger.
Austin version: 3.00 and my OS is CentOS 7 on Linux
I'm using pytorch in this script so I wonder if that's causing any problems
It would be cool if I'd be able to launch austin-tui
with no arguments, and get an option to choose between the Python processes active on my system. Faster than finding the PIDs by myself.
Pressing -
doesn't increase the threshold. Nothing happens.
I've tried with a couple of different examples, and threshold never seems to reduce. For example sudo austin-tui python -m rich.emoji
.
Expected behavior: Threshold % reduces
Actual behavior: Nothing
Reproduces how often: 100% - Tried on 3 different modules in the rich repo, always the same result.
austin 3.3.0
Monterrey 21.1 on M1 Macbook Pro
I saw that you use KeyboardInterrupt
in a bunch of places. Raising it and catching it. I've never seen it done that way in a long career of Python programming. Admittedly I haven't touched many async-await code, so maybe it's prevalent there?
In any case, are you sure it's a natural way to do flow control? Why does a quit signal need to be a KeyboardInterrupt
, can't you just make an exception class for that?
I'm unable to scroll the TUI horizontally
Expected behavior: [What you expect to happen]
I should be able to scroll to the right and left
Actual behavior: [What actually happens]
I can't get to the stuff on the right of the screen
Reproduces how often: [What percentage of the time does it reproduce?]
Every time
austin 3.4.1
austin-tui 1.2.0
MacOS 12.6
Hi, thanks for your work on Austin! I'm running it on some repos now and it's been enlightening
I'm getting an XMLSyntaxError
when I press S
to save results.
I'm running sudo austin-tui python -m rich
inside the repo https://github.com/Textualize/rich (on master
branch), and get the following error when I press the S
key to save the data:
Traceback (most recent call last):
File "/Users/darrenburns/.local/bin/austin-tui", line 8, in <module>
sys.exit(main())
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/__main__.py", line 179, in main
tui.run()
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/__main__.py", line 144, in run
self._view.close()
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/view/__init__.py", line 238, in close
task.result()
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/view/__init__.py", line 163, in _input_loop
self.on_exception(exc)
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/view/austin.py", line 64, in on_exception
self.callback(self.Event.EXCEPTION, exc)
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/__main__.py", line 119, in on_view_event
{
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/__main__.py", line 168, in on_exception
raise exc
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/view/__init__.py", line 161, in _input_loop
task.result()
File "/opt/homebrew/Cellar/[email protected]/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/controller.py", line 225, in _dump_stats
self.view.markup(f"Stats saved as <running>{filename}</running> ๐ ")
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/view/__init__.py", line 187, in markup
return markup(str(text), self.palette)
File "/Users/darrenburns/.local/pipx/venvs/austin-tui/lib/python3.10/site-packages/austin_tui/widgets/markup.py", line 162, in markup
root = etree.fromstring(f"<amRoot>{text}</amRoot>")
File "src/lxml/etree.pyx", line 3252, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1913, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1793, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 1
lxml.etree.XMLSyntaxError: Char 0x0 out of allowed range, line 1, column 2
Expected behavior: Data file to be saved to my filesystem
Actual behavior: Crash, with the exception above
Reproduces how often: 100% of the time
c:\Users\Administrator\Desktop>austin
Usage: austin [-aCefms?V] [-i n_us] [-o FILE] [-p PID] [-t n_ms] [-x n_sec]
[--alt-format] [--children] [--exclude-empty] [--full]
[--interval=n_us] [--memory] [--output=FILE] [--pid=PID]
[--sleepless] [--timeout=n_ms] [--exposure=n_sec] [--help]
[--usage] [--version] command [ARG...]
_ _
__ _ _ _ __| |_(_)_ _
/ _` | || (_-< _| | ' \
\__,_|\_,_/__/\__|_|_||_|
โกฦรฑรด austin version: 2.0.0
c:\Users\Administrator\Desktop>
c:\Users\Administrator\Desktop>austin-tui.exe -p 8600
๐ Starting the Austin TUI ...
โ Austin failed to start. Please make sure that the Austin binary is
available from the PATH environment variable and that the command line
arguments that you have provided are correct.
Python version is unknown.
When trying to start austin-tui, I get the following error. Any ideas why?
prompt$ austin-tui -Cp 4147221
Austin did not start properly.
/home/selim/.local/lib/python3.8/site-packages/austin_tui/main.py:178: RuntimeWarning: coroutine 'wait' was never awaited
pass
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
The TUI could be improved for modern terminal emulators byt adding sixel support and improving the way plots and other graphical elements are rendered.
This is a bunch of random user feedback from my first try of austin + austin-tui.
cd austin
.-h
doesn't say what unit the -i
option should be given in.Installed using pip install austin-tui
.
Versions:
austin-python==0.1.0
austin-tui==0.1.3
c:\Users\Administrator\Desktop>austin-tui.exe -p 8600
๐ Starting the Austin TUI ...
โ Austin failed to start. Please make sure that the Austin binary is
available from the PATH environment variable and that the command line
arguments that you have provided are correct.
c:\Users\Administrator\Desktop>python -m austin_tui -p 8600
๐ Starting the Austin TUI ...
โ Austin failed to start. Please make sure that the Austin binary is
available from the PATH environment variable and that the command line
arguments that you have provided are correct.
C:\Program Files\Python38\lib\site-packages\austin_tui\__main__.py:137: DeprecationWarning: Task.all_
tasks() is deprecated, use asyncio.all_tasks() instead
for task in asyncio.Task.all_tasks():
C:\Program Files\Python38\lib\site-packages\austin_tui\__main__.py:140: DeprecationWarning: Task.all_
tasks() is deprecated, use asyncio.all_tasks() instead
pending = [task for task in asyncio.Task.all_tasks() if not task.done()]
Just FYI, I've packaged austin-tui
(and austin-python
) on conda-forge, so now conda install -c conda-forge austin-tui
is probably the most convenient way to install austin-tui.
@P403n1x87 let me know if you want to be a maintainer on the feedstock, I can always add you :) Thanks for creating this package, austin is great!
e.g. first sentence of the synopsis could read
This Python TUI is a top-like text-based user interface for [Austin](https://github.com/P403n1x87/austin) (a Python frame stack sampler for CPython), written in pure Python.
I'm running Austin-tui 1.2.2 with Python 3.11.3. Any time I try to use any keyboard navigation it crashes with the following:
Traceback (most recent call last):
File "/home/me/.pyenv/versions/3.11.3/bin/austin-tui", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/__main__.py", line 175, in main
tui.run()
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/__main__.py", line 140, in run
self._view.close()
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/view/__init__.py", line 248, in close
task.result()
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/view/__init__.py", line 173, in _input_loop
self.on_exception(exc)
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/view/austin.py", line 67, in on_exception
self.callback(self.Event.EXCEPTION, exc)
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/__main__.py", line 115, in on_view_event
{
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/__main__.py", line 164, in on_exception
raise exc
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/site-packages/austin_tui/view/__init__.py", line 151, in _input_loop
done, pending = await asyncio.wait(
^^^^^^^^^^^^^^^^^^^
File "/home/me/.pyenv/versions/3.11.3/lib/python3.11/asyncio/tasks.py", line 415, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.
austin-tui test.py
Expected behavior:
Keyboard navigation to work
Actual behavior:
Crash
Reproduces how often:
100%
You can get this information from copy and pasting the output of austin --version
from the command line. Also, please include the OS and what version
of the OS you're running.
Austin 3.5.0
Python 3.11.3
Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
Any additional information, configuration or data that might be necessary to
reproduce the issue.
austin_tui can be smart enough to figure out where austin.exe is without requiring to add it to PATH, which is a bit invasive for just another tool in the toolbelt. One way to do it is by including a file ~/.austin which defines where the austin executable is, and then having austin_tui read that.
I run the following command: austin-tui -Cp [PID].
Then I got Frozen on ๐ Starting the Austin TUI ...
Reproduces how often:
happens every time
austin version
austin 3.5.0
austin-tui version
v1.2.2
OS
Windows 10
I have manually installed python-curses but it didn't help.
it works, if I trigger austin-tui -p [PID].
I'm using austin 3.5.0
I'm getting the message: "Astin did not start properly"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.