pythontex icon indicating copy to clipboard operation
pythontex copied to clipboard

A bug in paths with spaces in sage implementation

Open kwangkim opened this issue 3 years ago • 1 comments

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

kwangkim avatar Sep 27 '21 02:09 kwangkim

It is a bug in sage. Currently, sage cannot handle a path with spaces.

kwangkim avatar Dec 16 '21 17:12 kwangkim