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

TypeError: Sk.console.printPILImage is not a function on line 4, please help #113

Open
rahulrawat17 opened this issue Jun 4, 2021 · 4 comments

Comments

@rahulrawat17
Copy link

No description provided.

@rahulrawat17 rahulrawat17 changed the title D3 error on plt.show(). TypeError: c is undefined on line 5 Please help ExternalError: TypeError: Sk.console.printPILImage is not a function on line 4, please help Jun 8, 2021
@rahulrawat17 rahulrawat17 changed the title ExternalError: TypeError: Sk.console.printPILImage is not a function on line 4, please help TypeError: Sk.console.printPILImage is not a function on line 4, please help Jun 8, 2021
@rahulrawat17
Copy link
Author

trying to run this code using skulpt..
"""
import PIL
a = PIL.Image('pic2.jpg')
a.show()
"""

@MrMazzone
Copy link

@rahulrawat17 You need Skulpt specifically or just BlockPy?

Here, at Coding Rooms, you can create a Python workspace without an account and use BlockPy. https://www.codingrooms.com/compiler/python3/

Just select the 3 dots menu next to the files name and click "Open in Block Editor" to see the blocks editor.
image

@rahulrawat17
Copy link
Author

maybe both, i am trying to display image on output area using skulpt and some files of blockpy

@MrMazzone
Copy link

@rahulrawat17 Coding Rooms will work because it is not using Skulpt. The issue is the PIL library.

I do not see PIL as a library packaged with Skulpt - https://github.com/skulpt/skulpt/tree/master/src/lib

You would need to implement it yourself.

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