mu icon indicating copy to clipboard operation
mu copied to clipboard

Importing logging module on mu

Open jessiejc23 opened this issue 9 years ago • 3 comments

Trying out your python scripts on my mu editor but there is an import error with the line 'import logging'. How to import the logging module (and other modules) on mu editor?

jessiejc23 avatar Jan 04 '17 13:01 jessiejc23

Can you post a full traceback?

On Thu., 5 Jan. 2017, 12:46 am jessiejc23, [email protected] wrote:

Trying out your python scripts on my mu editor but there is an import error with the line 'import logging'. How to import the logging module (and other modules) on mu editor?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eduvik/mu/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpf2szZzF-JG4OXxMfpLoil130JvVU2ks5rO6K2gaJpZM4Laopk .

--

Victor Rajewski

askvictor avatar Jan 04 '17 21:01 askvictor

Yes sure. I flashed test_app.py on my micro:bit.

Traceback (most recent call last): File "main", line 5, in ImportError: no module named 'logging'

I suppose that importing the logging module on mu editor would do the job but I do not know how.

jessiejc23 avatar Jan 04 '17 22:01 jessiejc23

Possibly not related, but my fork is for esp8266 devices; if you're using a microbit you'll be better off using upstream

On Thu., 5 Jan. 2017, 9:35 am jessiejc23, [email protected] wrote:

Yes sure. I flashed test_app.py on my micro:bit.

Traceback (most recent call last): File "main", line 5, in ImportError: no module named 'logging'

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/eduvik/mu/issues/16#issuecomment-270507263, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpf2vCNK85_x-m-GuBDjBFAgV4Tb90Lks5rPB7JgaJpZM4Laopk .

--

Victor Rajewski

askvictor avatar Jan 05 '17 01:01 askvictor