mlat-server icon indicating copy to clipboard operation
mlat-server copied to clipboard

cant run mlat-server --help

Open GregoryGHarding opened this issue 10 years ago • 21 comments

i have installed all the pre-reqs, but when i attempt to run mlat-server --help i get: "mlat-server: command not found"

any guidance would be greatly appreciated

GregoryGHarding avatar Nov 22 '15 16:11 GregoryGHarding

Probably "." isn't in your PATH, try ./mlat-server

mutability avatar Nov 22 '15 22:11 mutability

Tried ./mlat-server --help

Results in..

Traceback (most recent call last): File "./mlat-server", line 21, in import mlat.server.main ImportError: No module named 'mlat.server'

GregoryGHarding avatar Nov 23 '15 12:11 GregoryGHarding

It works for me, so there's something about your python install that you'll have to work out.

mutability avatar Nov 23 '15 12:11 mutability

ok, i knew there wasnt much support for the server, so thanks for trying anyway

if its any help, the client software runs fine

GregoryGHarding avatar Nov 23 '15 12:11 GregoryGHarding

Ah, if you have the client software installed systemwide, that interferes with the server packages. Try uninstalling the client, or run the server under virtualenv.

mutability avatar Nov 23 '15 13:11 mutability

im running a VM now with only server and prerequisites installed. does this give any hints as to whats going on?

untitled

GregoryGHarding avatar Dec 08 '15 01:12 GregoryGHarding

Isn't the error message selfexplanatory?

mutability avatar Dec 08 '15 01:12 mutability

yes, i got that, i posted wrong screen, the error im getting says numpy module not found. but it is installed, ive checked import numpy

GregoryGHarding avatar Dec 08 '15 01:12 GregoryGHarding

is it possible its defaulting installs to python 2.7 and not 3?

GregoryGHarding avatar Dec 08 '15 01:12 GregoryGHarding

The shebang line explictly invokes python3.4, so nope, it's not that. When you check that numpy is importable, are you running python3?

mutability avatar Dec 08 '15 01:12 mutability

thats the thing, i run python and import numpy, it goes fine, then run python3 import numpy fails

GregoryGHarding avatar Dec 08 '15 01:12 GregoryGHarding

Show me exactly what you're running and what you get back.

mutability avatar Dec 08 '15 02:12 mutability

ive gone back and installed each prerequisite using python3 instead of just python command and i can use mlat-server now. sorry to be a pain i now you dont like providing alot of support. is it possible you can throw up an assembled simple example mlat-server arguments

GregoryGHarding avatar Dec 08 '15 02:12 GregoryGHarding

#!/bin/sh
D=`dirname $0`
MLAT_CPU_PROFILE=1 $D/mlat-server \
  --client-listen 40147:40147 \
  --basestation-connect localhost:31003 \
  --filtered-basestation-connect localhost:31004 \
  --write-csv $D/positions.csv \
  --work-dir $D \
  --check-leaks \
  >>$D/server.log 2>&1 &
echo "$!" >$D/server.pid

mutability avatar Dec 08 '15 02:12 mutability

trying to activate the tools/sync and coverage pages

i have apache installed and have synlinked tools to www root. am i missing anything because the page is discriptive text and dosnt refresh to show sync status, same for coverage

sorry for asking alot of questions, im trying to learn/understand this software the best i can

GregoryGHarding avatar Dec 15 '15 12:12 GregoryGHarding

Coverage maps requires that you generate the tiles separately e.g. from cronjob. The sync page requires that you make sync.json (generated by the server) available in the same dir - e.g. symlink it.

mutability avatar Dec 20 '15 18:12 mutability

Hello. I can not start the server with the same error. ”RuntimeError: Please update AGPL_SERVER_CODE_URL in mlat/server/config.py” How is this update done? default

jairforce1 avatar Jun 09 '17 15:06 jairforce1

Do as the RuntimeError says.

Go into mlat/server/ use editor to open config.py nano config.py Find the line

"#AGPL_SERVER_CODE_URL = "https://github.com/mutability/mlat-server"

update the link / remove hashtag

Eiwind avatar Jun 10 '17 19:06 Eiwind

Thank you. The update issue has been resolved. However, other errors can not be resolved yet. I installed the prerequisite module but it does not work. The import of modules seems to go wrong.

jairforce1 avatar Jun 13 '17 09:06 jairforce1

Installation of pykalman is completed However, Pearlman's Ehler comes out.

default

jairforce1 avatar Jun 13 '17 13:06 jairforce1

Hello I also have a problem with mlat.server.main. I can't import this module and I don't know where to find it! Can anyone help me? I tried a lot of version of python in Windows and macOS. Thanks!

GKVELT avatar Jul 03 '19 13:07 GKVELT