Hello Dannon and vladimir:
Thank you for responding to my question.
I am working on the custom tool which runs this command at the back end:
Rscript --vanilla --verbose /home/snehal/Galaxy/galaxy/tools/extraTools/classify_simple.R --project pulldown_mc --inFile /home/snehal/Galaxy/galaxy/database/files/001/dataset_1956.dat --outFile /home/snehal/Galaxy/galaxy/database/files/001/dataset_1988.dat
If at run it directly on red hat server it works fine . But in Galaxy it gives me below error:
galaxy.jobs.runners.local ERROR 2016-04-27 11:58:29,235 Job wrapper finish method failed
Traceback (most recent call last):
File "/home/snehal/Galaxy/galaxy/lib/galaxy/jobs/runners/local.py", line 129, in queue_job
job_wrapper.finish( stdout, stderr, exit_code )
File "/home/snehal/Galaxy/galaxy/lib/galaxy/jobs/__init__.py", line 1264, in finish
self.sa_session.flush()
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/scoping.py", line 150, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 2004, in flush
self._flush(objects)
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 2122, in _flush
transaction.rollback(_capture_exception=True)
File "build/bdist.linux-x86_64/egg/sqlalchemy/util/langhelpers.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 2086, in _flush
flush_context.execute()
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/unitofwork.py", line 373, in execute
rec.execute(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/unitofwork.py", line 532, in execute
uow
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/persistence.py", line 170, in save_obj
mapper, table, update)
File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/persistence.py", line 673, in _emit_update_statements
execute(statement, multiparams)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 914, in execute
return meth(self, multiparams, params)
File "build/bdist.linux-x86_64/egg/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1146, in _execute_context
context)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1335, in _handle_dbapi_exception
util.reraise(*exc_info)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 442, in do_execute
cursor.execute(statement, parameters)
File "build/bdist.linux-x86_64-ucs4/egg/MySQLdb/cursors.py", line 158, in execute
query = query % db.literal(args)
File "build/bdist.linux-x86_64-ucs4/egg/MySQLdb/connections.py", line 265, in literal
return self.escape(o, self.encoders)
File "build/bdist.linux-x86_64-ucs4/egg/MySQLdb/connections.py", line 203, in unicode_literal
return db.literal(u.encode(unicode_literal.charset))
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2018' in position 326: ordinal not in range(256)
galaxy.datatypes.metadata DEBUG 2016-04-27 11:58:29,311 Cleaning up external metadata files
I checked input and output files.It doesn't have any quotation marks. I have v15.07-85-g66082f7 version.
Thanks
Snehal