Procedure memo when doing unofficial release build of CardIO

I wanted to modify CardIO and use it, so I had to build the source myself, so I summarized the procedure and addictive points at that time.

I want to build this

https://github.com/card-io/card.io-iOS-source

environment

MacOS 10.11.6

Necessary tools etc.

https://github.com/card-io/card.io-iOS-source/ As per the README here.

Fabric installation

First, do the following without thinking, but it doesn't work

bash


$ pip install fabric

Addictive 1

error: command 'cc' failed with exit status 1

I got an error like, so execute the following.

bash


$ xcode-select --install

Addictive 2

ʻUninstalling setuptools-1.1.6:`

Operation not permitted

Is displayed, so execute it with the following options (not resolved).

See ↓ http://stackoverflow.com/questions/33234665/upgrading-setuptools-on-osx-el-capitan

↑ does not solve it, try removing the SIP of El Capitan. See ↓ http://berukann.hatenablog.jp/entry/2015/12/30/123020

This error disappeared when SIP was released.

Addictive 3

TypeError: __call__() takes exactly 2 arguments (1 given)

This time this error. Look at stackoverflow again.

http://stackoverflow.com/questions/42029545/pip-is-error-typeerror-call-takes-exactly-2-arguments-1-given

There seems to be a bug in pip ... Update

sudo python -m pip install --upgrade pip

Finally, the fabric installation was successful!

# sudo pip install fabric //success!

CardIO build

Now you can finally build CardIO. I haven't put in virtualenv, but it's okay. .. Do the following in the project root,

fab build:outdir=~/outputdir/

It was sunny and the deliverable was made in ~ / outputdir /.

afterwards

I also tried installing valer, but I got an error again, so make a note

$ sudo pip install baler
...
TypeError: __call__() takes exactly 2 arguments (1 given)

I got the same error as last time. Pull the previous stackoverflow article.

pip install setuptools==33.1.1
      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.VersionConflict: (six 1.4.1 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('six>=1.6.0'))

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-1pXHUT/baler/

It seems that six need to be upgraded

$ sudo pip install six --upgrade

This is done

I was able to build the cardio library, but I still have to import it to make it work in the app. I will write about that again next time.

Recommended Posts

Procedure memo when doing unofficial release build of CardIO
Build procedure of TensorFlow 2.2.0-rc0 (CUDA10.2 + cuDNN7.6.5) --Windows10