please choosego to mobile | Continue to access the PC version
Author: nopnop2002

webioOP (the defective clone of webiopi)

[Copy link]

4

threads

22

posts

219

credits

Intermediate member

Rank: 3Rank: 3

credits
219
Published in 2016-12-6 04:49:53 | Show all floors
wow ..thanks
Reply

Use magic report

1

threads

7

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-3-5 07:29:49 | Show all floors


Hello everyone, I'm trying this project with a more orange one just configured with armbian Ubuntu Xenial Legacy 3.4.113 (version desktop), when downloading flask me an error
exactly you get this error message " could not import setuptools which is required to install from a source distribution. please install setuptools" will post a screen ... you have suggestions on how to proceed? thank you so much

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

9

threads

634

posts

4429

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4429
Published in 2017-3-5 16:35:13 | Show all floors
Perhaps?

  1. apt install python-setuptools
Copy code

0

threads

2

posts

27

credits

Novice

Rank: 1

credits
27
Published in 2017-3-16 16:11:31 | Show all floors
Hi, I followed the guide and I managed to install everything correctly. I found a problem in the use: if I use 3.3V when switch to OFF, the tension appears to be 0V, and so everything is right. But if you use the 5V switch to OFF when the voltage drops to approximately 2V and not to 0V, how come? Can it be solved?

1

threads

7

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-10-10 21:07:33 | Show all floors
Hello everyone, after a while I resumed a more orange card test, now I've been able to advance, but I still can not access the webserver, I attach a video with the procedure, and always in this post a guideline that I followed the front page of this thread and a site listed

1) I installed the image "Armbian_5.30_Orangepione_Ubuntu_xenial_default_3.4.113_desktop.img" on a 16gb sd with the ethcer portable program

2) At the first booted user root and password 1234
(1234) immediately changed to a safer one
3) created alexp user and relative password

once in ubuntu ui, set Italian keyboard and started the terminal

then in series I executed the commands as a guide
that is
1.Install flask with this page.
http://mattrichardson.com/Raspberry-Pi-Flask/

sudo apt-get install python-pip
sudo pip install flask

I created the hello-flask.py file with writer and tried it, I can not get the test here already, cmq i went on

with
2.Install WiringPi-Python-OP Library from here.
https://github.com/lanefu/WiringPi-Python-OP

git clone --recursive https://github.com/lanefu/WiringPi-Python-OP.git
cd WiringPi-Python-OP

sudo apt-get install python-dev python-setuptools swig

cd WiringPi
sudo ./build

at this point I continued with step n.3
3.Download webioOP.tar and put it in your OPI.
cd $ HOME / flask
tar xvf webioOP.tar

I created a flask name folder under home / alexp (HOME)
and pasted the previously downloaded file, executed by tar xcf webioOP.tar command from the terminal so I extracted the tar arch files in that folder

4.Start Python.
$ cd $ HOME / flask
$ sudo python ./webioOP.py

when I try to execute this step, when submitting sudo python ./webioOP.py, it sends me the following error (referring to attached photo)
how could I solve it, can anyone help me with a brief step by step explanation? thank you so much


I also uploaded a video on youtube with all the lines written and related messages that appear to me ... thank you again
https://youtu.be/_a5hxZbQ3g0

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
 Author| Published in 2017-10-10 21:58:00 | Show all floors
Edited by nopnop2002 at 2017-10-10 22:01

@alexp1

You need this.

##Generate Bindings swig2.0 -python wiringpi.i or swig3.0 -thread -python wiringpi.i

##Build & install with sudo python setup.py install

Or Python 3: sudo python3 setup.py install

1

threads

7

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-10-10 22:52:27 | Show all floors
Edited by alexp1 at 2017-10-11 07:07

hi , Nopnop2002 , i thank you very much for your help, pultroppo while i try to write the commands I come to video error messagesthe following when I write the first command

  1. swig2.0 -python wiringpi.i
Copy code
sudo: swig2.0 : command not found
  1. swig3.0 -thread -python wiringpi.i
Copy code
swig error : unrecognized option -thread
use  "swig help for avaible option

and
  1. sudo python3 setup.py install
Copy code
can't open file "setup.py" : [errno 2] no such file or directory
if type in alexp@orangepione:/WiringPi-Python-OP/WiringPi

or
trackback (most recent call last):
file "setup.py" , line 3, in <module>
from setuptools import setup, find_packages, extension
ImportError: no module named "setuptools"
if type in alexp@orangepione:/WiringPi-Python-OP
---------

if it can be helpful I tried to send these two commands from alex @ orangepione:

  sudo apt update

and now when type

  $ sudo python ./webioOP.py
and
[backcolor=rgba(0, 0, 0, 0.024)][size=12.1007px]sudo pip install wiringpi

view
  photo link 2

Thanks again ...



***************************update: I managed to run the project. as soon as possible I try to make all the steps and write down the phases then I'll write in this hread the steps step by step for who might be in the situation of not being able to run the project again thanks to nopnop2002*******

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
 Author| Published in 2017-10-11 06:23:56 | Show all floors
@alexp1

$ sudo apt-get install python-dev python-setuptools swig
$ cd WiringPi-Python-OP
$ swig2.0 -python wiringpi.i
$ sudo python setup.py install
$ cd tests
$ sudo python test.py

1

threads

7

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-10-11 07:11:17 | Show all floors
nopnop2002 replied at 2017-10-11 06:23
@alexp1

$ sudo apt-get install python-dev python-setuptools swig

Thank you so much, I believe that the key steps are exactly what you indicated, I read the message after updating my message before the success of the project .... thank you again and thank you for the great project that you donated it to everyone !! , in the coming days I will try to use relays and play games turn off lights etc .. thanks again

0

threads

1

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2017-12-22 13:39:39 | Show all floors
Good afternoon. I tried to do your instructions. Everything compiled, but does not want to work. Please tell me how to fix?
  1. root@orangepipc:~/WiringPi-Python-OP# sudo python webioOP.py
  2. Unable to determine hardware version. I see: Hardware   : sun8i
  3. ,
  4. - expecting BCM2708, BCM2709 or BCM2835.
  5. If this is a genuine Raspberry Pi then please report this
  6. to projects@drogon.net. If this is not a Raspberry Pi then you
  7. are on your own as wiringPi is designed to support the
  8. Raspberry Pi ONLY.
Copy code
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list