aaron212 / pynfc

Automatically exported from code.google.com/p/pynfc
GNU General Public License v2.0
0 stars 0 forks source link

Compiling pynfc in OSX 10.6 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 nahuel.g...@gmail.com on 1 Apr 2011 at 1:17

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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 oyvind.h...@gmail.com on 14 Jun 2011 at 9:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 huubhuub...@gmail.com on 21 Jun 2011 at 2:47

GoogleCodeExporter commented 9 years ago
Same problem here running ubuntu 10.10 with libnfc 1.5.0 and python 2.7.1+

Original comment by gabe.arn...@gmail.com on 22 Jun 2011 at 12:34

GoogleCodeExporter commented 9 years ago
FYI, the svn trunk seems to be a pretty big change from the prepackaged 
version, and works fine for me.

Original comment by gabe.arn...@gmail.com on 22 Jun 2011 at 10:05