Comments (10)
@RhetTbull Thanks for the further feedback. I should have fixed the problem now. I have tested with Anaconda (Python 3.7 and 3.8) and Python 3.8 from Homebrew and all seems to work as expected now. I would really appreciate if you could pull the latest commit from hotfix/3.8-support
and test again.
Cheers!
from austin.
@P403n1x87 Success! hotfix/3.8-support
seems to work. I tried both the austin
and austin-tui
and both worked. One note: I did need to run with sudo
so perhaps worth a mention in the docs. Thanks for the quick fix!
from austin.
I'm experiencing the same thing:
[I] ➜ python --version
Python 3.8.2
[I] ➜ python -c "import platform; print(platform.mac_ver())"
('10.15.4', ('', '', ''), 'x86_64')
[I] ➜ austin --version
austin 1.0.0
[I] ➜ austin -o a.out ./test.py
[I] ➜ lsa -lah a.out
-rw-r--r--@ 1 rhet staff 0B May 14 07:09 a.out
Versions
- MacOS 10.15.4
- Python 3.8.2 (Anaconda)
- Austin 1.0.0
austin built from sources via:
git clone --depth=1 https://github.com/P403n1x87/austin.git
cd austin
gcc -O3 -Wall src/*.c -o src/austin
from austin.
Thanks for reporting this issue. I just realised that the README lacks some important information about Austin on MacOS. There is a good chance that this issue is being caused by System Integrity Protection. If the Python executable you are using resides in /usr/bin, then even sudo
won't help here, unless SIP is disabled. In order to avoid disabling SIP, the Python executable should live outside of /usr/bin (but the use of sudo
is still required). Hence, if the executable is in /usr/bin, may I ask you to run Austin from, e.g. within a virtual environment please (with sudo
)?
from austin.
I tried within a virtual env and using sudo, still same result. I am running in iTerm2 which already is set to "Full Disk Access" and "Developer Tools" in Settings | Security & Privacy.
[I] ➜ which python
/Users/rhet/opt/anaconda3/envs/osxphotos/bin/python
[I] ➜ sudo austin -o t.out ./test.py
[I] ➜ ls -lah t.out
-rw-r--r--@ 1 rhet staff 0B May 14 07:51 t.out
from austin.
Sure, austin python test.py | echo
still doesn't yield any output
austin-tui python test.py
doesn't crash but still doesn't show any output:
Looking at the CMD
output, it doesn't seem to use the python version I passed in when calling austin
:
The same is true, if I call the executable explicitly: sudo austin-tui ./.venv/bin/python test.py
from austin.
Thanks for the feedback. I will look into this as soon as I can.
from austin.
Hi there.
I have prepared a PR with a fix for this issue. May I ask you to try checking out the branch hotfix/3.8-support
and check that Austin now works as expected, please?
Thanks.
from austin.
I tried the hotfix on MacOS 10.15.4 but unfortunately still get the same results.
sudo austin /path/to/python t.py | echo
yields no output
sudo austin -o t.out /path/to/python t.py
runs but yields empty output file
and
sudo austin-tui /path/to/python t.py
runs but yields no output exactly as @larsrinn reported earlier in this thread
Tried both anaconda python 3.7 and 3.8
from austin.
Excellent! Thanks for testing and sharing the results. I have added a note in the resend about SIP on macOS.
from austin.
Related Issues (20)
- Using the extension HOT 4
- PackagesNotFoundError on conda installation HOT 1
- Python version inference can segfault
- Insufficient Permissions HOT 8
- austinp only builds on systems with a patched libbfd HOT 2
- Tracing a program running inside docker container may fail HOT 8
- austin 3.5.0 regression test failure HOT 8
- Can't run austin directly with python scripts HOT 20
- Can't run Austin against pyenv python distribution HOT 3
- Austin Windows installer does not uninstall older version
- Can't trace a program running inside docker container by pid or ppid HOT 17
- No samples collected HOT 6
- Can't run script with local package import HOT 1
- Feature request: Integrate Austin with python debugging functions in vscode extension HOT 1
- Update vscode extension docs to say what to do with task output options on run HOT 1
- VS code extension reports "profiling complete" for non-existent files HOT 1
- Feature Request: Call Austin programmatically HOT 1
- Processes not recognized as Python as Rasberry pi HOT 7
- austinp hanging on profiling numpy/scipy
- Dump list of local variables in `where` HOT 1
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 austin.