question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'cereal.messaging.messaging_pyx

See original GitHub issue

Describe the bug I’m trying to run Openpilot in Carla as described here: https://github.com/commaai/openpilot/tree/master/tools/sim When I execute

PASSIVE=0 NOBOARD=1 ./manager.py 

in selfdrive/ I get the following error message:

scons: building terminated because of errors.
Traceback (most recent call last):
  File "./manager.py", line 135, in <module>
    add_logentries_handler(cloudlog)
  File "/home/tom/git/openpilot/selfdrive/swaglog.py", line 39, in add_logentries_handler
    from selfdrive.logmessaged import get_le_handler
  File "/home/tom/git/openpilot/selfdrive/logmessaged.py", line 4, in <module>
    import cereal.messaging as messaging
  File "/home/tom/git/openpilot/cereal/messaging/__init__.py", line 2, in <module>
    from .messaging_pyx import Context, Poller, SubSocket, PubSocket  # pylint: disable=no-name-in-module, import-error
ModuleNotFoundError: No module named 'cereal.messaging.messaging_pyx'

Any idea what the issue could be?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pd0wmcommented, Apr 13, 2020

Scons failed building. What do you get if run scons -j4 manually in the openpilot folder?

https://github.com/commaai/openpilot/commit/60f6e12debe7ed5f53076f3f1ab43fbd150d7087 should fix the confusing error. You still have an underlying build issue though.

0reactions
pd0wmcommented, Apr 15, 2020

@tom-doerr I assume setting the path fixed your issue. Closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cereal package — openpilot docs 0.8.17 documentation
Submodules · cereal.messaging.demo module · cereal.messaging.messaging_pyx module · Context · Context.term() · MessagingError · MultiplePublishersError · Poller.
Read more >
ModuleNotFoundError: No module named 'cereal'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cereal' How to remove the ModuleNotFo.
Read more >
How to fix "ModuleNotFoundError: No module named 'cereal'"
You must first install the package before you can use it in your code. Run the following command to install the package and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found