pythontex
pythontex copied to clipboard
A bug in paths with spaces in sage implementation
I just got an error.
---- Messages for sage:default:default ----
* PythonTeX notice
1 message(s) could not be classified
Interpreted as errors, based on the return code(s)
* PythonTeX stderr - unknown on line ?? in "??":
/var/tmp/sage-9.4-current/local/bin/python3: can't open file '/Users/example/Dropbox (Personal)/<outputdir>/sage_default_default.sage.py': [Errno 2] No such file or directory
--------------------------------------------------
PythonTeX: EXAM1 - 1 error(s), 0 warning(s)
I think a space in "Dropbox (Personal)" makes a problem. In other folders without any space, it works well.
https://github.com/gpoore/pythontex/issues/167#issuecomment-630440576
Above fix does not work since it is a bug in sage
It is a bug in sage
.
Currently, sage
cannot handle a path with spaces.