neolink icon indicating copy to clipboard operation
neolink copied to clipboard

Syntax error: ")" unexpected

Open misosec opened this issue 1 year ago • 5 comments

Describe the bug Neolink do not start at all because of error: Syntax error: ")" unexpected

To Reproduce

  1. Install packages like this:
sudo apt install \
  libgstrtspserver-1.0-0 \
  libgstreamer1.0-0 \
  libgstreamer-plugins-bad1.0-0 \
  gstreamer1.0-x \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad \
  libssl3
  1. Download and unzip neolink_linux_x86_64_bookworm
  2. Create neolink.toml
  3. Execute sudo ./neolink rtsp --config=neolink.toml

Expected behavior Neolink should start.

Versions Hardware: Raspberry Pi 5 OS: Bookworm with latest updates Reolink camera model: Argus 2

misosec avatar Nov 01 '24 21:11 misosec

Check your config. Neolink is a in rust a complied not an interpreted language. There is no ( in the binary code that is shipped to you at all it is all asm.

It's most likely in the text file you are inserting into it which is the config. Or perhaps one of the other generated configs.

QuantumEntangledAndy avatar Nov 02 '24 04:11 QuantumEntangledAndy

I've just wget sample_config.toml directly to my neolink_linux_x86_64_bookworm folder like this: wget "https://raw.githubusercontent.com/QuantumEntangledAndy/neolink/refs/heads/master/sample_config.toml"

and then run: sudo ./neolink rtsp --config=sample_config.toml

The same error: ./neolink: 3: Syntax error: ")" unexpected

I did not edit sample_config.toml at all so it seems like the error is somewhere else in my system. :-(

misosec avatar Nov 02 '24 10:11 misosec

I've just spotted your on an rpi5. Please try the arm64 build please, unless they changed it from the rpi1-4 it's an arm architecture cpu

QuantumEntangledAndy avatar Nov 02 '24 12:11 QuantumEntangledAndy

It's working now! :-) but it gives me an error:

Buffer full on audsrc
Buffer full on vidsrc

Maybe that why I can get mostly audio only. I did get video once. Any idea?

Thank you!

misosec avatar Nov 02 '24 12:11 misosec

Hello,

i have the same error:

Buffer full on audsrc
Buffer full on vidsrc

does anyone have an idea?

jackR85 avatar Dec 10 '24 14:12 jackR85