Skip to content

Unable to compile python3 from inside venv -- missing pyconfig.h #401

@s1113950

Description

@s1113950

I've installed all required deps through brew but still am missing python headers.

Also tried installing python3.7.1 on the host via brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/1d4f1d5602eac539f4c02b4a82f78b3a3ed5413f/Formula/python.rb as well as brew install python which now installs python3.7.4; both don't work.

Additionally, I tried using both e3fa7a300fc474bb131077026f6ae198796a8dff and master, but to no avail, I've used that hash before to create the app (on a different laptop this time) but it doesn't appear to work on this new Mac.

Here's my traceback:

error: [Errno 2] No such file or directory: '/Users/ryanrobertson/kivy-ios/dist/hostpython3/include/python3.7m/pyconfig.h'
[DEBUG   ] make: *** [sharedmods] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1569, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1284, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1325, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 1161, in build_recipes
    recipe.execute()
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 728, in execute
    self.build_all()
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 84, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 836, in build_all
    self.build(arch)
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 84, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 810, in build
    self.build_arch(arch)
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 873, in build_arch
    getattr(self, build)()
  File "/Users/ryanrobertson/kivy-ios/recipes/hostpython3/__init__.py", line 91, in build_x86_64
    _env=build_env)
  File "/Users/ryanrobertson/kivy-ios/toolchain.py", line 67, in shprint
    for line in cmd:
  File "./tools/external/sh.py", line 565, in next
    self.wait()
  File "./tools/external/sh.py", line 500, in wait
    self.handle_command_exit_code(exit_code)
  File "./tools/external/sh.py", line 516, in handle_command_exit_code
    raise exc(self.ran, self.process.stdout, self.process.stderr)
sh.ErrorReturnCode_2: 

  RAN: '/usr/bin/make -C /Users/ryanrobertson/kivy-ios/build/hostpython3/x86_64/Python-3.7.1 -j4'

  STDOUT:
clang -Qunused-arguments -fcolor-diagnostics -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64 -mmacosx-version-min=10.12 -I/Users/ryanrobertson/kivy-ios/dist/hostlibffi/usr/local/include -I/Users/ryanrobertson/kivy-ios/dist/include/x86_64/openssl --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64 -mmacosx-version-min=10.12 -I/Users/ryanrobertson/kivy-ios/dist/hostlibffi/usr/local/include -I/Users/ryanrobertson/kivy-ios/dist/include/x86_64/openssl  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-mis... (141704 more, please see e.stdout)

  STDERR:

My install process:

python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
./toolchain.py build python3 kivy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions