Closed jshen28 closed 3 years ago
Hello! Currently yappi does not support pypy
it only supports CPython
interpreter.
@sumerc I see the same issue on CPython (3.10.0rc1)
This is on Apple M1
(3ten) ctrahey@ChristophersMBP foo % python -c "import platform; print(platform.python_implementation())"
CPython
(3ten) ctrahey@ChristophersMBP foo % python -V
Python 3.10.0rc1
(3ten) ctrahey@ChristophersMBP foo % python -m pip install --no-cache-dir yappi
Collecting yappi
Downloading yappi-1.3.2.tar.gz (58 kB)
|████████████████████████████████| 58 kB 2.7 MB/s
Building wheels for collected packages: yappi
Building wheel for yappi (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/ctrahey/.pyenv/versions/3ten/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/setup.py'"'"'; __file__='"'"'/private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-wheel-rrt68x6w
cwd: /private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/
Complete output (22 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.3-arm64-3.10
copying yappi/yappi.py -> build/lib.macosx-11.3-arm64-3.10
running build_ext
building '_yappi' extension
creating build/temp.macosx-11.3-arm64-3.10
creating build/temp.macosx-11.3-arm64-3.10/yappi
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/ctrahey/.pyenv/versions/3ten/include -I/Users/ctrahey/.pyenv/versions/3.10.0rc1/include/python3.10 -c yappi/_yappi.c -o build/temp.macosx-11.3-arm64-3.10/yappi/_yappi.o
yappi/_yappi.c:1261:9: error: no member named 'use_tracing' in 'struct _ts'
ts->use_tracing = 1;
~~ ^
yappi/_yappi.c:1292:9: error: no member named 'use_tracing' in 'struct _ts'
ts->use_tracing = 1;
~~ ^
yappi/_yappi.c:1309:9: error: no member named 'use_tracing' in 'struct _ts'
ts->use_tracing = 0;
~~ ^
3 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for yappi
Running setup.py clean for yappi
Failed to build yappi
Installing collected packages: yappi
Running setup.py install for yappi ... error
ERROR: Command errored out with exit status 1:
command: /Users/ctrahey/.pyenv/versions/3ten/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/setup.py'"'"'; __file__='"'"'/private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-record-d9e1e4fa/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ctrahey/.pyenv/versions/3ten/include/site/python3.10/yappi
cwd: /private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/
Complete output (22 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-11.3-arm64-3.10
copying yappi/yappi.py -> build/lib.macosx-11.3-arm64-3.10
running build_ext
building '_yappi' extension
creating build/temp.macosx-11.3-arm64-3.10
creating build/temp.macosx-11.3-arm64-3.10/yappi
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/ctrahey/.pyenv/versions/3ten/include -I/Users/ctrahey/.pyenv/versions/3.10.0rc1/include/python3.10 -c yappi/_yappi.c -o build/temp.macosx-11.3-arm64-3.10/yappi/_yappi.o
yappi/_yappi.c:1261:9: error: no member named 'use_tracing' in 'struct _ts'
ts->use_tracing = 1;
~~ ^
yappi/_yappi.c:1292:9: error: no member named 'use_tracing' in 'struct _ts'
ts->use_tracing = 1;
~~ ^
yappi/_yappi.c:1309:9: error: no member named 'use_tracing' in 'struct _ts'
ts->use_tracing = 0;
~~ ^
3 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ctrahey/.pyenv/versions/3ten/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/setup.py'"'"'; __file__='"'"'/private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-install-7k6gtf97/yappi_2a59af5e929c4a3a976c0090b386ac9f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/p_/32g2_q1x46vc7rprbnklt5c40000gn/T/pip-record-d9e1e4fa/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ctrahey/.pyenv/versions/3ten/include/site/python3.10/yappi Check the logs for full command output.
This looks like the breaking change, but might be an easy fix: use_tracing has moved to a new struct called cframe, and this _ts struct has replaced use_tracing with a pointer to this new cframe type.
Hello! Currently yappi does not support
pypy
it only supportsCPython
interpreter.
Hey tried installing Cpython then yappi but the issue still persists, this is on Windows
hello, I am trying to install yappi from pypy, but unfortunately got the following error logs,
any idea how to fix it? thank you