Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
om26er opened this issue Oct 8, 2021 · 19 comments
Closed

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

om26er opened this issue Oct 8, 2021 · 19 comments

Comments

@om26er
Copy link

om26er commented Oct 8, 2021

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
Copy link
Contributor

‘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
Copy link
Contributor

mattip commented Oct 13, 2021

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

@mattip
Copy link
Contributor

mattip commented Oct 13, 2021

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

@oberstet
Copy link
Contributor

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

crossbario/crossbar#1917 (comment)

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

@oberstet
Copy link
Contributor

@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
Copy link
Member

fijal commented Nov 24, 2021

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

Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Feb 15, 2022
With the latest vmprof release 0.4.15 and python3.10 we run into:

  vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Mar 7, 2022
With the latest vmprof release 0.4.15 and python3.10 we run into:

  vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Mar 7, 2022
With the latest vmprof release 0.4.15 and python3.10 we run into:

  vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
@Achilles0509
Copy link

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

Emantor pushed a commit to Bastian-Krause/labgrid that referenced this issue Mar 31, 2022
With the latest vmprof release 0.4.15 and python3.10 we run into:

  vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Jun 20, 2022
With the latest vmprof release 0.4.15 and python3.10 we run into:

  vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/crossbar that referenced this issue Jul 10, 2022
Since vmprof has trouble releasing a python 3.10 capable version [1] and
it is only needed for profiling in crossbar, make it a soft dependency.

All occurrences of vmprof in actual code are already guarded by
try except constructs around imports and `_HAS_VMPROF` checks around
vmprof use.

So it should be safe to drop vmprof from the various
reqirements/setup/Makefile files as well as corresponding licensing
files.

[1] vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/crossbar that referenced this issue Jul 10, 2022
Since vmprof has trouble releasing a python 3.10 capable version [1] and
it is only needed for profiling in crossbar, make it a soft dependency.

All occurrences of vmprof in actual code are already guarded by
try except constructs around imports and `_HAS_VMPROF` checks around
vmprof use.

So it should be safe to drop vmprof from the various
reqirements/setup/Makefile files as well as corresponding licensing
files.

[1] vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
oberstet pushed a commit to crossbario/crossbar that referenced this issue Jul 11, 2022
Since vmprof has trouble releasing a python 3.10 capable version [1] and
it is only needed for profiling in crossbar, make it a soft dependency.

All occurrences of vmprof in actual code are already guarded by
try except constructs around imports and `_HAS_VMPROF` checks around
vmprof use.

So it should be safe to drop vmprof from the various
reqirements/setup/Makefile files as well as corresponding licensing
files.

[1] vmprof/vmprof-python#240

Signed-off-by: Bastian Krause <bst@pengutronix.de>
@godmar
Copy link

godmar commented Sep 18, 2022

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
Copy link
Member

fijal commented Sep 19, 2022

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

@godmar
Copy link

godmar commented Sep 19, 2022

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
Copy link
Member

fijal commented Sep 19, 2022

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
Copy link

godmar commented Sep 19, 2022

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
Copy link
Contributor

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

@fijal
Copy link
Member

fijal commented Sep 19, 2022

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
Copy link
Contributor

oberstet commented Feb 7, 2023

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
Copy link

@oberstet See #251.

@oberstet
Copy link
Contributor

oberstet commented Feb 8, 2023

@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
Copy link
Contributor

mattip commented Jan 3, 2024

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

@mattip mattip closed this as completed Jan 3, 2024
@oberstet
Copy link
Contributor

oberstet commented Jan 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants