tjvr / kurt

Python library for reading/writing MIT's Scratch file format.
https://kurt.tjvr.org
GNU General Public License v3.0
86 stars 24 forks source link

AttributeError when importing kurt #8

Closed wrbs closed 12 years ago

wrbs commented 12 years ago

from kurt.files import *

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "kurt/__init__.py", line 43, in <module>
from kurt.objtable import *
File "kurt/objtable.py", line 34, in <module>
from user_objects import *
File "kurt/user_objects.py", line 321, in <module>
class Sprite(ScriptableScratchMorph):
File "kurt/user_objects.py", line 367, in Sprite
@costumes.setter
AttributeError: 'property' object has no attribute 'setter'

python -v gives

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.py
import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py
import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc
import posix # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.py
import posixpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/stat.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/stat.py
import stat # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/stat.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/UserDict.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/UserDict.py
import UserDict # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/UserDict.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.py
import copy_reg # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/types.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/types.py
import types # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/types.pyc
import _types # builtin
# zipimport: found 27 names in /Library/Python/2.5/site-packages/kurt-1.3-py2.5.egg
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/warnings.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/warnings.py
import warnings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/warnings.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/linecache.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/linecache.py
import linecache # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/linecache.pyc
import encodings # directory /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/__init__.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/__init__.py
import encodings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/__init__.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/codecs.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/codecs.py
import codecs # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/codecs.pyc
import _codecs # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/aliases.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/aliases.py
import encodings.aliases # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/aliases.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/utf_8.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/utf_8.py
import encodings.utf_8 # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/utf_8.pyc
Python 2.5.1 (r251:54863, May  5 2011, 18:37:34) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/readline.so

I first installed kurt by using setup.py but then reinstalled using pip

tjvr commented 12 years ago

Hi,

Thanks for trying Kurt! (:

That really shouldn't happen. Which version of Python are you using? I have a suspicion that Python 2.5 might not support property setters...

Can you try Python 2.6 or 2.7? (Looks like you're on a Mac -- have you tried downloading Python from python.org?)

Let me know if it works!

Tim On Aug 25, 2012 9:55 PM, "logiblocs" notifications@github.com wrote:

from kurt.files import *

Traceback (most recent call last): File "", line 1, in File "kurt/init.py", line 43, in from kurt.objtable import File "kurt/objtable.py", line 34, in from user_objects import File "kurt/user_objects.py", line 321, in class Sprite(ScriptableScratchMorph): File "kurt/user_objects.py", line 367, in Sprite @costumes.setter AttributeError: 'property' object has no attribute 'setter'

python -v gives

installing zipimport hook

import zipimport # builtin

installed zipimport hook

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.py

import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py

import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc import posix # builtin

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.py

import posixpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/stat.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/stat.py

import stat # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/stat.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/UserDict.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/UserDict.py

import UserDict # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/UserDict.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.py

import copy_reg # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/types.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/types.py

import types # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/types.pyc import _types # builtin

zipimport: found 27 names in /Library/Python/2.5/site-packages/kurt-1.3-py2.5.egg

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/warnings.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/warnings.py

import warnings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/warnings.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/linecache.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/linecache.py

import linecache # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/linecache.pyc import encodings # directory /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/init.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/init.py

import encodings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/init.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/codecs.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/codecs.py

import codecs # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/codecs.pyc import _codecs # builtin

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/aliases.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/aliases.py

import encodings.aliases # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/aliases.pyc

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/utf_8.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/utf_8.py

import encodings.utf_8 # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/utf_8.pyc Python 2.5.1 (r251:54863, May 5 2011, 18:37:34) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. dlopen("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/readline.so", 2); import readline # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/readline.so

— Reply to this email directly or view it on GitHubhttps://github.com/blob8108/kurt/issues/8.

wrbs commented 12 years ago

Thanks! I am on my grandparent's mac which runs Leopard so is a bit out of date. I'll update it right away. If only homebrew would work properly :(

tjvr commented 12 years ago

Ah, I've had terrible troubles with MacPorts, and then Homebrew. I ended up with about 10 Puthon installations of varying versions/stackless/32-bit/64-bit etc...

Clean install is definitely the solution... :D Makes it feel like a new Mac!

Tim

On Sunday, 26 August 2012, logiblocs wrote:

Thanks! I am on my grandparent's mac which runs Leopard so is a bit out of date. I'll update it right away. If only homebrew would work properly :(

— Reply to this email directly or view it on GitHubhttps://github.com/blob8108/kurt/issues/8#issuecomment-8035678.