pySpy does not work with Python < 2.6

Bug #483284 reported by Thomas Ibbotson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pySpy
Won't Fix
High
Thomas Ibbotson

Bug Description

The clue code uses setter and getter decorators which are new in Python 2.6 and therefore pyspy causes and attribute error.

Revision history for this message
Thomas Ibbotson (thomas-ibbotson) wrote :

The code could be changed so that it does not use setters and getters, but for now I will simply add a version check in the code and bail with a message to the user informing them of the problem.

Changed in pyspy:
assignee: nobody → Thomas Ibbotson (thomas-ibbotson)
importance: Undecided → High
Revision history for this message
Thomas Ibbotson (thomas-ibbotson) wrote :

Marking this as 'Won't Fix' as I don't intend to make the changes required to make pySpy compatible with earlier versions of python. However a fix has been committed to inform the user of this when they try to run pySpy.

Changed in pyspy:
status: New → Fix Committed
status: Fix Committed → Won't Fix
Revision history for this message
Gummbum (stabbingfinger) wrote :

Thomas,

One constructive feedback. It would be appreciated if you post your requirements:

* On the project page, so I wouldn't have downloaded it expecting I could run it
* In the program documentation, so people getting it from any source could read requirements
* Enforce version with a runtime check. It's preferable to see "Sorry, you need Python 2.6" rather than a stack trace.

I would have liked to have seen this work in action. But Python 2.5 is the recommended version for Windows, and I likely won't upgrade until that status changes. On the up-side, you will be futher along when Python 2.6 is recommended. Good luck.

-- Gumm

Revision history for this message
Thomas Ibbotson (thomas-ibbotson) wrote :

Thanks for the feedback, could you please post the stack trace here? What version of pySpy were you running? I have put code in place to print a message to the user, but it's clearly not working.

Thanks

Revision history for this message
Gummbum (stabbingfinger) wrote :

Hi, Thomas.

Here's the extra info you requested.

PySpy 1.1-alpha1

$ python.exe main.py
Traceback (most recent call last):
  File "main.py", line 23, in <module>
    import pyspy
  File "C:\cygwin\home\willsba\devel\python\pyspy\__init__.py", line 19, in <module>
    import pyspy.clue
  File "C:\cygwin\home\willsba\devel\python\pyspy\clue.py", line 25, in <module>
    class Word(object):
  File "C:\cygwin\home\willsba\devel\python\pyspy\clue.py", line 34, in Word
    @text.setter
AttributeError: 'property' object has no attribute 'setter'

$ python.exe -i
ActivePython 2.5.4.4 (ActiveState Software Inc.) based on
Python 2.5.4 (r254:67916, Apr 27 2009, 15:41:14) [MSC v.1310 32 bit (Intel)] on win32

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.