benwbooth / quick-clojure

Run clojure scripts and lein commands quickly using a persistent nREPL session
Eclipse Public License 1.0
47 stars 4 forks source link

On some python versions, can't write unicode to binary stream. #2

Closed daslu closed 10 years ago

daslu commented 10 years ago

Thank you for this very nice and useful tool.

On CentOS 6.4, Python 2.6.6, it failed to run:

$ /usr/bin/quick start nREPL server is already running on port 36713 Traceback (most recent call last): File "/usr/bin/quick", line 294, in print("Exited with status: "+pformat(exit_code), file=debug) File "/usr/lib64/python2.6/io.py", line 1057, in write raise TypeError("can't write unicode to binary stream")

After changing line 29 of the 'quick' script from devnull = open(os.devnull,'wb') to devnull = open(os.devnull,'w'), everything seems to work.

The problem might be that old versions of Python do not support automatic conversion from unicode to binary. I am not sure about it.

benwbooth commented 10 years ago

Fixed in 0.11, thanks!

daslu commented 10 years ago

Thank you for your quick help! Daniel Slutsky

On Tue, Apr 8, 2014 at 7:22 PM, benwbooth notifications@github.com wrote:

Closed #2 https://github.com/benwbooth/quick-clojure/issues/2.

Reply to this email directly or view it on GitHubhttps://github.com/benwbooth/quick-clojure/issues/2 .