Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » M30W - Code Scratch with Scratchblocks!
- MrFlash67
-
500+ posts
M30W - Code Scratch with Scratchblocks!
Yes. You might want to have indentation count, but I can't make decisions. (Does editing one line in a config file count?Anyone else?I agree with blob8108's.I know. But I don't agree with yours. And does anyone else agree?I mean: No, I don't agree with your syntax.Not that…Okay, does anyone agree with this syntax: […]No.

- davidkt
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
OK, now that Scratch 2.0 is here with its custom block definitions, I have to agree with blob8108.
- cocolover76
-
100+ posts
M30W - Code Scratch with Scratchblocks!
I tried to install it…
(I did the install again just for this snippet)
(I did the install again just for this snippet)
coco@CocosBuntu:~$ pip install M30W
Downloading/unpacking M30W
Running setup.py egg_info for package M30W
Downloading/unpacking kurt (from M30W)
Running setup.py egg_info for package kurt
Downloading/unpacking PIL (from M30W)
Running setup.py egg_info for package PIL
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
Requirement already satisfied (use --upgrade to upgrade): wxpython in /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode (from M30W)
Downloading/unpacking construct==2.0.6 (from kurt->M30W)
Running setup.py egg_info for package construct
Requirement already satisfied (use --upgrade to upgrade): pillow>=2.0 in /usr/lib/python2.7/dist-packages (from kurt->M30W)
Installing collected packages: M30W, kurt, PIL, construct
Running setup.py install for M30W
error: could not create '/usr/local/lib/python2.7/dist-packages/M30W': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-coco/M30W/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CLu4St-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/lib/python2.7/dist-packages/M30W
error: could not create '/usr/local/lib/python2.7/dist-packages/M30W': Permission denied
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-coco/M30W/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CLu4St-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-coco/M30W
Storing complete log in /home/coco/.pip/pip.log
coco@CocosBuntu:~$ M30W
M30W: command not found
coco@CocosBuntu:~$
- cocolover76
-
100+ posts
M30W - Code Scratch with Scratchblocks!
Oh. Using sudo to both install and run it fixed it. Are you an admin?
EDIT: Nope. Starting scripts does this:

Last edited by cocolover76 (Aug. 30, 2013 21:26:01)
- davidkt
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
You need Kurt. Try sudo pip install kurt. (assuming you have pip)Oh. Using sudo to both install and run it fixed it. Are you an admin?
EDIT: Nope. Starting scripts does this:
- cocolover76
-
100+ posts
M30W - Code Scratch with Scratchblocks!
Now, it saysYou need Kurt. Try sudo pip install kurt. (assuming you have pip)Oh. Using sudo to both install and run it fixed it. Are you an admin?
EDIT: Nope. Starting scripts does this:
<snip>
M30W encountered an error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/M30W/GUI/menu.py", line 149, in OnStart
runtime.project.compile_scripts()
File "/usr/local/lib/python2.7/dist-packages/M30W/project.py", line 146, in compile_scripts
self.stage.compile_scripts()
File "/usr/local/lib/python2.7/dist-packages/M30W/sprites/base.py", line 102, in compile_scripts
parsed_scripts = map(kurt.parse_block_plugin, code)
AttributeError: 'module' object has no attribute 'parse_block_plugin'
Do You want to abort?
- davidkt
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
You don't have PLY.Now, it saysYou need Kurt. Try sudo pip install kurt. (assuming you have pip)Oh. Using sudo to both install and run it fixed it. Are you an admin?
EDIT: Nope. Starting scripts does this:
<snip>M30W encountered an error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/M30W/GUI/menu.py", line 149, in OnStart
runtime.project.compile_scripts()
File "/usr/local/lib/python2.7/dist-packages/M30W/project.py", line 146, in compile_scripts
self.stage.compile_scripts()
File "/usr/local/lib/python2.7/dist-packages/M30W/sprites/base.py", line 102, in compile_scripts
parsed_scripts = map(kurt.parse_block_plugin, code)
AttributeError: 'module' object has no attribute 'parse_block_plugin'
Do You want to abort?
- blob8108
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
No, the error's more fun than that! You don't have PLY.

