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

make sim fails to find python files #410

Open
Christian-Prather opened this issue Mar 19, 2023 · 4 comments
Open

make sim fails to find python files #410

Christian-Prather opened this issue Mar 19, 2023 · 4 comments

Comments

@Christian-Prather
Copy link

Christian-Prather commented Mar 19, 2023

Description of Bug

Hello, firstly thank you for such a cool project!

I have spent the weekend trying to get the wasp sim running on my Ubuntu 20.04 system and while a watch with a black screen does display there is the same error no matter what I try. I would love any assistance with this as I really love the wasp-os software but must admit am very frustrated at the moment. I have looked on the issues page and could not see any similar to what I am seeing. Thank you in advance for any help!

Category

Bug / Documentation

Host OS:

Ubuntu 20.04

Error:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=.:wasp/boards/simulator:wasp \
python3 -i wasp/boards/simulator/main.py
Traceback (most recent call last):
  File "wasp/boards/simulator/main.py", line 4, in <module>
    import wasp
  File "/home/christian/Documents/wasp-os/wasp/wasp.py", line 22, in <module>
    import watch
  File "/home/christian/Documents/wasp-os/wasp/boards/simulator/watch.py", line 24, in <module>
    from drivers.cst816s import CST816S
ModuleNotFoundError: No module named 'drivers.cst816s'

Steps to reproduce:

From the wasp-os dir run make sim

@GaryM0101
Copy link

GaryM0101 commented Mar 19, 2023

Christian, did you follow the installation guide? After doing the "git clone" did you do a "make submodules", 'make softdevice"...etc?
https://wasp-os.readthedocs.io/en/latest/install.html

Gary

@Christian-Prather
Copy link
Author

@GaryM0101 Thank you for your quick response. Yes I did run both of these commands prior. Based on your comment I decided to delete my repo and attempt from scratch here are the exact order of my steps and the error still occurs

  1. git clone https://github.com/wasp-os/wasp-os
  2. cd wasp-os
  3. export PATH=$PATH:/opt/wasp/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bin
  4. make submodules
  5. make softdevice
  6. make sim

The same error occurs
ModuleNotFoundError: No module named 'drivers.cst816s'

Note: the export of PATH is to add my arm gcc toolchain

@GaryM0101
Copy link

I'm sorry to hear that, don't know what else to try assuming you installed the prerequisites prior to doing the git clone.

@fgaz
Copy link
Member

fgaz commented Mar 19, 2023

Maybe there was an error in one of those steps. Do all of those commands exit with code 0?

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