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

RasPi setup issue "odd number list for Hash (SyntaxError)" #27

Open
zbourdeau opened this issue Jul 11, 2018 · 4 comments
Open

RasPi setup issue "odd number list for Hash (SyntaxError)" #27

zbourdeau opened this issue Jul 11, 2018 · 4 comments

Comments

@zbourdeau
Copy link

When I try to run the latest fault_tolerant_router package on a raspi 3 I am seeing the following issue:

$ fault_tolerant_router generate_config
/usr/local/bin/fault_tolerant_router:23:in `load': /var/lib/gems/1.8/gems/fault_tolerant_router-1.2.0/bin/fault_tolerant_router:75: odd number list for Hash (SyntaxError)
configuration_file: '/etc/fault_tolerant_router.conf',
^
/var/lib/gems/1.8/gems/fault_tolerant_router-1.2.0/bin/fault_tolerant_router:75: syntax error, unexpected ':', expecting '}'
configuration_file: '/etc/fault_tolerant_router.conf',
^
/var/lib/gems/1.8/gems/fault_tolerant_router-1.2.0/bin/fault_tolerant_router:75: syntax error, unexpected ',', expecting $end
from /usr/local/bin/fault_tolerant_router:23

Any suggestions?

@drsound
Copy link
Owner

drsound commented Jul 12, 2018

Which ruby version are you using? Run ruby -v, please.

@zbourdeau
Copy link
Author

ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [arm-linux-eabihf]

@drsound
Copy link
Owner

drsound commented Jul 12, 2018

I think there are some language compatibility issues between your 1.8.7 version and the 2.x.x version I used during development. If you have chance, try to upgrade to a newer Ruby version, I think it would solve the problem. Consider 1.8.7 is no longer a supported Ruby version, see Ruby download page.
Anyway I will look into the technical details of the error during this weekend and will let you know...

@drsound
Copy link
Owner

drsound commented Jul 12, 2018

Here is a better page to see the EOL (end of life) state of the various Ruby versions.

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

2 participants