Mac install is trying to compile "ruamel_yaml.c"

402 views
Skip to first unread message

Brian Cox

unread,
Apr 29, 2017, 4:54:05 AM4/29/17
to MPF Users
Hi guys,

Last time this was a bug, but I'm getting it again in version 0.33.3


Possible this came back?

Thanks!

Brian

Brian Madden

unread,
Apr 29, 2017, 2:14:42 PM4/29/17
to MPF Users
Hi Brian,

Which procedure are you using to install MPF? I'm not aware of ruamel.yaml needing to be compiled?

This procedure is the latest: http://docs.missionpinball.org/en/latest/install/mac.html

It's different that it used to be (pre-2017) because we no longer provide the MPF.app package, rather, not Python3 is installed directly.

Thanks!
Other Brian

brian90254

unread,
Apr 29, 2017, 2:24:05 PM4/29/17
to mpf-...@googlegroups.com
I followed the instructions there, which include deleting the old mpf app and a couple other things.

I also updated xcode, and now last ditch effort upgrading os to Sierra. 

B


Sent from my T-Mobile 4G LTE Device
--
You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/45ooqlBgiF4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+...@googlegroups.com.
To post to this group, send email to mpf-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpf-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/d421dfe6-a36b-48ca-8674-76f218e288dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Madden

unread,
Apr 29, 2017, 2:31:33 PM4/29/17
to MPF Users
Ok cool.

When we developed the new process in Jan, I also tested on 10.11 (I forget the names now.. Yosemite?) and it worked there, so I don't know what the issue is?

Can you post a console log of what's happening when you run pip3 install mpf-mc? Also can you run "pip3 list" and post the results of that?

Thanks!
Other Brian

Brian Cox

unread,
Apr 29, 2017, 3:54:37 PM4/29/17
to MPF Users

Last login: Sat Apr 29 12:23:37 on console


brian-coxs-computer:~ briancox$


brian-coxs-computer:~ briancox$


brian-coxs-computer:~ briancox$ xcode-select --install


xcode-select: note: install requested for command line developer tools


brian-coxs-computer:~ briancox$ python3 --version


Python 3.5.2


brian-coxs-computer:~ briancox$ pip3 install pip setuptools cython==0.24.1 --upgrade


Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages


Requirement already up-to-date: setuptools in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages


Requirement already up-to-date: cython==0.24.1 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages


Requirement already up-to-date: packaging>=16.8 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from setuptools)


Requirement already up-to-date: appdirs>=1.4.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from setuptools)


Requirement already up-to-date: six>=1.6.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from setuptools)


Requirement already up-to-date: pyparsing in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from packaging>=16.8->setuptools)


brian-coxs-computer:~ briancox$ pip3 install mpf-mc


Collecting mpf-mc


  Downloading mpf-mc-0.33.3.tar.gz (5.0MB)


    100% |████████████████████████████████| 5.0MB 263kB/s


Collecting ruamel.yaml<0.11,>=0.10 (from mpf-mc)


  Downloading ruamel.yaml-0.10.23.tar.gz (228kB)


    100% |████████████████████████████████| 235kB 3.6MB/s


Collecting mpf>=0.33.9 (from mpf-mc)


  Downloading mpf-0.33.12.tar.gz (591kB)


    100% |████████████████████████████████| 593kB 1.4MB/s


Collecting kivy>=1.9.1 (from mpf-mc)


  Downloading kivy-1.9.1.tar.gz (16.4MB)


    100% |████████████████████████████████| 16.4MB 78kB/s


Collecting psutil (from mpf-mc)


  Downloading psutil-5.2.2.tar.gz (348kB)


    100% |████████████████████████████████| 358kB 2.1MB/s


Collecting pygments (from mpf-mc)


  Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)


    100% |████████████████████████████████| 849kB 1.2MB/s


Requirement already satisfied: ruamel.base>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from ruamel.yaml<0.11,>=0.10->mpf-mc)


Collecting pyserial>=3.2.0 (from mpf>=0.33.9->mpf-mc)


  Downloading pyserial-3.3-py2.py3-none-any.whl (189kB)


    100% |████████████████████████████████| 194kB 2.2MB/s


Collecting pyserial-asyncio>=0.3 (from mpf>=0.33.9->mpf-mc)


  Downloading pyserial_asyncio-0.4-py3-none-any.whl


Collecting typing (from mpf>=0.33.9->mpf-mc)


  Downloading typing-3.6.1.tar.gz (66kB)


    100% |████████████████████████████████| 71kB 2.6MB/s


Collecting Kivy-Garden>=0.1.4 (from kivy>=1.9.1->mpf-mc)


  Downloading kivy-garden-0.1.4.tar.gz


Collecting requests (from Kivy-Garden>=0.1.4->kivy>=1.9.1->mpf-mc)


  Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)


    100% |████████████████████████████████| 593kB 1.8MB/s


