-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode path names are not supported #70
Comments
Thanks Bruno for reporting. Could you please share the server logs (i.e. what was printed in the console where you run |
Hi Marc,
Thanks for the quick response. The log is attached below in this email for your reference.
[I 13:37:10.618 NotebookApp] Saving Forcasting Existing Business V1 —2019年错误修改备份-Copy1.ipynb
[I 13:37:10.704 NotebookApp] Saving Forcasting Existing Business V1 —2019年错误修改备份-Copy1.py
[E 13:38:05.142 NotebookApp] Unhandled error in API request
Traceback (most recent call last):
File "/anaconda2/lib/python2.7/site-packages/notebook/base/handlers.py", line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File "/anaconda2/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/anaconda2/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/anaconda2/lib/python2.7/site-packages/tornado/gen.py", line 307, in wrapper
yielded = next(result)
File "/anaconda2/lib/python2.7/site-packages/notebook/services/contents/handlers.py", line 124, in get
path=path, type=type, format=format, content=content,
File "/anaconda2/lib/python2.7/site-packages/jupytext/contentsmanager.py", line 231, in get
return self._notebook_model(path, content=content)
File "/anaconda2/lib/python2.7/site-packages/notebook/services/contents/filemanager.py", line 343, in _notebook_model
nb = self._read_notebook(os_path, as_version=4)
File "/anaconda2/lib/python2.7/site-packages/jupytext/contentsmanager.py", line 177, in _read_notebook
.format(os.path.basename(file + source_format)))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 32: ordinal not in range(128)
[E 13:38:05.145 NotebookApp] {
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7",
"Accept-Encoding": "gzip, deflate, br",
"X-Xsrftoken": "2|7accf11f|b5ea540c94fa73d92f015662d8e48c55|1536202958",
"Host": "localhost:8888",
"Accept": "application/json, text/javascript, */*; q=0.01",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"Connection": "keep-alive",
"X-Requested-With": "XMLHttpRequest",
"Referer": "http://localhost:8888/notebooks/%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E5%B8%88/Aden%20Services/Costing%20Project/Forcasting/Forcasting%20Existing%20Business%20V1%20%E2%80%94%20%082019%E5%B9%B4%E9%94%99%E8%AF%AF%E4%BF%AE%E6%94%B9%E5%A4%87%E4%BB%BD-Copy1.ipynb",
"Cookie": "_xsrf=2|7accf11f|b5ea540c94fa73d92f015662d8e48c55|1536202958; username-localhost-8889=\"2|1:0|10:1536633815|23:username-localhost-8889|44:N2Q2ZDBjOTJiYmNkNDU5OGE4MTI4OTQ0Njk0YTcyMTE=|5b27eaa79b7d5f950533c45fb493e76c74fbd4f7526f92f6c83955302d83f419\"; username-localhost-8888=\"2|1:0|10:1536635380|23:username-localhost-8888|44:YTk2MTQ2NzM5YWNkNDY2MDlkNWNiYzIwYTViZTg5ODI=|5044591556e518271a14d82e3a59fbd2e58a836e4af0d0b522b2bb3326126d2c\""
}
[E 13:38:05.146 NotebookApp] 500 GET /api/contents/%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E5%B8%88/Aden%20Services/Costing%20Project/Forcasting/Forcasting%20Existing%20Business%20V1%20%E2%80%94%20%082019%E5%B9%B4%E9%94%99%E8%AF%AF%E4%BF%AE%E6%94%B9%E5%A4%87%E4%BB%BD-Copy1.ipynb?type=notebook&_=1536644284714 (::1) 70.86ms referer=http://localhost:8888/notebooks/%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E5%B8%88/Aden%20Services/Costing%20Project/Forcasting/Forcasting%20Existing%20Business%20V1%20%E2%80%94%20%082019%E5%B9%B4%E9%94%99%E8%AF%AF%E4%BF%AE%E6%94%B9%E5%A4%87%E4%BB%BD-Copy1.ipynb
… 在 2018年9月11日,下午1:28,Marc Wouts ***@***.***> 写道:
Thanks Bruno for reporting. Could you please share the server logs (i.e. what was printed in the console where you run jupyter notebook)? Or even the modified python script? Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#70 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Afm2G989nLrHOw6aWVJICHEWkjW_GBs2ks5uZ0nsgaJpZM4WihB3>.
|
Useful details, thanks. Can you change the notebook name so that it only has ASCII characters for now? Does that solve the issue? |
Hi Marc,
Thanks for the reply. Your suggestion works when the path and file name are all changed to ASCII characters. Only change the names would not work.
My issue is solved, thanks a ton. This is a great tool, I would use this from now on.
Best,
Bruno
… 在 2018年9月11日,下午1:44,Marc Wouts ***@***.***> 写道:
Useful details, thanks. Can you change the notebook name so that it only has ASCII characters for now? Does that solve the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#70 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Afm2G7i8euiNwxHUjlyCy8HzNz4OFrldks5uZ02pgaJpZM4WihB3>.
|
I'm glad you like it! Thanks. Please do not close the issue yet - I will implement one more test, and a bugfix, to be sure that you can use unicode file and path names in the next version. |
@BrunoYang0918 , could you please upgrade to v0.6.4 and confirm whether you issue is resolved?
Thanks |
Hi Marc,
Let me try this. Will let you know once confirmed.
Best,
Bruno
… 在 2018年9月12日,上午7:34,Marc Wouts ***@***.***> 写道:
@BrunoYang0918 <https://github.com/BrunoYang0918> , could you please upgrade to v0.6.4 and confirm whether you issue is resolved?
pip install jupytext==0.6.4
# + restart jupyter notebook
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#70 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Afm2GyQ12yFMGEIyebRRQ8oPQpbeQeKvks5uaEhtgaJpZM4WihB3>.
|
Hi Marc,
This issue is very well solved with the new version. Thanks for the great support.
Best,
| |
Bruno
邮箱:bruno_yang0918@163.com
|
Signature is customized by Netease Mail Master
On 09/12/2018 13:41, 杨波 wrote:
Hi Marc,
Let me try this. Will let you know once confirmed.
Best,
Bruno
在 2018年9月12日,上午7:34,Marc Wouts <notifications@github.com> 写道:
@BrunoYang0918 , could you please upgrade to v0.6.4 and confirm whether you issue is resolved?
pip install jupytext==0.6.4
# + restart jupyter notebook
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Great news! Thanks for the feedback. |
Not sure if this is related but I had a notebook named |
Thanks @mppaskov for reporting. I will add your example as a unit test. Please let me recall that you cannot expect notebook to export and sync automatically! If you want a notebook to be saved into both extensions, you have to add the Also, the command line tool is not going to add that metadata, so it is not enough to create the I agree that editing the notebook metadata is not very user friendly. At some point we will provide a Jupyter extension (i.e. buttons in the jupyter notebook) to make that easier, see #86. |
All previous steps works fine before saving the data in python format. Jupyter Notebook refuses to open the updated ipython output with the below message:
An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.
The text was updated successfully, but these errors were encountered: