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

Having a problem getting autowx2.py to run: #95

Open
ZL1RAH opened this issue Apr 23, 2020 · 20 comments
Open

Having a problem getting autowx2.py to run: #95

ZL1RAH opened this issue Apr 23, 2020 · 20 comments

Comments

@ZL1RAH
Copy link

ZL1RAH commented Apr 23, 2020

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

@filipsPL
Copy link
Owner

Hi, thanks for this report. However it seems there is a problem with matplotlib, please see this thread: matplotlib/matplotlib#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 :)

@ZL1RAH
Copy link
Author

ZL1RAH commented Apr 23, 2020 via email

@SA7BNT
Copy link
Contributor

SA7BNT commented Apr 23, 2020

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

@ZL1RAH
Copy link
Author

ZL1RAH commented Apr 23, 2020 via email

@SA7BNT
Copy link
Contributor

SA7BNT commented Apr 23, 2020

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

@ZL1RAH
Copy link
Author

ZL1RAH commented Apr 24, 2020 via email

@SA7BNT
Copy link
Contributor

SA7BNT commented Apr 24, 2020

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

@ZL1RAH
Copy link
Author

ZL1RAH commented Apr 24, 2020 via email

@SA7BNT
Copy link
Contributor

SA7BNT commented Apr 25, 2020

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

@ZL1RAH
Copy link
Author

ZL1RAH commented Apr 25, 2020 via email

@ZL1RAH
Copy link
Author

ZL1RAH commented Apr 25, 2020 via email

@SA7BNT
Copy link
Contributor

SA7BNT commented Apr 25, 2020

You may missing rtl_433
https://github.com/merbanan/rtl_433

@filipsPL
Copy link
Owner

@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

@Eric738
Copy link

Eric738 commented Jun 6, 2020

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

  • Serving Flask app "autowx2_functions" (lazy loading)
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
    2020-06-06 09:45 Recently used dongle shift is: 0.0 ppm
  • Running on http://127.0.0.1:5010/ (Press CTRL+C to quit)
    2020-06-06 09:45 2. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-19, keep ISS
    2020-06-06 09:45 1. discard NOAA-19, keep ISS
    2020-06-06 09:45 2. discard NOAA-15, keep ISS
    2020-06-06 09:45 1. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-19, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-18, keep METEOR-M2
    2020-06-06 09:45 Recalculating the new pass table and saving to disk.
    2020-06-06 09:45 2. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-19, keep ISS
    2020-06-06 09:45 1. discard NOAA-19, keep ISS
    2020-06-06 09:45 2. discard NOAA-15, keep ISS
    2020-06-06 09:45 1. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-15, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-19, keep METEOR-M2
    2020-06-06 09:45 1. discard NOAA-18, keep METEOR-M2
    2020-06-06 09:45 2. discard NOAA-18, keep METEOR-M2
    2020-06-06 09:45 2. discard NOAA-18, keep METEOR-M2
    2020-06-06 09:45 2. discard NOAA-19, keep ISS
    2020-06-06 09:45 2. discard NOAA-18, keep METEOR-M2
    2020-06-06 09:45 2. discard NOAA-18, keep Radiosonde
    2020-06-06 09:45 2. discard NOAA-18, keep Radiosonde
    This is a miracle!
    2020-06-06 09:45 Next five passes:
    2020-06-06 09:45 ● NOAA-18 :: 2020-06-06 10:20 to 2020-06-06 10:34, dur: 14:07, max el. 27°; azimuth: 94° (E→) f=137912500Hz; Decoding: modules/noaa/noaa.sh
    2020-06-06 09:45 ● METEOR-M2 :: 2020-06-06 10:47 to 2020-06-06 11:01, dur: 14:13, max el. 39°; azimuth: 291° (W←) f=137900000Hz; Decoding: modules/meteor-m2/meteor.sh
    2020-06-06 09:45 ● NOAA-18 :: 2020-06-06 12:01 to 2020-06-06 12:15, dur: 14:37, max el. 42°; azimuth: 292° (W←) f=137912500Hz; Decoding: modules/noaa/noaa.sh
    2020-06-06 09:45 ● Radiosonde :: 2020-06-06 12:20 to 2020-06-06 14:20, dur: 120:00, max el. 0°; azimuth: 0° (N↑) f=98796500Hz; Decoding: modules/radiosonde/run_radiosonde_scanner.sh
    2020-06-06 09:45 ● ISS :: 2020-06-06 14:20 to 2020-06-06 14:30, dur: 10:13, max el. 83°; azimuth: 145° (SE↘) f=143625000Hz; Decoding: modules/iss/iss_voice_mp3.sh
    2020-06-06 09:45 Next pass:
    2020-06-06 09:45 ● NOAA-18 :: 2020-06-06 10:20 to 2020-06-06 10:34, dur: 14:07, max el. 27°; azimuth: 94° (E→) f=137912500Hz; Decoding: modules/noaa/noaa.sh
    2020-06-06 09:45 Killing all remaining rtl_* processes...
    Exception in thread Thread-1:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
    File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
    File "/home/pi/autowx2/autowx2_functions.py", line 722, in mainLoop
    while not runTest():
    File "/home/pi/autowx2/autowx2_functions.py", line 268, in runTest
    stderr=subprocess.PIPE)
    File "/usr/lib/python2.7/subprocess.py", line 394, in init
    errread, errwrite)
    File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory

