Code Monkey home page Code Monkey logo

Comments (8)

fijal avatar fijal commented on May 20, 2024

uh, this is really strange can you describe your system and python version? (_PyThreadState_Current should definitely be a symbol)

from vmprof-python.

anntzer avatar anntzer commented on May 20, 2024

It's Python3.5 from the standard Arch Linux packages.

from vmprof-python.

myint avatar myint commented on May 20, 2024

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.

fijal avatar fijal commented on May 20, 2024

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.

myint avatar myint commented on May 20, 2024

MacPorts.

from vmprof-python.

fijal avatar fijal commented on May 20, 2024

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.

fijal avatar fijal commented on May 20, 2024

That should work now. Please reopen if it continues

from vmprof-python.

anntzer avatar anntzer commented on May 20, 2024

Seems fixed indeed. Thanks.

from vmprof-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.