Skip to content

Instantly share code, notes, and snippets.

@sethwoodworth
Created October 5, 2012 03:58
Show Gist options
  • Save sethwoodworth/3837996 to your computer and use it in GitHub Desktop.
Save sethwoodworth/3837996 to your computer and use it in GitHub Desktop.
gitenberg error
folder path: /media/gitenberg/2/3/4/1/23411
/media/gitenberg/2/3/4/1/23411/Smaïn; and Safti's Summer Day 1905.json
/media/gitenberg/2/3/4/1/23411
<git.Repo "/media/gitenberg/2/3/4/1/23411/.git">
['23411-8.txt', '23411-h/23411-h.htm', '23411.txt', 'CONTRIBUTING.md', 'LICENSE', 'README.rst', '"Sma\
\303\\257n; and Safti\'s Summer Day 1905.json"', 'metadata.json']
23411-8.txt
23411-h/23411-h.htm
23411.txt
CONTRIBUTING.md
LICENSE
README.rst
"Sma\303\257n; and Safti's Summer Day 1905.json"
fatal: pathspec '"Sma\303\257n; and Safti's Summer Day 1905.json"' did not match any files
metadata.json
[master (root-commit) 7407cd6] "Creating repo from Project Gutenberg import"
7 files changed, 2822 insertions(+)
create mode 100644 23411-8.txt
create mode 100644 23411-h/23411-h.htm
create mode 100644 23411.txt
create mode 100644 CONTRIBUTING.md
create mode 100644 LICENSE
create mode 100644 README.rst
create mode 100644 metadata.json
---------------------------------------------------------------------------
UnicodeEncodeError Traceback (most recent call last)
/usr/local/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
176 else:
177 filename = fname
--> 178 __builtin__.execfile(filename, *where)
/home/seth/code/GITenburg/GITenberg.py in <module>()
186 #update_catalog()
187 catalog = load_catalog()
--> 188 do_stuff(catalog)
/home/seth/code/GITenburg/GITenberg.py in do_stuff(catalog)
178 copy_files(folder)
179 make_local_repo(folder)
--> 180 repo = create_github_repo(book)
181 git_add_remote_origin(repo.ssh_url, folder)
182 git_push_origin_master(folder)
/home/seth/code/GITenburg/GITenberg.py in create_github_repo(book)
95 org = gh.organization(login='GITenberg')
96 team = org.list_teams()[0] # only one team in the github repo
---> 97 _desc = u'%s by %s\n is a Project Gutenberg book, now on Github.' % (book.title.decode('ut
f-8'), book.author.decode('utf-8'))
98 repo_title = "%s_%s" % (book.title.decode('utf-8'), book.bookid)
99
/usr/lib/python2.7/encodings/utf_8.pyc in decode(input, errors)
14
15 def decode(input, errors='strict'):
---> 16 return codecs.utf_8_decode(input, errors, True)
17
18 class IncrementalEncoder(codecs.IncrementalEncoder):
UnicodeEncodeError: 'ascii' codec can't encode character u'\xef' in position 3: ordinal not in range(1
28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment