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

Failed to install Pyrobuf / ERROR: Failed building wheel for Pyrobuf with Python #159

Open
bespardon opened this issue Jul 21, 2021 · 1 comment

Comments

@bespardon
Copy link

bespardon commented Jul 21, 2021

Could you please give me some ideas how to install package?
I have Mac OS Big Sur 11.2

When I make pip install Pyrobuf in terminal I get an error

Cython is installed correctly.

I need Pyrobuf to use the Pyrosm library

`  ERROR: Command errored out with exit status 1:
   command: /Users/Svyatoslav/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/setup.py'"'"'; __file__='"'"'/private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-wheel-_vi9foo6
       cwd: /private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/
  Complete output (98 lines):
  rendering 'pyrobuf_list.pyx' from '/private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/pyrobuf/protobuf/templates/pyrobuf_list_pyx.tmpl'
  rendering 'pyrobuf_list.pxd' from '/private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/pyrobuf/protobuf/templates/pyrobuf_list_pxd.tmpl'
  Compiling pyrobuf/src/pyrobuf_list.pyx because it changed.
  Compiling pyrobuf/src/pyrobuf_util.pyx because it depends on pyrobuf/src/pyrobuf_defs.pxi.
  [1/2] Cythonizing pyrobuf/src/pyrobuf_list.pyx
  /Users/Svyatoslav/opt/anaconda3/lib/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/pyrobuf/src/pyrobuf_list.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  [2/2] Cythonizing pyrobuf/src/pyrobuf_util.pyx
  /Users/Svyatoslav/opt/anaconda3/lib/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/xr/kkpqz3rj2vj3sbhlbcth7cd40000gq/T/pip-install-997xvhaa/pyrobuf/pyrobuf/src/pyrobuf_util.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.8
  creating build/lib.macosx-10.9-x86_64-3.8/pyrobuf
  copying pyrobuf/parse_proto.py -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf
  copying pyrobuf/setuptools_ext.py -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf
  copying pyrobuf/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf
  copying pyrobuf/compile.py -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf
  copying pyrobuf/__main__.py -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf
  creating build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_has_field.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/conftest.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_typed_lists.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/perf_lists.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_nested_issue55.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_custom_options.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_unknown_field.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_deprecated_field.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_message.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_imported_enums.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_signed_integer.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_items.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_message_init_kwargs.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_merge_from.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_issue_69.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/create_message.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_message_with_no_fields.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_is_initialized.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/performances.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_field_defaults.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_lists.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_repeated_enum.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_caching.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_oneof.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_issue_11.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_varint_encoding.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_bool_field.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_bytes_and_string_lists.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_message_field_types.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_has_field_many.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  copying tests/test_unicode_strings.py -> build/lib.macosx-10.9-x86_64-3.8/tests
  creating build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf
  copying pyrobuf/protobuf/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf
  creating build/lib.macosx-10.9-x86_64-3.8/tests/messages
  copying tests/messages/test_ref_message_pb2.py -> build/lib.macosx-10.9-x86_64-3.8/tests/messages
  copying tests/messages/test_message_pb2.py -> build/lib.macosx-10.9-x86_64-3.8/tests/messages
  copying tests/messages/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/tests/messages
  creating build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  copying tests/test_parser/test_syntax.py -> build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  copying tests/test_parser/test_field_validity.py -> build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  copying tests/test_parser/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  copying tests/test_parser/test_map_field.py -> build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  copying tests/test_parser/test_missing_lbraces.py -> build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  copying tests/test_parser/test_oneof.py -> build/lib.macosx-10.9-x86_64-3.8/tests/test_parser
  running egg_info
  writing pyrobuf.egg-info/PKG-INFO
  writing dependency_links to pyrobuf.egg-info/dependency_links.txt
  writing entry points to pyrobuf.egg-info/entry_points.txt
  writing requirements to pyrobuf.egg-info/requires.txt
  writing top-level names to pyrobuf.egg-info/top_level.txt
  reading manifest file 'pyrobuf.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'pyrobuf.egg-info/SOURCES.txt'
  creating build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/ansidecl.h -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/pyrobuf_list.c -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/pyrobuf_list.pxd -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/pyrobuf_list.pyx -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/pyrobuf_util.c -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/pyrobuf_util.pxd -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/pyrobuf_util.pyx -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  copying pyrobuf/src/strndup.c -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/src
  creating build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf/templates
  copying pyrobuf/protobuf/templates/proto_pxd.tmpl -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf/templates
  copying pyrobuf/protobuf/templates/proto_pyx.tmpl -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf/templates
  copying pyrobuf/protobuf/templates/pyrobuf_list_pxd.tmpl -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf/templates
  copying pyrobuf/protobuf/templates/pyrobuf_list_pyx.tmpl -> build/lib.macosx-10.9-x86_64-3.8/pyrobuf/protobuf/templates
  running build_ext
  building 'pyrobuf_list' extension
  creating build/temp.macosx-10.9-x86_64-3.8
  creating build/temp.macosx-10.9-x86_64-3.8/pyrobuf
  creating build/temp.macosx-10.9-x86_64-3.8/pyrobuf/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Svyatoslav/opt/anaconda3/include -arch x86_64 -I/Users/Svyatoslav/opt/anaconda3/include -arch x86_64 -I/Users/Svyatoslav/opt/anaconda3/include/python3.8 -c pyrobuf/src/pyrobuf_list.c -o build/temp.macosx-10.9-x86_64-3.8/pyrobuf/src/pyrobuf_list.o
  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for Pyrobuf`
@SuZhangs
Copy link

same qusetion

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

2 participants