Coder Social home page Coder Social logo

install yappi by pypy about yappi HOT 4 CLOSED

sumerc avatar sumerc commented on September 24, 2024
install yappi by pypy

from yappi.

Comments (4)

sumerc avatar sumerc commented on September 24, 2024

Hello! Currently yappi does not support pypy it only supports CPython interpreter.

from yappi.

ctrahey avatar ctrahey commented on September 24, 2024

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

from yappi.

ctrahey avatar ctrahey commented on September 24, 2024

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.

from yappi.

EKivutha avatar EKivutha commented on September 24, 2024

Hello! Currently yappi does not support pypy it only supports CPython interpreter.

Hey tried installing Cpython then yappi but the issue still persists, this is on Windows

from yappi.

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.