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

Syntax error: ")" unexpected #319

Open
misosec opened this issue Nov 1, 2024 · 5 comments
Open

Syntax error: ")" unexpected #319

misosec opened this issue Nov 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@misosec
Copy link

misosec commented Nov 1, 2024

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 misosec added the bug Something isn't working label Nov 1, 2024
@QuantumEntangledAndy
Copy link
Owner

QuantumEntangledAndy commented Nov 2, 2024

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.

@misosec
Copy link
Author

misosec commented Nov 2, 2024

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. :-(

@QuantumEntangledAndy
Copy link
Owner

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

@misosec
Copy link
Author

misosec commented Nov 2, 2024

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!

@jackR85
Copy link

jackR85 commented Dec 10, 2024

Hello,

i have the same error:

Buffer full on audsrc
Buffer full on vidsrc

does anyone have an idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants