wrobell / fpulse

LED pulsing application
GNU General Public License v3.0
3 stars 1 forks source link

AttributeError: attribute '__doc__' of 'type' objects is not writable #1

Closed sebastianludwig closed 10 years ago

sebastianludwig commented 10 years ago

After running sudo python3 setup.py install on my RPi, I get the error message mentioned above. Its origin is parser.py:24 and following Pulse.__doc__ = """ [...].

I'm still not that familiar with python, if you could give me a pointer, I'll fix it and send a pull request. (If that's not already more work than fixing it yourself..)

wrobell commented 10 years ago

What version of Python are you using exactly?

wrobell commented 10 years ago

Can you try with Python 3.3 or 3.4? The Pulse.__doc__ = """ [...] works on Python 3.3/3.4, so I suspect you are using earlier version.

sebastianludwig commented 10 years ago

yep, my Raspian installation came with Python 3.2.3, and it looks like 3.3 is not in the repositories yet.

wrobell commented 10 years ago

I think the docstring assignment is the only thing preventing you from running it on Python 3.2. You can try to remove the offending lines and see if it works for you. Not ideal, but might be better than upgrading Python.

sebastianludwig commented 10 years ago

Also data = unhexlify(s) in tcl5947.py:82 throws a TypeError: 'str' does not support the buffer interface - Python 3.4.1 is compiling...

wrobell commented 10 years ago

Thanks for the info. I will add requirements section to the README file.

sebastianludwig commented 10 years ago

Runs without errors with Python 3.4.1. A version working with the default Raspberry Pi Python version would make things easier, I guess.

wrobell commented 10 years ago

I understand, but Python 3.3 was released almost 2 years ago and I simply do not have time to maintain software for older versions of Python, which means maintaining quite old version of your operating system as well.