Installing collected packages: ruamel.yaml, pyserial, pyserial-asyncio, typing, mpf, requests, Kivy-Garden, kivy, psutil, pygments, mpf-mc


  Running setup.py install for ruamel.yaml ... error


    Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/nb/9g942vk576j38jt7sff28hww0000gn/T/pip-build-imw6bh88/ruamel.yaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/nb/9g942vk576j38jt7sff28hww0000gn/T/pip-u6rujpg3-record/install-record.txt --single-version-externally-managed --compile:


    running install


    running build


    running build_py


    creating build


    creating build/lib.macosx-10.6-intel-3.5


    creating build/lib.macosx-10.6-intel-3.5/ruamel


    copying .ruamel/__init__.py -> build/lib.macosx-10.6-intel-3.5/ruamel


    creating build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./__init__.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./comments.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./compat.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./composer.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./configobjwalker.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./constructor.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./cyaml.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./dumper.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./emitter.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./error.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./events.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./loader.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./main.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./make_win_whl.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./nodes.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./parser_.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./reader.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./representer.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./resolver.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./scalarstring.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./scanner.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./serializer.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./setup.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./tokens.py -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    copying ./LICENSE -> build/lib.macosx-10.6-intel-3.5/ruamel/yaml


    running build_ext


    building '_ruamel_yaml' extension


    creating build/temp.macosx-10.6-intel-3.5


    creating build/temp.macosx-10.6-intel-3.5/ext


    /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -g -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c ext/_ruamel_yaml.c -o build/temp.macosx-10.6-intel-3.5/ext/_ruamel_yaml.o


    In file included from ext/_ruamel_yaml.c:4:


    /Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m/Python.h:25:10: fatal error: 'stdio.h' file not found


    #include <stdio.h>


             ^


    1 error generated.


    error: command '/usr/bin/clang' failed with exit status 1


   


    ----------------------------------------


Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/nb/9g942vk576j38jt7sff28hww0000gn/T/pip-build-imw6bh88/ruamel.yaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/nb/9g942vk576j38jt7sff28hww0000gn/T/pip-u6rujpg3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/nb/9g942vk576j38jt7sff28hww0000gn/T/pip-build-imw6bh88/ruamel.yaml/


brian-coxs-computer:~ briancox$



This is this console log after upgrading to Sierra.

Installed xcode fresh, same error as last time.

Any ideas?


Thanks!

Brian Cox

Brian Cox

unread,
Apr 29, 2017, 6:38:39 PM4/29/17
to MPF Users
Tried 1) upgrading to Sierra, 2) manually loading Xcode from the app store, 3) rebooting, and still have to issue

BC


On Saturday, April 29, 2017 at 1:54:05 AM UTC-7, Brian Cox wrote:

Brian Cox

unread,
Apr 29, 2017, 7:05:26 PM4/29/17
to mpf-...@googlegroups.com

brian-coxs-computer:~ briancox$ pip3 list

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

appdirs (1.4.3)

Cython (0.24.1)

packaging (16.8)

pip (9.0.1)

pyparsing (2.2.0)

ruamel.base (1.0.0)

setuptools (35.0.2)

six (1.10.0)


--
You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/45ooqlBgiF4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+unsubscribe@googlegroups.com.

To post to this group, send email to mpf-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpf-users.

Quinn Capen

unread,
Apr 29, 2017, 9:26:57 PM4/29/17
to MPF Users
It doesn't look like ruamel.yaml is installed.  You might focus on getting that installed separately first prior to installing mpf.

Try pip3 install ruamel.yaml==0.10.23 (that's the version I'm currently using although any of the other 0.10 versions should work as well).

Quinn

Brian Cox

unread,
Apr 29, 2017, 9:38:42 PM4/29/17
to mpf-...@googlegroups.com
I get the same error when trying to specify a specific version... If I don't specify a version, it doesn't try to compile because it already has to most up to date version.

I think the underlying problem is that Python 3.5 is trying to compile all these things, but is not pointing to the Xcode SDK framework, so can't see the headers and include files. I don't know how or what to modify to make this happen.

BTW, here's the pip3 list shows it already installed:

appdirs (1.4.3)

awscli (1.11.82)

botocore (1.5.45)

colorama (0.3.7)

configobj (5.0.6)

Cython (0.24.1)

docutils (0.13.1)

jmespath (0.9.2)

mpf (0.33.12)

packaging (16.8)

pip (9.0.1)

pyasn1 (0.2.3)

pyparsing (2.2.0)

python-dateutil (2.6.0)

PyYAML (3.12)

rsa (3.4.2)

ruamel.base (1.0.0)

ruamel.std.argparse (0.7.1)

ruamel.yaml (0.14.10)

ruamel.yaml.cmd (0.2.4)

s3transfer (0.1.10)

setuptools (35.0.2)

six (1.10.0)
 

--
You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/45ooqlBgiF4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+unsubscribe@googlegroups.com.
To post to this group, send email to mpf-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpf-users.
Reply all
Reply to author
Forward
0 new messages