Comments (8)
uh, this is really strange can you describe your system and python version? (_PyThreadState_Current should definitely be a symbol)
from vmprof-python.
It's Python3.5 from the standard Arch Linux packages.
from vmprof-python.
I can reproduce this on OS X (though I'm not sure if OS X is supported yet).
$ pip install --user vmprof
Collecting vmprof
Downloading vmprof-0.2.2.tar.gz
...
Running setup.py install for vmprof
Complete output from command /opt/local/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/np/bmcfccrd3996nvvrxrht818r0000gn/T/pip-build-krh2q3dd/vmprof/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/np/bmcfccrd3996nvvrxrht818r0000gn/T/pip-7mj4a0t_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
running egg_info
writing vmprof.egg-info/PKG-INFO
writing dependency_links to vmprof.egg-info/dependency_links.txt
writing requirements to vmprof.egg-info/requires.txt
writing top-level names to vmprof.egg-info/top_level.txt
writing entry points to vmprof.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'vmprof.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'src/hotpatch/libdwarf.a'
writing manifest file 'vmprof.egg-info/SOURCES.txt'
running build_ext
building '_vmprof' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -I/opt/local/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c src/_vmprof.c -o build/temp.macosx-10.9-x86_64-3.5/src/_vmprof.o -Wno-unused
In file included from src/_vmprof.c:29:
In file included from src/vmprof_main.h:34:
src/vmprof_mt.h:68:46: error: use of undeclared identifier 'MAP_ANONYMOUS'
MAP_PRIVATE | MAP_ANONYMOUS,
^
In file included from src/_vmprof.c:29:
src/vmprof_main.h:101:12: error: use of undeclared identifier '_PyThreadState_Current'
return _PyThreadState_Current;
^
src/vmprof_main.h:348:26: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'long' [-Wsign-compare]
if (freesize < blocklen) {
~~~~~~~~ ^ ~~~~~~~~
1 warning and 2 errors generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "/opt/local/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/np/bmcfccrd3996nvvrxrht818r0000gn/T/pip-build-krh2q3dd/vmprof/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/np/bmcfccrd3996nvvrxrht818r0000gn/T/pip-7mj4a0t_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/np/bmcfccrd3996nvvrxrht818r0000gn/T/pip-build-krh2q3dd/vmprof
$ python --version
Python 3.5.1
The undeclared _PyThreadState_Current
error does not show up on Python 2.7 on the same machine.
from vmprof-python.
it's really strange, I definitely managed to build it on python 3.5 on OS X. Let me try again. Where did you get your python from?
from vmprof-python.
MacPorts.
from vmprof-python.
ah, macports ships 3.5.1 and I have 3.5.0 that have different visibility of symbols. Just great :-/ Let me try to build from trunk
from vmprof-python.
That should work now. Please reopen if it continues
from vmprof-python.
Seems fixed indeed. Thanks.
from vmprof-python.
Related Issues (20)
- TestNative tests are failing HOT 1
- Streaming output
- Vmprof: "Undefined" in flamegraph, and "No stack trace has been recorded (profile is empty)!" HOT 1
- vmprofshow doesn't work
- Broken on MacOS HOT 16
- Got "Segmentation fault: 11 " when profiling a PyPy + Flask + Gevent app HOT 1
- "resolving addr" extremely slow HOT 1
- Installation issues Ubuntu HOT 6
- SIGALRM not always delivered to main thread in practice HOT 1
- Recorded profile end time is too late, making it hard to timestamp each sample HOT 1
- "No module named _vmprof" error on Windows 10 x64 + pypy-jit latest nigthly HOT 3
- Embedded Python seems not possible to resolve "native" functions HOT 5
- Please release new version to pypi (python 3.10 issue) HOT 19
- Move CI to cibuildwheel HOT 3
- How to quickly pinpoint blocking (ie non-async) calls slowing down the event loop?
- can not build on mac with arm64 arch. HOT 3
- Support building without embedded libbacktrace HOT 3
- Add wheel for Python3.7+ HOT 10
- Default to stdlib timezone objects instead of pytz
- Python 3.11 Windows 11 22H2 Pip install error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmprof-python.