Ampoule doesn't work < python2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ampoule |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
After _a lot_ of mucking around making setuptools work (because Ampoule wanted it) on an old FC4 box I finally was able to proceed with the install. Much to my surprise this included downloading and installing Twisted, the same version already installed on the system - though I imagine this duplication is the fault of setuptools itself.
During this install I saw [1]. Anyhow the install proceeded and exited cleanly, so I tried ampoule and was greeted by [2]. I guess yield has changed or wasn't supported before python2.5 - now that I think about it this is probably a bigger problem if it affects Twisted, but it nevertheless seems to break Ampoule
[1]
Downloading http://
Processing Twisted-
Running Twisted-
twisted/
twisted/
twisted/
twisted/
twisted/
twisted/
twisted/
twisted/
File "build/
yield
^
SyntaxError: invalid syntax
File "/usr/lib/
yield
^
SyntaxError: invalid syntax
File "/usr/lib/
yield
^
SyntaxError: invalid syntax
Adding Twisted 8.2.0 to easy-install.pth file
Installing pyhtmlizer script to /usr/bin
Installing cftp script to /usr/bin
Installing ckeygen script to /usr/bin
Installing manhole script to /usr/bin
Installing tap2deb script to /usr/bin
[2]
[blair@nimrod1 ampoule-0.1]$ python examples/pid.py
File "examples/pid.py", line 26
result = yield pp.doWork(Pid)
^
SyntaxError: invalid syntax
Notice that the error comes from an example, not from internal ampoule code. Anyway there are a couple of places in the code that stops a process that affect ampoule, I fixed those. Note however that I don't have Python 2.4 and the testsuite runs on Python 2.4. I'm not going to change the examples because they don't work on Python 2.4 so if you want to do a report please use the tests and tell me which are failing.
in head there's a fix that should make ampoule work with python 2.4 though, although there might be other problems.