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

parts.yaml file not found when running settings script for board family #1658

Open
benglines opened this issue Apr 29, 2021 · 2 comments
Open

Comments

@benglines
Copy link

When trying to install Project X-Ray for the first time, I get the following error when running source settings/artix7.sh

Traceback (most recent call last):
  File "/home/benglines/prjxray_test/utils/create_environment.py", line 66, in <module>
    main()
  File "/home/benglines/prjxray_test/utils/create_environment.py", line 59, in main
    environment = get_environment_variables()
  File "/home/benglines/prjxray_test/utils/create_environment.py", line 37, in get_environment_variables
    part_info = get_part_information(db_root, part)
  File "/home/benglines/prjxray_test/prjxray/util.py", line 44, in get_part_information
    "Mapping file {} does not exists".format(filename)
AssertionError: Mapping file /home/benglines/prjxray_test/database/artix7/mapping/parts.yaml does not exists

I have also seen it complain about not finding a resources.yaml file (just like #1639), but I am not exactly sure why that happened nor how to recreate the error. Either way, I solved the issue in both cases by running make db-prepare-artix7, and then source settings/artix7.sh. The quick start guide suggest you do them in the opposite order.

This issue could be resolved by simply switching Step 6 and Step 7 in the quick start guide, so that the shell scripts run in the correct order i.e. running source/settings/artix7.sh after running make db-prepare-parts or make db-prepare-artix7.

@mithro
Copy link
Contributor

mithro commented Apr 29, 2021

Seems like we should set up the CI to use tuttest to run the commands in the README like we do for the symbiflow-examples repository.

@dnltz
Copy link
Contributor

dnltz commented Apr 29, 2021

@benglines - Thanks for reporting. Indeed, the script should be sourced after preparing the db.
@mithro - If I have a little bit time soon, I can try to add such a simple test.

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

3 participants