Error: "Makefile:281: *** missing separator. Stop." when compiling python3/openssl/kivy

51 views
Skip to first unread message

Jean-Sebastien Provost

unread,
Jun 16, 2020, 3:02:08 PM6/16/20
to Kivy users support
Hello experts,

I'm a newbie with kivy and I just finished my first app and wanted to created for IOS. I've followed the instruction and was able to do these steps successfully:
>python3 -m venv venv
>. venv/bin/activate
>
pip3 install kivy-ios
>
xcode-select --install
>
brew install autoconf automake libtool pkg-config >brew link libtool #Although it says that it already exists on my machine
>sudo
pip3 install Cython==0.29.17


Then I did:
>
toolchain build python3 openssl kivy

And this is where I'm having issues, everything seems to be working fine for 15 minutes and then it crashes;
I copied part of the log below. I am using a Mac with OSX 10.13.6 with Xcode 10.2 (although might not be useful at this point).

I have no clue why it's happening and since I'm not necessarily too familiar, I don't know if you would need more information.
Please don't hesitate to ask if needed.

Thank you very much,


#######################
[DEBUG ] checking for --with-ssl-default-suites... python
[DEBUG ] configure: creating ./config.status
[DEBUG ] config.status: creating Makefile.pre
[DEBUG ] config.status: creating Misc/python.pc
[DEBUG ] config.status: creating Misc/python-embed.pc
[DEBUG ] config.status: creating Misc/python-config.sh
[DEBUG ] config.status: creating Modules/ld_so_aix
[DEBUG ] config.status: creating pyconfig.h
[DEBUG ] creating Modules/Setup.local
[DEBUG ] creating Makefile
[DEBUG ]
[DEBUG ]
[DEBUG ] If you want a release build with all stable optimizations active (PGO, etc),
[DEBUG ] please run ./configure --enable-optimizations
[DEBUG ]
[DEBUG ]
[INFO ] Apply patch ctypes_duplicate.patch
[INFO ] Running Shell: /Users/jean-sebastienprovost/anaconda3/bin/make ('-j4',) {'_iter': True, '_out_bufsize': 1, '_err_to_out': True}
[DEBUG ] Makefile:281: *** missing separator. Stop.
Exception in thread background thread for pid 61856:
Traceback (most recent call last):
File "/Users/jean-sebastienprovost/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/Users/jean-sebastienprovost/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 1662, in wrap
fn(*args, **kwargs)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 2606, in background_thread
handle_exit_code(exit_code)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 2304, in fn
return self.command.handle_command_exit_code(exit_code)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /Users/jean-sebastienprovost/anaconda3/bin/make -j4

STDOUT:
Makefile:281: *** missing separator. Stop.


STDERR:


Traceback (most recent call last):
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/bin/toolchain", line 11, in <module>
sys.exit(main())
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 1497, in main
ToolchainCL()
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 1270, in __init__
getattr(self, args.command)()
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 1323, in build
build_recipes(args.recipe, ctx)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 1121, in build_recipes
recipe.execute()
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 700, in execute
self.build_all()
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 85, in _cache_execution
f(self, *args, **kwargs)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 794, in build_all
self.build(arch)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 85, in _cache_execution
f(self, *args, **kwargs)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 781, in build
self.build_arch(arch)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/recipes/python3/__init__.py", line 128, in build_arch
shprint(sh.make, self.ctx.concurrent_make)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py", line 67, in shprint
for line in cmd:
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 925, in next
self.wait()
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 849, in wait
self.handle_command_exit_code(exit_code)
File "/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /Users/jean-sebastienprovost/anaconda3/bin/make -j4

STDOUT:
Makefile:281: *** missing separator. Stop.


STDERR:

(venv) >> which python
/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/bin/python
(venv) >> which python --version
/Users/jean-sebastienprovost/Desktop/coursera/machine_learning/memory_app/venv/bin/python
(venv) >>
(venv) >>

Screen Shot 2020-06-16 at 2.59.13 PM.png

ZenCODE

unread,
Jun 17, 2020, 12:20:55 PM6/17/20
to Kivy users support
Don't do "sudo pip install". Just "pip install" for cython... Does that help?

Jean-Sebastien Provost

unread,
Jun 17, 2020, 1:04:03 PM6/17/20
to Kivy users support
Thanks Zencode for your reply, I really appreciate.
I did what you suggested and I got a different error this time. It's related to libffi library. Here is the error message.
Screen Shot 2020-06-17 at 12.57.12 PM.png

Jean-Sebastien Provost

unread,
Jun 17, 2020, 8:58:04 PM6/17/20
to Kivy users support
Actually I did it again from scratch using pip instead of sudo pip for Cython and I got the same initial error.

ZenCODE

unread,
Jun 25, 2020, 10:07:36 PM6/25/20
to Kivy users support
If possible, try checking out the latest master branch and retrying? If the problem still occurs, please can you create a new issue here with all the logs included?  https://github.com/kivy/kivy-ios/issues

Thanks

Jean-Sebastien Provost

unread,
Jul 30, 2020, 8:55:42 PM7/30/20
to Kivy users support
I had a bunch of hidden files interfering with the installation. Once everything cleared, it worked.
Reply all
Reply to author
Forward
0 new messages