i follow infos which are in this thread but havnt results, have you any idea ?
Thank
Eric F1SMV

@SA7BNT
Copy link
Contributor

SA7BNT commented Jun 6, 2020

If it is a fresh install try to run wxtoimg by hand and accept the license.

73
SA7BNT de Tim

@Eric738
Copy link

Eric738 commented Jun 6, 2020

thank Tim, i thought was fix but run in loop 👍 in the window :
43625000Hz; Decoding: modules/iss/iss_voice_mp3.sh
2020-06-06 16:06 Killing all remaining rtl_* processes...
2020-06-06 16:06 !! Recording ● ISS :: 2020-06-06 15:57 to 2020-06-06 16:07, dur: 09:41, max el. 24°; azimuth: 344° (NNW↑↖) f=143625000Hz; Decoding: modules/iss/iss_voice_mp3.sh
La
fileNameCore=20200606-1557_ISS
satellite=ISS
start=1591451872
azimuth=344
/home/pi/autowx2/
duration=93
peak=24
freq=143625000
Recording to mp3

and close by 👍
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pi/autowx2/autowx2_functions.py", line 722, in mainLoop
while not runTest():
File "/home/pi/autowx2/autowx2_functions.py", line 268, in runTest
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

thank Eric 73

@SA7BNT
Copy link
Contributor

SA7BNT commented Jun 6, 2020

Hey Eric,
can you please check that all of the
https://github.com/filipsPL/autowx2/blob/master/requirements.txt
is being installed.

Best

@Eric738
Copy link

Eric738 commented Jun 7, 2020

Bonjour Tim soon the End hi,..

sudo ./autowx2.py
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 36, in
from flask_socketio import SocketIO, emit
ImportError: No module named flask_socketio

i dont understand how install flack..

Thank in advance
73 Eric

ps : i think i found : pip install flask-socketio is it correct ?

@SA7BNT
Copy link
Contributor

SA7BNT commented Jun 7, 2020

@Eric738
Copy link

Eric738 commented Jun 7, 2020

it would have been too easy...Houston we have a probléme :)
i installed python 3.8.0

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pi/autowx2/autowx2_functions.py", line 722, in mainLoop
while not runTest():
File "/home/pi/autowx2/autowx2_functions.py", line 268, in runTest
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

i saw in other thead one people installed nginx reverse proxy..after this error but after read doc seems hard to write the setup

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

4 participants