Git Product home page Git Product logo

Comments (10)

P403n1x87 avatar P403n1x87 commented on August 23, 2024 1

@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.

RhetTbull avatar RhetTbull commented on August 23, 2024 1

@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.

RhetTbull avatar RhetTbull commented on August 23, 2024

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.

P403n1x87 avatar P403n1x87 commented on August 23, 2024

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.

RhetTbull avatar RhetTbull commented on August 23, 2024

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.

larsrinn avatar larsrinn commented on August 23, 2024

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:
grafik

Looking at the CMD output, it doesn't seem to use the python version I passed in when calling austin:
grafik

The same is true, if I call the executable explicitly: sudo austin-tui ./.venv/bin/python test.py

from austin.

P403n1x87 avatar P403n1x87 commented on August 23, 2024

Thanks for the feedback. I will look into this as soon as I can.

from austin.

P403n1x87 avatar P403n1x87 commented on August 23, 2024

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.

RhetTbull avatar RhetTbull commented on August 23, 2024

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.

P403n1x87 avatar P403n1x87 commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.