Closed danvk closed 10 years ago
Blerg looks like Python 2.7's csv module doesn't like Unicode. I've been running this with Python 3.3. Let me see if there's an easy fix.
I just went with the poor man's TSV for now.
You're a Python 3 early adopter!
It's my New Year resolution
$ run_perfdash.py .... DEBUG in main [/Library/Python/2.7/site-packages/ngsdiagnostics-0.1-py2.7.egg/perfdash/main.py:99]:
Returning data for following steps: step,mergesamfiles,wallclock,printreads,realignertargetcreator,indelrealigner,markduplicates,baserecalibrator,sortsam
127.0.0.1 - - [01/Mar/2014 18:41:57] "GET /perfdash/data HTTP/1.1" 500 - Traceback (most recent call last): File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/Library/Python/2.7/site-packages/ngsdiagnostics-0.1-py2.7.egg/perfdash/main.py", line 103, in data csv_writer.writerow(x) TypeError: unicode argument expected, got 'str'