Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sage 8.5 windows jupyter can't work

i use a windows laptop with Chinese. i download the windows installer, and install the sage 8.5 successfully. it can run sage(shell) correctly, but when i launch the jupyter, something wrong with it.

"sage -n" use the cmd to start a server, i got

File "/opt/sagemath-8.5/src/bin/sage-notebook", line 268, in launcher(unknown) File "/opt/sagemath-8.5/src/bin/sage-notebook", line 142, in init super(SageNBExport, self).init(argv) File "/opt/sagemath-8.5/src/bin/sage-notebook", line 100, in init main(argv) File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/jupyter_core/application.py", line 266, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argv) File "", line 2, in initialize File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 89, in catch_config_error app.print_help() File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 385, in print_help self.print_subcommands() File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 377, in print_subcommands print(os.linesep.join(lines)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)

so i try some solutions, i can skip this step, but i got stuck in the jupyter launch step:

Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.

i know there is something wrong with the coding in python (and there are many problems when software operate with Chinese), but i can't find the right way to solve it

sage 8.5 windows jupyter can't work

i use a windows laptop with Chinese. i download the windows installer, and install the sage 8.5 successfully. it can run sage(shell) correctly, but when i launch the jupyter, something wrong with it.

"sage -n" use the cmd to start a server, i got

File "/opt/sagemath-8.5/src/bin/sage-notebook", line 268, in 
 launcher(unknown)
 File "/opt/sagemath-8.5/src/bin/sage-notebook", line 142, in init
 super(SageNBExport, self).init(argv)
 File "/opt/sagemath-8.5/src/bin/sage-notebook", line 100, in init
 main(argv)
 File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
 return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
 File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
 app.initialize(argv)
 File "", line 2, in initialize
 File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 89, in catch_config_error
 app.print_help()
 File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 385, in print_help
 self.print_subcommands()
 File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 377, in print_subcommands
 print(os.linesep.join(lines))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)

range(128)

so i try some solutions, i can skip this step, but i got stuck in the jupyter launch step:

Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.

instance.

i know there is something wrong with the coding in python (and there are many problems when software operate with Chinese), but i can't find the right way to solve it

click to hide/show revision 3
retagged

sage 8.5 windows jupyter can't work

i use a windows laptop with Chinese. i download the windows installer, and install the sage 8.5 successfully. it can run sage(shell) correctly, but when i launch the jupyter, something wrong with it.

"sage -n" use the cmd to start a server, i got

File "/opt/sagemath-8.5/src/bin/sage-notebook", line 268, in 
launcher(unknown)
File "/opt/sagemath-8.5/src/bin/sage-notebook", line 142, in init
super(SageNBExport, self).init(argv)
File "/opt/sagemath-8.5/src/bin/sage-notebook", line 100, in init
main(argv)
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 89, in catch_config_error
app.print_help()
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 385, in print_help
self.print_subcommands()
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 377, in print_subcommands
print(os.linesep.join(lines))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)

so i try some solutions, i can skip this step, but i got stuck in the jupyter launch step:

Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.

i know there is something wrong with the coding in python (and there are many problems when software operate with Chinese), but i can't find the right way to solve it