This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webapp - No connection (newest op image)
#11
I think the problem can be fixed on openplotter installations with the follwong workaround:

Code:
pip uninstall python-socketio python-engineio
pip install "python-socketio<5"
Reply
#12
This is extremely frustrating I have tried the instructions on install python-socketio<5 and Flask-SocketIO and I get the error message "could not find a version that satisfies the requirement.....

No matching distribution found.

I have also looked at the "https://github.com/pypilot/pypilot/issues/79" with no luck any help would be appreciated... 

When I check pypilot_client it does show the connection is working and I am seeing the data flow, however I am still seeing the pypilot server: Not connected
Reply
#13
Sorry about this. The new version of pypilot in git should not require the old version. In fact, installing python-socketio<5 will cause you more pain as it requires the new version and this will pull other dependencies of the wrong versions.

Please just install pypilot from git by:
git pull https://github.com/pypilot/pypilot
cd pypilot
sudo python3 setup.py install
sudo python3 setup.py install

Please post output if there is any trouble
Reply
#14
Hi Sean, I am connected to the control interface, but have completely lost the browser control (localhost), get error "localhost refused to connect".  i also tried to install the OpenCPN plugin, but it returns a 404 error; is this because of the latest update not working with it?
Reply
#15
the opencpn installer is broken, perhaps you can download the package:
https://cloudsmith.io/~opencpn/repos/pyp.../packages/
or
https://ci.appveyor.com/project/seandepa.../artifacts

Or compile from source.


As for the browser control, it is probably because you have manually installed the wrong version of packages. I need much more info, like python3 -m pip freeze output to determine this. You may need to clear the browser cache as well.
Reply
#16
(2021-07-23, 06:45 PM)esm Wrote: This is extremely frustrating I have tried the instructions on install python-socketio<5 and Flask-SocketIO and I get the error message "could not find a version that satisfies the requirement.....

No matching distribution found.

I have also looked at the "https://github.com/pypilot/pypilot/issues/79" with no luck any help would be appreciated... 

When I check pypilot_client it does show the connection is working and I am seeing the data flow, however I am still seeing the pypilot server: Not connected

There has been a last update to the pypilot installation script 16 days ago. I case your clone was from before that date, I'd suggest you'd pull the latest. I just tried a fresh clone on a fresh openplotter image, and issue 79 seems to have been resolved, so I'll close it in a minute. This also means that the specific instructions regarding "python-socketio<5" are now obsolete; I have removed them from the pypilot workbook.
Reply
#17
(2021-07-24, 04:46 AM)seandepagnier Wrote: the opencpn installer is broken, perhaps you can download the package:
https://cloudsmith.io/~opencpn/repos/pyp.../packages/
or
https://ci.appveyor.com/project/seandepa.../artifacts

Or compile from source.


As for the browser control, it is probably because you have manually installed the wrong version of packages.  I need much more info, like python3 -m pip freeze output to determine this.   You may need to clear the browser cache as well.

I tried clearing the cache to no avail.

Here is the python3 -m pip freeze output:

pi@openplotter:~ $ python3 -m pip freeze
Adafruit-Blinka==6.10.0
adafruit-circuitpython-ads1x15==2.2.8
adafruit-circuitpython-bme280==2.6.4
adafruit-circuitpython-bmp280==3.2.8
adafruit-circuitpython-bmp3xx==1.3.6
adafruit-circuitpython-busdevice==5.0.6
adafruit-circuitpython-HTU21D==0.11.0
adafruit-circuitpython-ina260==1.3.1
adafruit-circuitpython-register==1.9.5
Adafruit-GPIO==1.0.4
Adafruit-PCA9685==1.0.1
Adafruit-PlatformDetect==3.13.3
Adafruit-PureIO==1.1.8
asn1crypto==0.24.0
Babel==2.6.0
bidict==0.21.2
blinker==1.4
bme680==1.1.1
certifi==2018.8.24
chardet==3.0.4
Click==7.0
colorama==0.3.7
colorzero==1.1
cryptography==2.6.1
cupshelpers==1.0
decorator==4.3.0
entrypoints==0.3
Flask==1.0.2
Flask-Babel==0.11.2
Flask-SocketIO==2.9.0
gevent==21.1.2
gevent-websocket==0.10.1
gpiozero==1.6.2
gps==3.19
greenlet==1.1.0
icm20948==0.0.2
idna==2.6
ifaddr==0.1.6
itsdangerous==0.24
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.0
numpy==1.16.2
olefile==0.46
openplotterCan==2.2.2
openplotterDashboards==2.2.3
openplotterI2c==2.2.1
openplotterNetwork==2.1.5
openplotterOpencpnInstaller==2.2.3
openplotterPypilot==2.1.1
openplotterSdrVhf==2.1.1
openplotterSerial==2.2.1
openplotterSettings==2.8.1
openplotterSignalkInstaller==2.4.2
pexpect==4.6.0
pgzero==1.2
picamera==1.13
pigpio==1.78
Pillow==5.4.1
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
pyftdi==0.53.1
pygame==1.9.4.post1
pyglet==1.5.17
PyGObject==3.30.4
pyinotify==0.9.6
PyOpenGL==3.1.0
pyOpenSSL==19.0.0
pypilot==0.24
PyRIC==0.1.6.3
pyrtlsdr==0.2.92
pyserial==3.4
pysmbc==1.0.15.6
python-apt==1.8.4.3
python-engineio==2.3.2
pytz==2019.1
pyudev==0.21.0
pyusb==1.1.1
PyWavefront==1.3.3
pyxdg==0.25
reportlab==3.5.13
requests==2.21.0
rpi-ws281x==4.2.6
RPi.GPIO==0.7.0
RTIMULib==8.0.0
scipy==1.1.0
SecretStorage==2.3.1
simplejson==3.16.0
six==1.12.0
smbus==1.1.post2
spidev==3.5
ssh-import-id==5.7
sysv-ipc==1.1.0
ujson==1.35
urllib3==1.24.1
websocket-client==1.0.1
Werkzeug==0.14.1
wxPython==4.0.4
zeroconf==0.21.3
zope.event==4.5.0
zope.interface==5.4.0
Reply
#18
You have
Flask-SocketIO==2.9.0

I have
Flask-SocketIO==5.0.0


What do you get from the output of running the setup script? It should force this with the latest commit, so I want to know why it did not.
Reply
#19
(2021-07-25, 08:57 PM)seandepagnier Wrote: You have
Flask-SocketIO==2.9.0

I have
Flask-SocketIO==5.0.0


What do you get from the output of running the setup script?   It should force this with the latest commit, so I want to know why it did not.

pi@openplotter:~/pypilot $ sudo python3 setup.py install
running install
running bdist_egg
running egg_info
writing pypilot.egg-info/PKG-INFO
writing dependency_links to pypilot.egg-info/dependency_links.txt
writing entry points to pypilot.egg-info/entry_points.txt
writing top-level names to pypilot.egg-info/top_level.txt
reading manifest file 'pypilot.egg-info/SOURCES.txt'
writing manifest file 'pypilot.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
running build_ext
building 'pypilot/arduino_servo/_arduino_servo' extension
swigging pypilot/arduino_servo/arduino_servo.i to pypilot/arduino_servo/arduino_servo_wrap.cpp
swig -python -c++ -o pypilot/arduino_servo/arduino_servo_wrap.cpp pypilot/arduino_servo/arduino_servo.i
Unable to find file 'pypilot/arduino_servo/arduino_servo.i'.
error: command 'swig' failed with exit status 1
Reply
#20
sure doesnt look like you pulled pypilot from git recently
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)