Open ZL1RAH opened 4 years ago
Hi, thanks for this report. However it seems there is a problem with matplotlib, please see this thread: https://github.com/matplotlib/matplotlib/issues/9344 - maybe you could follow advises mentioned there (like re-installing matplotlib, or downgrading it)?
Anyway, please share your progress in solving this problem here :)
Hello Thank you for the reply, but I managed to get that going by typing "sudo apt-get install python-matplotlib" However I'm stuck because the rest seems to be running, expect the flask server. I don't see any web pages, and when I change the port number, the startup crashes: This is my startup:
2020-04-23 09:57 ⚡ Program start 2020-04-23 09:57 Killing all remaining rtl_ processes... WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance. 2020-04-23 09:57 Reading the default dongle shift Serving Flask app "autowx2_functions" (lazy loading) Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. Debug mode: off 2020-04-23 09:57 Using the default dongle shift: 0 ppm Running on http://127.0.0.1:5010/ (Press CTRL+C to quit) <----- so called running* 2020-04-23 09:57 2. discard NOAA-19, keep ISS 2020-04-23 09:57 Recalculating the new pass table and saving to disk.
How do I get the flask to run?
On 23/04/2020 6:23 pm, filips wrote:
Hi, thanks for this report. However it seems there is a problem with matplotlib, please see this thread: matplotlib/matplotlib#9344 https://github.com/matplotlib/matplotlib/issues/9344 - maybe you could follow advises mentioned there (like re-installing matplotlib, or downgrading it)?
Anyway, please share your progress in solving this problem here :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/filipsPL/autowx2/issues/95#issuecomment-618203757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIF2574DG7MXWLT3HGX2RODRN7NELANCNFSM4MOUN2LQ.
-- Kind Regards, Rodger Hanson [ZL1RAH] Tel: +64 9 278-8683 Mob: +64 27 5687659 Email: rodger_hanson@slingshot.co.nz Web: https://zl1rah.blogspot.co.nz/ QRZ: https://qrz.com/db/zl1rah
/Please consider the environment before printing this email/
WebSocket transport not available
Hallo from Sweden to New Zealand,
please try to see how it will change the startup if you install pip install gevent It seems that this is missing.
I also recommend to use Apache or lighttpd instead of flask. Working better for me.
73 Tim de SA7BNT
Hello Tim
Thanks for the email.
I had already done that command so I've tried it again and no fix. I should be able to see from another computer??
I get this exception message: Should I upgrade pip??
Exception: Traceback (most recent call last): File "/home/pi/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/pi/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/home/pi/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/home/pi/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/home/pi/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/home/pi/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/home/pi/.local/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber shutil.copyfile(srcfile, destfile) File "/usr/lib/python2.7/shutil.py", line 97, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/greenlet.so' You are using pip version 9.0.1, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
I ALSO GET THIS RANDOM MESSAGE:
2020-04-23 21:00 Using the good old dongle shift (a): 0 ppm 2020-04-23 21:00 We have still 52:24s free time to the next pass. Let's do something useful! 2020-04-23 21:00 Running: /home/pi/autowx2/bin/rtl_433.sh for 52:24s ['/home/pi/autowx2/bin/rtl_433.sh', '3144', '0'] /home/pi/autowx2/ ZL1RAH fatal: No names found, cannot describe anything. timeout: failed to run command 'rtl_433': No such file or directory
I don't know where to fix this?
Is it alright that I used Raspbian Lite??
Cheers for now and thanks again:
Kind Regards, Rodger Hanson Tel: +64 9 278-8683 Mob: +64 27 5687659 Email: rodger_hanson@slingshot.co.nz Web: https://zl1rah.blogspot.co.nz/ [3]
On 2020-04-24 03:16, SA7BNT wrote:
WebSocket transport not available
Hallo from Sweden to New Zealand,
please try to see how it will change the startup if you install pip install gevent It seems that this is missing.
73 Tim de SA7BNT
-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].
--
Please consider the environment before printing this email
[1] https://github.com/filipsPL/autowx2/issues/95#issuecomment-618456648 [2] https://github.com/notifications/unsubscribe-auth/AIF2573R5SCUPDH3BA3DMPTROBLUZANCNFSM4MOUN2LQ [3] https://zl1rah.blogspot.co.nz/
Permission denied
Permission denied Try to run pip as sudo if you install something. And yes why not upgrade but run it as i wrote. Use Sudo or command "su -" and then as root
Best
Hello there OK I had to do the following to get gevent to install: It was missing the ffi library
However I still get this error: [2020-04-24 01:52:56,026] WARNING in init: WebSocket transport not available. Install gevent-websocket for improved performance.
On 24/04/2020 8:14 am, SA7BNT wrote:
Permission denied
Permission denied Try to run pip as sudo if you install something. And yes why not upgrade but run it as i wrote. Use Sudo or command "su -" and then as root
Best
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/filipsPL/autowx2/issues/95#issuecomment-618640784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIF2577W46NHXSISVYFJO23ROCOSJANCNFSM4MOUN2LQ.
-- Kind Regards, Rodger Hanson [ZL1RAH] Tel: +64 9 278-8683 Mob: +64 27 5687659 Email: rodger_hanson@slingshot.co.nz Web: https://zl1rah.blogspot.co.nz/ QRZ: https://qrz.com/db/zl1rah
/Please consider the environment before printing this email/
Hey Rodger,
that is not an error just a warning. You may give this a try. https://pypi.org/project/gevent-websocket/ Use sudo or login as root.
Best
Hello Thanks for the help so far. I think its mostly working, except that I cannot see the flask web server from any other computer on my network. I can see it from the Rasp PI. Is there a way to change this and how? It's only looking at 127.0.0.1. I want to look at 192.168.1.3 on my network.
Kind Regards, Rodger Hanson [ZL1RAH] Tel: +64 9 278-8683 Mob: +64 27 5687659 Email: rodger_hanson@slingshot.co.nz Web: https://zl1rah.blogspot.co.nz/ QRZ: https://qrz.com/db/zl1rah
/Please consider the environment before printing this email/ On 24/04/2020 5:44 pm, SA7BNT wrote:
Hey Rodger,
that is not an error just a warning. You may try to give this a try. https://pypi.org/project/gevent-websocket/
Use sudo or login as root. Best
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/filipsPL/autowx2/issues/95#issuecomment-618813702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIF2576HKAZOYVJEUQ32MXLROERMVANCNFSM4MOUN2LQ.
Hallo Rodger,
im not using flask just because of that. I was getting the same problem and could not figure out how to get access to flask from the locale network or give access to public. Im using Apache2. Makes some symlinks to my locale webserver and done.
So im sorry at this point i cant help you.
Best from Sweden
Take care of you
Hello All I did some reseach and found this:
Change the flask IP from 127.0.0.1 to 0.0.0.0 so that all machines on that net can see the web server
Change: /usr/local/lib/python2.7/dist-packages/flask_socketio/ init.py to host='0.0.0.0'.
On 25/04/2020 12:14 pm, SA7BNT wrote:
Hallo Rodger,
im not using flask just because of that. I was getting the same problem and could not figure out how to get access to flask from the locale network or give access to public. Im using Apache2. Makes some symlinks to my locale webserver and done.
So im sorry at this point i cant help you.
Best from Sweden
Take care of you
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/filipsPL/autowx2/issues/95#issuecomment-619288252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIF2574IACH2XDMB3CS4ZCLROITM5ANCNFSM4MOUN2LQ.
-- Kind Regards, Rodger Hanson [ZL1RAH] Tel: +64 9 278-8683 Mob: +64 27 5687659 Email: rodger_hanson@slingshot.co.nz Web: https://zl1rah.blogspot.co.nz/ QRZ: https://qrz.com/db/zl1rah
/Please consider the environment before printing this email/
Hello All I wonder if somebody ca tell me if this is usual or not: while running the autowx2.py this comes up.
2020-04-25 13:37 Running: /home/pi/autowx2/bin/rtl_433.sh for 144:09s ['/home/pi/autowx2/bin/rtl_433.sh', '8649', '0'] /home/pi/autowx2/ ZL1RAH fatal: not a git repository (or any of the parent directories): .git <-- whats wrong here timeout: failed to run command ‘rtl_433’: No such file or directory <-- whats wrong here 2020-04-25 14:12 2. discard NOAA-19, keep ISS
On 25/04/2020 12:14 pm, SA7BNT wrote:
Hallo Rodger,
im not using flask just because of that. I was getting the same problem and could not figure out how to get access to flask from the locale network or give access to public. Im using Apache2. Makes some symlinks to my locale webserver and done.
So im sorry at this point i cant help you.
Best from Sweden
Take care of you
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/filipsPL/autowx2/issues/95#issuecomment-619288252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIF2574IACH2XDMB3CS4ZCLROITM5ANCNFSM4MOUN2LQ.
-- Kind Regards, Rodger Hanson [ZL1RAH] Tel: +64 9 278-8683 Mob: +64 27 5687659 Email: rodger_hanson@slingshot.co.nz Web: https://zl1rah.blogspot.co.nz/ QRZ: https://qrz.com/db/zl1rah
/Please consider the environment before printing this email/
You may missing rtl_433 https://github.com/merbanan/rtl_433
@ZL1RAH rtl_433 is not required to run autowx2. Could you share your config file /autowx2_conf.py
? Maybe you have it enabled by default in:
scriptToRunInFreeTime = baseDir + "bin/rtl_433.sh"
just comment that line and uncomment the follwing:
scriptToRunInFreeTime = False
best, Filip
gm
i have too problemes when i send cmd ./autowx2.py 👍
2020-06-06 09:45 ⚡ Program start
2020-06-06 09:45 Killing all remaining rtl_* processes...
WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.
2020-06-06 09:45 Reading the default dongle shift
i follow infos which are in this thread but havnt results, have you any idea ? Thank Eric F1SMV
If it is a fresh install try to run wxtoimg by hand and accept the license.
73 SA7BNT de Tim
thank Eric 73
Hey Eric, can you please check that all of the https://github.com/filipsPL/autowx2/blob/master/requirements.txt is being installed.
Best
i dont understand how install flack..
Thank in advance 73 Eric
ps : i think i found : pip install flask-socketio is it correct ?
i saw in other thead one people installed nginx reverse proxy..after this error but after read doc seems hard to write the setup
Having a problem getting autowx2.py to run: pi@raspberrypi:~/autowx2 $ ./autowx2.py - It looks like something with how matplotlib might be installed, and not sure what to do here. Can you help? Error codes below:
Traceback (most recent call last): File "./autowx2.py", line 13, in
from autowx2_functions import * # all functions and magic hidden here
File "/home/pi/autowx2/autowx2_functions.py", line 26, in
import matplotlib
File "/usr/local/lib/python2.7/dist-packages/matplotlib/init.py", line 133, in
from matplotlib.rcsetup import defaultParams, validate_backend, cycler
File "/usr/local/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 31, in
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "/usr/local/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 28, in
from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache