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

Correct some errors in README examples #79

Merged
merged 1 commit into from
Apr 9, 2015

Conversation

henryhallam
Copy link
Contributor

However, it's still not quite right, because I get the following error when trying to run the generator:

henry@hank:~/swift/libsbp/generator$ python sbp/generator.py -i ../spec/yaml/swiftnav/sbp/ -o ../c/ --c
Traceback (most recent call last):
  File "sbp/generator.py", line 20, in <module>
    import sbp.specs.yaml2 as yaml
ImportError: No module named specs.yaml2

This is after setuptools-installing the latest libsbp and generator packages. It's some path bullshit. I can make it work by copying libsbp/generator/sbp/generator.py into libsbp/generator/, but then I encounter a different error:

henry@hank:~/swift/libsbp/generator$ ./generator.py -i ../spec/yaml/swiftnav/sbp/ -o ../c/ --c
Invalid SBP YAML specification: /home/henry/swift/libsbp/spec/yaml/swiftnav/sbp/bootload.yaml.
Traceback (most recent call last):
  File "./generator.py", line 94, in <module>
    main()
  File "./generator.py", line 71, in main
    file_index = yaml.resolve_deps(*yaml.get_files(input_file))
  File "/home/henry/swift/libsbp/generator/sbp/specs/yaml2.py", line 102, in resolve_deps
    file_index[fname] = read_spec(fname)
  File "/home/henry/swift/libsbp/generator/sbp/specs/yaml2.py", line 63, in read_spec
    raise e
voluptuous.MultipleInvalid: expected a list for dictionary value @ data['definitions'][2]['MSG_NAP_DEVICE_DNA']['fields']

@henryhallam
Copy link
Contributor Author

cc @mfine

@mfine
Copy link
Contributor

mfine commented Apr 9, 2015

Fwiw, here's what I run into...

# FAIL
$ python sbpg/generator.py -i ../spec/yaml/swiftnav/sbp/ --output_dir ../latex/ --latex 
Traceback (most recent call last):
  File "sbpg/generator.py", line 20, in <module>
    import sbpg.specs.yaml2 as yaml
ImportError: No module named sbpg.specs.yaml2

# OK with a module
$ python -m sbpg.generator -i ../spec/yaml/swiftnav/sbp/ --output_dir ../latex/ --latex

# OK with PYTHONPATH set
$ PYTHONPATH=. python sbpg/generator.py -i ../spec/yaml/swiftnav/sbp/ --output_dir ../latex/ --latex

But this is me and python pathing:

mookerji added a commit that referenced this pull request Apr 9, 2015
Correct some errors in README examples
@mookerji mookerji merged commit c1db13b into swift-nav:master Apr 9, 2015
RReichert added a commit that referenced this pull request Apr 1, 2021
…945)

* cmake - ESD-1981 code coverage overhaul
Triggered-By:	cmake	3a6f1a7225c7f225ea3c651e1597caef897deddc
Upstream-PR:	http://github.com/swift-nav/cmake/pull/79

* removed warnings

Co-authored-by: Rodrigo Reichert <rodrigo.reichert@swift-nav.com>
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

Successfully merging this pull request may close these issues.

3 participants