%fetchfromfile saved file is empty due to TypeError#49
Open
jej wants to merge 1 commit intogoatchurchprime:masterfrom
Open
%fetchfromfile saved file is empty due to TypeError#49jej wants to merge 1 commit intogoatchurchprime:masterfrom
jej wants to merge 1 commit intogoatchurchprime:masterfrom
Conversation
I got this error under python 3.8:
[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/ipykernel/kernelbase.py", line 264, in dispatch_shell
yield gen.maybe_future(handler(stream, idents, msg))
File "/usr/local/lib/python3.8/dist-packages/tornado/gen.py", line 762, in run
value = future.result()
File "/usr/local/lib/python3.8/dist-packages/tornado/gen.py", line 234, in wrapper
yielded = ctx_run(next, result)
File "/usr/local/lib/python3.8/dist-packages/ipykernel/kernelbase.py", line 539, in execute_request
self.do_execute(
File "/home/user/.local/share/jupyter/jupyter_micropython_kernel/jupyter_micropython_kernel/kernel.py", line 590, in do_execute
set_next_input_payload = self.sendcommand(code)
File "/home/user/.local/share/jupyter/jupyter_micropython_kernel/jupyter_micropython_kernel/kernel.py", line 498, in sendcommand
cellcontents = self.interpretpercentline(mpercentline.group(1), cellcontents[mpercentline.end():]) # discards the %command and a single blank line (if there is one) from the cell contents
File "/home/user/.local/share/jupyter/jupyter_micropython_kernel/jupyter_micropython_kernel/kernel.py", line 388, in interpretpercentline
fout.write(fetchedcontents)
TypeError: write() argument must be str, not bytes
I solved it by type cast. I hope it's ok for compatibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I got this error under python 3.8:
I solved it by type cast. I hope it's ok for compatibility.