pynfc
pynfc copied to clipboard
Compiling pynfc in OSX 10.6
What steps will reproduce the problem?
1. you have to change in setup.py line that says /usr/include ->
/usr/local/include (default dir where libnfc is install)
2. python setup.py build_ext
some (a lot) warnings...
3. sudo python setup.py install
4. Let's try the example... python mifareauth.py
What is the expected output? What do you see instead?
I expected to see The example running... but:
Traceback (most recent call last):
File "mifareauth.py", line 20, in <module>
import pynfc, pycrypto1, py14443a
File "/Users/moebius/Downloads/RFID_Project/Software/pynfc-0.0.4/pynfc.py", line 30, in <module>
MC_AUTH_A = nfc.MC_AUTH_A
AttributeError: 'module' object has no attribute 'MC_AUTH_A'
What version of the product are you using? On what operating system?
libnfc1.4.2 - OSX 10.6 - pynfc 0.0.4
Please provide any additional information below.
-
Original issue reported on code.google.com by [email protected] on 1 Apr 2011 at 1:17
Likewise on Ubuntu Linux (natty), after
$ python setup.py build_ext
$ python setup.py install
to a virtualenv.
(vrtlnv)jdthood@localhost:pynfc-0.0.4$ python mifareauth.py
Traceback (most recent call last):
File "mifareauth.py", line 20, in <module>
import pynfc, pycrypto1, py14443a
File "/home/jdthood/src/nfc/pynfc_RELEASE/pynfc-0.0.4/pynfc.py", line 30, in <module>
MC_AUTH_A = nfc.MC_AUTH_A
AttributeError: 'module' object has no attribute 'MC_AUTH_A'
Original comment by jdthood on 11 May 2011 at 10:51
Likewise. Ubuntu 10.10. Libnfc 1.4.2. Python 2.6.6.
File "/usr/local/lib/python2.6/dist-packages/pynfc.py", line 30, in <module>
MC_AUTH_A = nfc.MC_AUTH_A
AttributeError: 'module' object has no attribute 'MC_AUTH_A'
Original comment by [email protected] on 14 Jun 2011 at 9:37
[deleted comment]
I have the same error:
AttributeError: 'module' object has no attribute 'MC_AUTH_A'
on ubuntu 10.10 with python 2.6.6
Original comment by [email protected] on 21 Jun 2011 at 2:47
Same problem here running ubuntu 10.10 with libnfc 1.5.0 and python 2.7.1+
Original comment by [email protected] on 22 Jun 2011 at 12:34
FYI, the svn trunk seems to be a pretty big change from the prepackaged
version, and works fine for me.
Original comment by [email protected] on 22 Jun 2011 at 10:05