Yubico / yubico-bitcoin-python

Python client library and command line tool for communicating with the ykneo-bitcoin applet for the YubiKey NEO
BSD 2-Clause "Simplified" License
7 stars 4 forks source link

Running on Linux or OS X #1

Closed STRML closed 9 years ago

STRML commented 9 years ago

I get the following errors on OS X:

...
#error architecture not supported

 ^

In file included from smartcard/scard/helpers.c:31:

In file included from /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:

In file included from /usr/include/stdio.h:71:

/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'

typedef __darwin_va_list va_list;

        ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

error: command 'clang' failed with exit status 1

And on Mint Linux:

smartcard/scard/helpers.c:28:22: fatal error: winscard.h: No such file or directory

 #include <winscard.h>

                      ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_user/pyscard/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YLQXGK-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_user/pyscard
Storing complete log in /home/user/.pip/pip.log

Is this meant to be run, or has another project superseded it?

dainnilsson commented 9 years ago

The errors are related to building pyscard, which is a dependency of this project. I believe it should work on both Mint and OS X, but you might have better luck installing pre-built binaries (apt-get install python-pyscard on Ubuntu, might be the same on Mint).

However, the bigger issue here is that this project it used to communicate with the ykneo-bitcoin JavaCard applet, which hasn't been released, making this tool pretty useless at the moment.

STRML commented 9 years ago

Ah okay. Well, if there's anything I can do to help with the javacard project, please let me know. We're looking at using Trezors at the moment, which has some advantages, but it is yet proven. Signing transactions with the NEO would be great.