- davidkt
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
Oh, we'd better update it!No, the error's more fun than that! You don't have PLY.That means you're using the wrong version of Kurt. M30W still isn't updated for Kurt 2.0 AFAIK, so you'll need to `pip install kurt==1.4.7`.

- blob8108
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
Yes, indeed! Oh, we'd better update it!

- davidkt
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
Thanks! That's just what I was looking for! I'll start right away!Yes, indeed! Oh, we'd better update it!Start here: http://kurt.readthedocs.org/en/latest/changes-1.4.html
- davidkt
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
If you're having problems with installation, follow these steps:
- Go to Start > Run. On Win 8 right-click the left corner of the screen and click Run.
- Type in regedit.exe
- In the window, go to HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/2.7/InstallPath
- Right-click on the InstallPath folder and click Export
- Make sure Selected branch is selected, then save it where you can find it
- Navigate to where you saved the file, right-click and click Edit.
- On every line, put Wow6432Node/ in between SOFTWARE/ and Python
- Save the file
- Double-click the file
- Click OK
- Click OK
- You're done!
- roijac
-
100+ posts
M30W - Code Scratch with Scratchblocks!
I'm not active any more (neither developing M30W or being around on Scratch) so if anybody feels like he wants to code it I'm still available through sourceforge messages so I can make you admin.
Anyway, you'll need to update to wxPython 3.0 and kurt2, good luck and enjoy
Goodbye.
Anyway, you'll need to update to wxPython 3.0 and kurt2, good luck and enjoy

Goodbye.
- MrFlash67
-
500+ posts
M30W - Code Scratch with Scratchblocks!
I'd really like to continue, but unfortunately I just don't have the skills to do so. 
Perhaps learning some wxpython would be a good holiday project.
EDIT: No chance of GitHub? I don't think you can fork/pullreq on source forge.

Perhaps learning some wxpython would be a good holiday project.
EDIT: No chance of GitHub? I don't think you can fork/pullreq on source forge.
Last edited by MrFlash67 (April 18, 2014 21:00:01)
- docaiden
-
100+ posts
M30W - Code Scratch with Scratchblocks!
I cant get it to work this is the error:
Collecting m30w
Using cached M30W-0.2.3.tar.gz
Requirement already satisfied (use –upgrade to upgrade): kurt in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from m30w)
Collecting PIL (from m30w)
Could not find a version that satisfies the requirement PIL (from m30w) (from versions: )
No matching distribution found for PIL (from m30w)
Aidens-iMac:~ aiden$
Collecting m30w
Using cached M30W-0.2.3.tar.gz
Requirement already satisfied (use –upgrade to upgrade): kurt in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from m30w)
Collecting PIL (from m30w)
Could not find a version that satisfies the requirement PIL (from m30w) (from versions: )
No matching distribution found for PIL (from m30w)
Aidens-iMac:~ aiden$
- NickyNouse
-
1000+ posts
M30W - Code Scratch with Scratchblocks!
This post is so old. But I guess this isn't a necro tho since there's no-where better to ask your question. I cant get it to work this is the error:
Collecting m30w
Using cached M30W-0.2.3.tar.gz
Requirement already satisfied (use –upgrade to upgrade): kurt in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from m30w)
Collecting PIL (from m30w)
Could not find a version that satisfies the requirement PIL (from m30w) (from versions: )
No matching distribution found for PIL (from m30w)
Aidens-iMac:~ aiden$
I can't help you with this problem, but there's a Scratch 2.0 adaptation of this in the works if you're willing to wait for it. It's called tosh and I believe it'll run in your web browser, so you won't run into these kinds of issues.
- Discussion Forums
- » Advanced Topics
-
» M30W - Code Scratch with Scratchblocks!