Skip to content
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

ERROR Converting notebook to PDF #10053

Closed
kivenlee opened this issue Nov 10, 2016 · 3 comments
Closed

ERROR Converting notebook to PDF #10053

kivenlee opened this issue Nov 10, 2016 · 3 comments
Milestone

Comments

@kivenlee
Copy link

Traceback (most recent call last):
File "/Users/kiven/anaconda2/bin/jupyter-nbconvert", line 6, in
main()
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 596, in launch_instance
app.start()
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/nbconvert/nbconvertapp.py", line 289, in start
self.convert_notebooks()
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/nbconvert/nbconvertapp.py", line 412, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/nbconvert/nbconvertapp.py", line 383, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/nbconvert/nbconvertapp.py", line 335, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/nbconvert/exporters/exporter.py", line 165, in from_filename
return self.from_notebook_node(nbformat.read(f, as_version=4), resources=resources, **kw)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/nbconvert/exporters/pdf.py", line 138, in from_notebook_node
self.texinputs = os.getcwd()
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py", line 558, in set
self.set(obj, value)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py", line 532, in set
new_value = self._validate(obj, value)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py", line 564, in _validate
value = self.validate(obj, value)
File "/Users/kiven/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py", line 1926, in validate
raise TraitError(msg.format(value, self.name, class_of(obj)))
traitlets.traitlets.TraitError: Could not decode '/Users/kiven/Documents/02-\xe5\xad\xa6\xe4\xb9\xa0/020-Coursera&51cto/03-ML-UniversityOfWashington-02-regression' for unicode trait 'texinputs' of a PDFExporter instance.

@takluyver
Copy link
Member

Until we get round to fixing this (probably in nbconvert), I'd strongly recommend using Anaconda with Python 3 when your file paths have non-ascii characters in.

@takluyver takluyver added this to the not ipython milestone Nov 10, 2016
@srinivasreddy
Copy link
Contributor

@kivenlee I raised a PR jupyter/nbconvert#502 for you. Enjoy!!

@srinivasreddy
Copy link
Contributor

Now that PR jupyter/nbconvert#502 has been merged. shall we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants