Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning on Run sudo python setup.py install #8

Open
rey1024 opened this issue Oct 17, 2014 · 3 comments
Open

Warning on Run sudo python setup.py install #8

rey1024 opened this issue Oct 17, 2014 · 3 comments

Comments

@rey1024
Copy link

rey1024 commented Oct 17, 2014

I Follow this instruction http://geraintw.blogspot.com/2014/01/rfid-and-raspberry-pi.html.

i run this script on Raspberry Pi B+ (raspbian). when i run 👍
sudo python setup.py install
running install
running build
running build_ext
building 'spi' extension
creating build
creating build/temp.linux-armv6l-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c spi.c -o build/temp.linux-armv6l-2.7/spi.o
spi.c:197:2: warning: initialization from incompatible pointer type [enabled by default]
spi.c:197:2: warning: (near initialization for âSpiMethods[0].ml_methâ) [enabled by default]
creating build/lib.linux-armv6l-2.7
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-armv6l-2.7/spi.o -o build/lib.linux-armv6l-2.7/spi.so
running install_lib
copying build/lib.linux-armv6l-2.7/spi.so -> /usr/local/lib/python2.7/dist-packages
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/SPI_Py-1.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/SPI_Py-1.0.egg-info

but when i run sudo python setup.py install again :
running install
running build
running build_ext
running install_lib
copying build/lib.linux-armv6l-2.7/spi.so -> /usr/local/lib/python2.7/dist-packages
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/SPI_Py-1.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/SPI_Py-1.0.egg-info

but when i test with python MFRC522-python/Read.py, cannot detect tag

@Grahamrich1
Copy link

So think I had the same but after restart it worked like your second attempt.

I just cant get it to run the Read.py

pi@raspberrypi:/gr_programs/RFID/SPI-Py/MFRC522-python $ sudo python read.py
can't open device: No such file or directory
pi@raspberrypi:
/gr_programs/RFID/SPI-Py/MFRC522-python $ sudo python Read.py
python: can't open file 'Read.py': [Errno 2] No such file or directory

Looks like a shortfall in my Python understanding but I cant see what Im doing wrong

@Grahamrich1
Copy link

rey1024,
Do we not need to use the Sudo command to allow us supervisory access to the GOIP pins to be able to read the RFID content?

@ncoshea
Copy link

ncoshea commented Mar 20, 2018

I have the same issue, any fix guys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants