Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: nopnop2002

webioOP (the defective clone of webiopi)

[Copy link]

4

Threads

22

Posts

219

Credits

Intermediate member

Rank: 3Rank: 3

Credits
219
Post time 2016-12-6 04:49:53 | Show all posts
wow ..thanks
Reply

Use magic Report

1

Threads

7

Posts

31

Credits

Novice

Rank: 1

Credits
31
Post time 2017-3-5 07:29:49 | Show all posts


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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

8

Threads

608

Posts

4086

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4086
Post time 2017-3-5 16:35:13 | Show all posts
Perhaps?

  1. apt install python-setuptools
Copy the Code

0

Threads

2

Posts

27

Credits

Novice

Rank: 1

Credits
27
Post time 2017-3-16 16:11:31 | Show all posts
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
Post time 2017-10-10 21:07:33 | Show all posts
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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

10

Threads

219

Posts

1974

Credits

Gold member

Rank: 6Rank: 6

Credits
1974
 Author| Post time 2017-10-10 21:58:00 | Show all posts
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
Post time 2017-10-10 22:52:27 | Show all posts
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 the Code
sudo: swig2.0 : command not found
  1. swig3.0 -thread -python wiringpi.i
Copy the Code
swig error : unrecognized option -thread
use  "swig help for avaible option

and
  1. sudo python3 setup.py install
Copy the 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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

10

Threads

219

Posts

1974

Credits

Gold member

Rank: 6Rank: 6

Credits
1974
 Author| Post time 2017-10-11 06:23:56 | Show all posts
@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
Post time 2017-10-11 07:11:17 | Show all posts
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
Post time 2017-12-22 13:39:39 | Show all posts
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 the Code
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-22 04:44 GMT+8 , Processed in 0.031451 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list