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

I can't import log #83

Open
lopezsolerluis opened this issue Mar 6, 2023 · 5 comments
Open

I can't import log #83

lopezsolerluis opened this issue Mar 6, 2023 · 5 comments

Comments

@lopezsolerluis
Copy link

Hi! :)

My problem is that when I upload the firmware with uflash, and try to import the log module, I get this error:

>>> import log
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'log'

However, some modules load with no problem, like import radio or import neopixel.

Am I doing something wrong? Thank you very much in advance!

@ntoll
Copy link
Owner

ntoll commented Mar 6, 2023

There is no log module in the MicroBit version of MicroPython. 😞

Rather, you should go "old school" and just print("some message") and watch the USB serial connection for the output.

@ntoll ntoll closed this as completed Mar 6, 2023
@lopezsolerluis
Copy link
Author

lopezsolerluis commented Mar 6, 2023

Excuse me, but there is: https://microbit-micropython.readthedocs.io/en/v2-docs/log.html

In fact, you can import log using micro:bit Python Editor

Am I missing something?

@ntoll
Copy link
Owner

ntoll commented Mar 6, 2023

Nope... I'm the one missing something here. 😄

It appears that they've added a new log module. @carlosperate do you have any information on this..?

@ntoll ntoll reopened this Mar 6, 2023
@ntoll
Copy link
Owner

ntoll commented Mar 6, 2023

@lopezsolerluis the solution would be to update the firmware. It happens that @carlosperate works for micro:bit (and helps out here too). So let's see what he says, and hopefully we can patch it.

@lopezsolerluis
Copy link
Author

@ntoll Thank you very much!!! :)

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