vmprof / vmprof-python

vmprof - a statistical program profiler
https://vmprof.readthedocs.io
Other
432 stars 55 forks source link

Please release new version to pypi (python 3.10 issue) #240

Closed om26er closed 11 months ago

om26er commented 3 years ago

The currently released version cannot be install from pypi when using python 3.10. However installation from master branch is possible. Please upload a new release. Below is the log I see when installing frmom pypi

(venv) om26er@HomePC:~/scm/crossbario/crossbar$ pip install vmprof
Collecting vmprof
  Using cached vmprof-0.4.15.tar.gz (289 kB)
Requirement already satisfied: requests in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from vmprof) (2.25.1)
Requirement already satisfied: six in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from vmprof) (1.15.0)
Requirement already satisfied: pytz in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from vmprof) (2021.1)
Requirement already satisfied: colorama in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from vmprof) (0.4.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from requests->vmprof) (1.26.5)
Requirement already satisfied: certifi>=2017.4.17 in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from requests->vmprof) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from requests->vmprof) (2.5)
Requirement already satisfied: chardet<5,>=3.0.2 in /home/om26er/scm/foobar/markhor/venv/lib/python3.10/site-packages (from requests->vmprof) (4.0.0)
Building wheels for collected packages: vmprof
  Building wheel for vmprof (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/om26er/scm/foobar/markhor/venv/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/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 /tmp/pip-wheel-qgbde0ha
       cwd: /tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/
  Complete output (216 lines):
  running bdist_wheel
  running build
  running build_py
  checking build system type... x86_64-pc-linux-gnu
  checking host system type... x86_64-pc-linux-gnu
  checking target system type... x86_64-pc-linux-gnu
  checking for gcc... gcc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables...
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking how to run the C preprocessor... gcc -E
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking minix/config.h usability... no
  checking minix/config.h presence... no
  checking for minix/config.h... no
  checking whether it is safe to define __EXTENSIONS__... yes
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  /bin/bash: /tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/src/libbacktrace/missing: No such file or directory
  configure: WARNING: `missing' script is too old or missing
  checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking for gcc... (cached) gcc
  checking whether we are using the GNU C compiler... (cached) yes
  checking whether gcc accepts -g... (cached) yes
  checking for gcc option to accept ISO C89... (cached) none needed
  checking for ranlib... ranlib
  checking for gawk... (cached) gawk
  checking how to print strings... printf
  checking for a sed that does not truncate output... /usr/bin/sed
  checking for fgrep... /usr/bin/grep -F
  checking for ld used by gcc... /usr/bin/ld
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  checking the name lister (/usr/bin/nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 1572864
  checking whether the shell understands some XSI constructs... yes
  checking whether the shell understands "+="... yes
  checking for /usr/bin/ld option to reload object files... -r
  checking for objdump... objdump
  checking how to recognize dependent libraries... pass_all
  checking for ar... ar
  checking for strip... strip
  checking for ranlib... (cached) ranlib
  checking command to parse /usr/bin/nm -B output from gcc object... ok
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if gcc supports -fno-rtti -fno-exceptions... no
  checking for gcc option to produce PIC... -fPIC -DPIC
  checking if gcc PIC flag -fPIC -DPIC works... yes
  checking if gcc static flag -static works... yes
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.o... (cached) yes
  checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  checking whether -lc should be explicitly linked in... no
  checking dynamic linker characteristics... GNU/Linux ld.so
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... yes
  checking whether to build static libraries... yes
  checking unwind.h usability... yes
  checking unwind.h presence... yes
  checking for unwind.h... yes
  checking for _Unwind_Backtrace... yes
  checking for -funwind-tables option... yes
  checking for -frandom-seed=string option... yes
  checking whether gcc supports -W... yes
  checking whether gcc supports -Wall... yes
  checking whether gcc supports -Wwrite-strings... yes
  checking whether gcc supports -Wstrict-prototypes... yes
  checking whether gcc supports -Wmissing-prototypes... yes
  checking whether gcc supports -Wold-style-definition... yes
  checking whether gcc supports -Wmissing-format-attribute... yes
  checking whether gcc supports -Wcast-qual... yes
  checking for _Unwind_GetIPInfo... yes
  checking __sync extensions... yes
  checking __atomic extensions... yes
  checking output filetype... elf64
  looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
  checking for uintptr_t... yes
  checking for int_least32_t... yes
  checking for int_fast32_t... yes
  checking for uint64_t... yes
  checking what to include in gstdint.h... stdint.h (already complete)
  checking sys/mman.h usability... yes
  checking sys/mman.h presence... yes
  checking for sys/mman.h... yes
  checking for mmap... yes
  checking link.h usability... yes
  checking link.h presence... yes
  checking for link.h... yes
  checking for dl_iterate_phdr... yes
  checking for fcntl... yes
  checking whether strnlen is declared... yes
  checking for getexecname... no
  checking whether tests can run... yes
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating backtrace-supported.h
  config.status: creating config.h
  config.status: config.h is unchanged
  config.status: executing libtool commands
  sed: can't read ./ltmain.sh: No such file or directory
  sed: can't read ./ltmain.sh: No such file or directory
  mv: cannot stat 'libtoolT': No such file or directory
  cp: cannot stat 'libtoolT': No such file or directory
  chmod: cannot access 'libtool': No such file or directory
  config.status: executing gstdint.h commands
  config.status: executing default commands
  creating build
  creating build/lib.linux-x86_64-3.10
  creating build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/upload.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/constants.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/query.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/merge_point.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/parser.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/prettyprinter.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/__init__.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/marks.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/__main__.py -> build/lib.linux-x86_64-3.10/jitlog
  copying jitlog/objects.py -> build/lib.linux-x86_64-3.10/jitlog
  creating build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/upload.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/cli.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/profiler.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/__init__.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/__main__.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/stats.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/reader.py -> build/lib.linux-x86_64-3.10/vmprof
  copying vmprof/show.py -> build/lib.linux-x86_64-3.10/vmprof
  creating build/lib.linux-x86_64-3.10/vmshare
  copying vmshare/__init__.py -> build/lib.linux-x86_64-3.10/vmshare
  copying vmshare/binary.py -> build/lib.linux-x86_64-3.10/vmshare
  copying vmshare/service.py -> build/lib.linux-x86_64-3.10/vmshare
  running build_ext
  building '_vmprof' extension
  creating build/temp.linux-x86_64-3.10
  creating build/temp.linux-x86_64-3.10/src
  creating build/temp.linux-x86_64-3.10/src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/_vmprof.c -o build/temp.linux-x86_64-3.10/src/_vmprof.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  src/_vmprof.c: In function ‘emit_code_object’:
  src/_vmprof.c:68:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     68 |     co_name = PyUnicode_AsUTF8(co->co_name);
        |             ^
  src/_vmprof.c:71:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     71 |     co_filename = PyUnicode_AsUTF8(co->co_filename);
        |                 ^
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/compat.c -o build/temp.linux-x86_64-3.10/src/compat.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/backtrace.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/backtrace.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/dwarf.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/dwarf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/elf.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/elf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/fileline.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/fileline.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/mmap.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/mmap.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/mmapio.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/mmapio.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/posix.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/posix.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/sort.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/sort.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/state.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/state.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/machine.c -o build/temp.linux-x86_64-3.10/src/machine.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/symboltable.c -o build/temp.linux-x86_64-3.10/src/symboltable.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/vmp_stack.c -o build/temp.linux-x86_64-3.10/src/vmp_stack.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  In file included from /usr/include/python3.10/bytesobject.h:62,
                   from /usr/include/python3.10/Python.h:95,
                   from src/vmprof.h:6,
                   from src/vmp_stack.h:3,
                   from src/vmp_stack.c:1:
  src/vmp_stack.c: In function ‘_write_python_stack_entry’:
  src/vmp_stack.c:102:47: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_lnotab’
    102 |         lnotab = PyStr_AS_STRING(frame->f_code->co_lnotab);
        |                                               ^~
  /usr/include/python3.10/cpython/bytesobject.h:33:53: note: in definition of macro ‘PyBytes_AS_STRING’
     33 |                                 (((PyBytesObject *)(op))->ob_sval))
        |                                                     ^~
  src/vmp_stack.c:102:18: note: in expansion of macro ‘PyStr_AS_STRING’
    102 |         lnotab = PyStr_AS_STRING(frame->f_code->co_lnotab);
        |                  ^~~~~~~~~~~~~~~
  In file included from /usr/include/python3.10/Python.h:87,
                   from src/vmprof.h:6,
                   from src/vmp_stack.h:3,
                   from src/vmp_stack.c:1:
  src/vmp_stack.c:108:52: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_lnotab’
    108 |             len = (int)PyStr_GET_SIZE(frame->f_code->co_lnotab);
        |                                                    ^~
  /usr/include/python3.10/object.h:121:47: note: in definition of macro ‘_PyVarObject_CAST’
    121 | #define _PyVarObject_CAST(op) ((PyVarObject*)(op))
        |                                               ^~
  /usr/include/python3.10/cpython/bytesobject.h:34:58: note: in expansion of macro ‘Py_SIZE’
     34 | #define PyBytes_GET_SIZE(op)  (assert(PyBytes_Check(op)),Py_SIZE(op))
        |                                                          ^~~~~~~
  src/compat.h:8:30: note: in expansion of macro ‘PyBytes_GET_SIZE’
      8 |       #define PyStr_GET_SIZE PyBytes_GET_SIZE
        |                              ^~~~~~~~~~~~~~~~
  src/vmp_stack.c:108:24: note: in expansion of macro ‘PyStr_GET_SIZE’
    108 |             len = (int)PyStr_GET_SIZE(frame->f_code->co_lnotab);
        |                        ^~~~~~~~~~~~~~
  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for vmprof
  Running setup.py clean for vmprof
Failed to build vmprof
Installing collected packages: vmprof
    Running setup.py install for vmprof ... error
    ERROR: Command errored out with exit status 1:
     command: /home/om26er/scm/foobar/markhor/venv/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/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 /tmp/pip-record-nvyi6bt1/install-record.txt --single-version-externally-managed --compile --install-headers /home/om26er/scm/foobar/markhor/venv/include/site/python3.10/vmprof
         cwd: /tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/
    Complete output (216 lines):
    running install
    running build
    running build_py
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking target system type... x86_64-pc-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    /bin/bash: /tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/src/libbacktrace/missing: No such file or directory
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking for ranlib... ranlib
    checking for gawk... (cached) gawk
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... (cached) ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking unwind.h usability... yes
    checking unwind.h presence... yes
    checking for unwind.h... yes
    checking for _Unwind_Backtrace... yes
    checking for -funwind-tables option... yes
    checking for -frandom-seed=string option... yes
    checking whether gcc supports -W... yes
    checking whether gcc supports -Wall... yes
    checking whether gcc supports -Wwrite-strings... yes
    checking whether gcc supports -Wstrict-prototypes... yes
    checking whether gcc supports -Wmissing-prototypes... yes
    checking whether gcc supports -Wold-style-definition... yes
    checking whether gcc supports -Wmissing-format-attribute... yes
    checking whether gcc supports -Wcast-qual... yes
    checking for _Unwind_GetIPInfo... yes
    checking __sync extensions... yes
    checking __atomic extensions... yes
    checking output filetype... elf64
    looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
    checking for uintptr_t... yes
    checking for int_least32_t... yes
    checking for int_fast32_t... yes
    checking for uint64_t... yes
    checking what to include in gstdint.h... stdint.h (already complete)
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking for mmap... yes
    checking link.h usability... yes
    checking link.h presence... yes
    checking for link.h... yes
    checking for dl_iterate_phdr... yes
    checking for fcntl... yes
    checking whether strnlen is declared... yes
    checking for getexecname... no
    checking whether tests can run... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating backtrace-supported.h
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing libtool commands
    sed: can't read ./ltmain.sh: No such file or directory
    sed: can't read ./ltmain.sh: No such file or directory
    mv: cannot stat 'libtoolT': No such file or directory
    cp: cannot stat 'libtoolT': No such file or directory
    chmod: cannot access 'libtool': No such file or directory
    config.status: executing gstdint.h commands
    config.status: executing default commands
    creating build
    creating build/lib.linux-x86_64-3.10
    creating build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/upload.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/constants.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/query.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/merge_point.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/parser.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/prettyprinter.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/__init__.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/marks.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/__main__.py -> build/lib.linux-x86_64-3.10/jitlog
    copying jitlog/objects.py -> build/lib.linux-x86_64-3.10/jitlog
    creating build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/upload.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/cli.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/profiler.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/__init__.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/__main__.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/stats.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/reader.py -> build/lib.linux-x86_64-3.10/vmprof
    copying vmprof/show.py -> build/lib.linux-x86_64-3.10/vmprof
    creating build/lib.linux-x86_64-3.10/vmshare
    copying vmshare/__init__.py -> build/lib.linux-x86_64-3.10/vmshare
    copying vmshare/binary.py -> build/lib.linux-x86_64-3.10/vmshare
    copying vmshare/service.py -> build/lib.linux-x86_64-3.10/vmshare
    running build_ext
    building '_vmprof' extension
    creating build/temp.linux-x86_64-3.10
    creating build/temp.linux-x86_64-3.10/src
    creating build/temp.linux-x86_64-3.10/src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/_vmprof.c -o build/temp.linux-x86_64-3.10/src/_vmprof.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    src/_vmprof.c: In function ‘emit_code_object’:
    src/_vmprof.c:68:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       68 |     co_name = PyUnicode_AsUTF8(co->co_name);
          |             ^
    src/_vmprof.c:71:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       71 |     co_filename = PyUnicode_AsUTF8(co->co_filename);
          |                 ^
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/compat.c -o build/temp.linux-x86_64-3.10/src/compat.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/backtrace.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/backtrace.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/dwarf.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/dwarf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/elf.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/elf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/fileline.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/fileline.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/mmap.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/mmap.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/mmapio.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/mmapio.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/posix.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/posix.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/sort.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/sort.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/libbacktrace/state.c -o build/temp.linux-x86_64-3.10/src/libbacktrace/state.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/machine.c -o build/temp.linux-x86_64-3.10/src/machine.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/symboltable.c -o build/temp.linux-x86_64-3.10/src/symboltable.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/om26er/scm/foobar/markhor/venv/include -I/usr/include/python3.10 -c src/vmp_stack.c -o build/temp.linux-x86_64-3.10/src/vmp_stack.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    In file included from /usr/include/python3.10/bytesobject.h:62,
                     from /usr/include/python3.10/Python.h:95,
                     from src/vmprof.h:6,
                     from src/vmp_stack.h:3,
                     from src/vmp_stack.c:1:
    src/vmp_stack.c: In function ‘_write_python_stack_entry’:
    src/vmp_stack.c:102:47: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_lnotab’
      102 |         lnotab = PyStr_AS_STRING(frame->f_code->co_lnotab);
          |                                               ^~
    /usr/include/python3.10/cpython/bytesobject.h:33:53: note: in definition of macro ‘PyBytes_AS_STRING’
       33 |                                 (((PyBytesObject *)(op))->ob_sval))
          |                                                     ^~
    src/vmp_stack.c:102:18: note: in expansion of macro ‘PyStr_AS_STRING’
      102 |         lnotab = PyStr_AS_STRING(frame->f_code->co_lnotab);
          |                  ^~~~~~~~~~~~~~~
    In file included from /usr/include/python3.10/Python.h:87,
                     from src/vmprof.h:6,
                     from src/vmp_stack.h:3,
                     from src/vmp_stack.c:1:
    src/vmp_stack.c:108:52: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_lnotab’
      108 |             len = (int)PyStr_GET_SIZE(frame->f_code->co_lnotab);
          |                                                    ^~
    /usr/include/python3.10/object.h:121:47: note: in definition of macro ‘_PyVarObject_CAST’
      121 | #define _PyVarObject_CAST(op) ((PyVarObject*)(op))
          |                                               ^~
    /usr/include/python3.10/cpython/bytesobject.h:34:58: note: in expansion of macro ‘Py_SIZE’
       34 | #define PyBytes_GET_SIZE(op)  (assert(PyBytes_Check(op)),Py_SIZE(op))
          |                                                          ^~~~~~~
    src/compat.h:8:30: note: in expansion of macro ‘PyBytes_GET_SIZE’
        8 |       #define PyStr_GET_SIZE PyBytes_GET_SIZE
          |                              ^~~~~~~~~~~~~~~~
    src/vmp_stack.c:108:24: note: in expansion of macro ‘PyStr_GET_SIZE’
      108 |             len = (int)PyStr_GET_SIZE(frame->f_code->co_lnotab);
          |                        ^~~~~~~~~~~~~~
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/om26er/scm/foobar/markhor/venv/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2p70_rwb/vmprof_4a5e8e30112843d3a6f2788a3c78a26a/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 /tmp/pip-record-nvyi6bt1/install-record.txt --single-version-externally-managed --compile --install-headers /home/om26er/scm/foobar/markhor/venv/include/site/python3.10/vmprof Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available.
You should consider upgrading via the '/home/om26er/scm/foobar/markhor/venv/bin/python3.10 -m pip install --upgrade pip' command.
oberstet commented 3 years ago

‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_lnotab’

looks like one of the endless issues resulting from the lack of / changing nature of a stable Python ABI :(

mattip commented 3 years ago

it might be as simple as using co_lines() instead. The function is new to python 3.10.

mattip commented 3 years ago

Moving to cibuildwheel #241 would make releasing a new version less painful. Help welcome.

oberstet commented 3 years ago

We would like to push a new release of Crossbar.io, and this is the only issue we are left

https://github.com/crossbario/crossbar/pull/1917#issuecomment-977820091

I would like to avoid removing vmprof (making it optional or what ..) ... is there any chance for a new vmprof release now?

oberstet commented 3 years ago

@mattip ok, rgd #241 .. I see. "Help welcome": understood. oh well, would be some rich guys would shelf out more bucks and hands for proper OSS maintenance.

fijal commented 3 years ago

I think I might have time to look at it later this week

Achilles0509 commented 2 years ago

I have the same issue on Python3.8

at ~/.poetry/lib/poetry/utils/env.py:1195 in _run
      1191│                 output = subprocess.check_output(
      1192│                     cmd, stderr=subprocess.STDOUT, **kwargs
      1193│                 )
      1194│         except CalledProcessError as e:
    → 1195│             raise EnvCommandError(e, input=input_)
      1196│ 
      1197│         return decode(output)
      1198│ 
      1199│     def execute(self, bin, *args, **kwargs):
godmar commented 2 years ago

Issue persists on Ubuntu 22. This is my first attempt at using vmprof; I'm wondering if I'm looking at the wrong tool? All I'd like to do is look at the assembly code pypy3 outputs.

fijal commented 2 years ago

Hi Godmar. Vmprof is not the right way to look at the assembly code - PYPYLOG is.

godmar commented 2 years ago

Thank you for the reply. What exactly is PYPYLOG?

I already used the PYPYLOG environment variable to obtain a logfile that has CODE_DUMP entries. I would like to see them in standard assembly format and was hoping for a tool to pretty print or format the content of the file that was produced when running pypy3 with PYPYLOG=... set.

Could you provide a URL? The only thing I found, beside jitviewer.py that's apparently part of vmprof, was pypy_traceviewer which I'll try next. I had hoped for a command-line based tool.

PS: pypy_traceviewer seems to require Python 3.5 - it doesn't seem to work with 3.6 or later.

fijal commented 2 years ago

Hi Godmar. Any chance you can join IRC, so we don't have to do it over github issues? There is a bunch of a bit half-assed tools, I personally use jitviewer, but it's not like it's finished.

godmar commented 2 years ago

I appreciate the offer, but the reason I post here is to help others who may be in the same situation. I also don't use IRC regularly, and wouldn't I need to know a channel name, anyway?

oberstet commented 2 years ago

rgd IRC, yes, it's channel "#pypy" ..

fijal commented 2 years ago

Well, the problem is that you have a lot of half-working tools (or tools that require some knowledge) that I can explain, but it'll be hard to explain in a non-interactive way. If you want to come up with a documentation out of that, you are more than welcome, but I'm not willing to write full doc on a github issue.

oberstet commented 1 year ago

cpy 3.11 build fails with

      building '_vmprof' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/src
      creating build/temp.linux-x86_64-cpython-311/src/libbacktrace
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.11 -c src/_vmprof.c -o build/temp.linux-x86_64-cpython-311/src/_vmprof.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 "-I src/" "-I src/libbacktrace"
      src/_vmprof.c: In function ‘sample_stack_now’:
      src/_vmprof.c:301:53: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
        301 |     entry_count = vmp_walk_and_record_stack(tstate->frame, m, SINGLE_BUF_SIZE/sizeof(void*)-1, (int)skip, 0);
            |                                                     ^~~~~
            |                                                     cframe
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vmprof
  Running setup.py clean for vmprof
Failed to build vmprof
Bastian-Krause commented 1 year ago

@oberstet See #251.

oberstet commented 1 year ago

@oberstet See #251.

thanks! fwiw, it makes me feel sad, Python will probably live forever with the consequences of an undefined run-time API (CPyExt). also with the consequences of "broken" dependency management (setuptools/pip). I've again spent hours for the latest crossbar release fiddling with Ethereum Python libraries. well. some things will hunt you, there is no escape;) anyways.

mattip commented 11 months ago

Version 0.4.17 is now on PyPI with wheels for most x86_64 platforms, including python3.11

oberstet commented 11 months ago

great news. this is fantastic! thank you for your work - and for vmprof in the first place=)