[pypy-dev] How to install pypy3 on Mac OS X?

Peng Yu pengyu.ut at gmail.com
Sat Jul 4 13:59:35 EDT 2020


Hi,

I got the following erorr when I use pypy3 from homebrew. How to solve
the problem?

Should I use pypy3 independent of homebrew? If so, could anybody let
me know how to do so? The download link only show Python 3.6, does it
work for other versions of Python? Thanks.

https://www.pypy.org/download.html

$ pypy3 -mpip install -U JPype1
Collecting JPype1
  Using cached JPype1-0.7.5.tar.gz (645 kB)
Installing collected packages: JPype1
    Running setup.py install for JPype1 ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/pypy3 -u -c 'import sys, setuptools,
tokenize; sys.argv[0] =
'"'"'/private/tmp/mktemp/pip-install-6pnf_iup/JPype1/setup.py'"'"';
__file__='"'"'/private/tmp/mktemp/pip-install-6pnf_iup/JPype1/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
/private/tmp/mktemp/pip-record-594dwb7h/install-record.txt
--single-version-externally-managed --compile --install-headers
/usr/local/Cellar/pypy3/7.3.1_1/libexec/include/JPype1
         cwd: /private/tmp/mktemp/pip-install-6pnf_iup/JPype1/
    Complete output (61 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.6
    creating build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jcollection.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_classpath.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_pykeywords.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jproxy.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_gui.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jmethod.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/nio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jstring.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/types.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/beans.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jvmfinder.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/imports.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jcustomizer.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_core.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jinit.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jarray.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jobject.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/pickle.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jclass.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jexception.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/reflect.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    copying jpype/_jpackage.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
    running build_ext
    running build_java
    Using Jar cache
    creating build/lib
    creating build/lib/org
    creating build/lib/org/jpype
    creating build/lib/org/jpype/classloader
    copying native/jars/org/jpype/classloader/JPypeClassLoader.class
-> build/lib/org/jpype/classloader
    copying native/jars/org.jpype.jar -> build/lib
    running build_thunk
    Building thunks
      including thunk build/lib/org/jpype/classloader/JPypeClassLoader.class
      including thunk build/lib/org.jpype.jar
    Call build extensions
    Call build ext
    building '_jpype' extension
    creating build/temp.macosx-10.7-x86_64-3.6
    creating build/temp.macosx-10.7-x86_64-3.6/build
    creating build/temp.macosx-10.7-x86_64-3.6/build/src
    creating build/temp.macosx-10.7-x86_64-3.6/native
    creating build/temp.macosx-10.7-x86_64-3.6/native/python
    creating build/temp.macosx-10.7-x86_64-3.6/native/common
    gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DMACOSX=1
-Inative/common/include -Inative/python/include -Ibuild/src
-Inative/jni_include -I/usr/local/Cellar/pypy3/7.3.1_1/libexec/include
-c build/src/jp_thunk.cpp -o
build/temp.macosx-10.7-x86_64-3.6/build/src/jp_thunk.o -g0 -std=c++11
-ggdb
    warning: include path for stdlibc++ headers not found; pass
'-stdlib=libc++' on the command line to use the libc++ standard
library instead [-Wstdlibcxx-not-found]
    In file included from build/src/jp_thunk.cpp:1:
    In file included from build/src/jp_thunk.h:3:
    native/common/include/jpype.h:64:10: fatal error: 'map' file not found
    #include <map>
             ^~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/pypy3 -u
-c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/tmp/mktemp/pip-install-6pnf_iup/JPype1/setup.py'"'"';
__file__='"'"'/private/tmp/mktemp/pip-install-6pnf_iup/JPype1/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
/private/tmp/mktemp/pip-record-594dwb7h/install-record.txt
--single-version-externally-managed --compile --install-headers
/usr/local/Cellar/pypy3/7.3.1_1/libexec/include/JPype1 Check the logs
for full command output.


-- 
Regards,
Peng


More information about the pypy-dev mailing list