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 with python six module during boilerplate generation #5

Open
BastienFaure opened this issue Aug 2, 2017 · 3 comments
Open

Error with python six module during boilerplate generation #5

BastienFaure opened this issue Aug 2, 2017 · 3 comments

Comments

@BastienFaure
Copy link

Hello,

SInce several months, I have this error when creating a boilerplate :

Editor: 
    creating /tmp/p/VERSION...
    creating /tmp/p/.gitignore...
    creating /tmp/p/README.rst...
    creating /tmp/p/INSTALL.rst...
    creating /tmp/p/LICENSE...
    creating /tmp/p/tox.ini...
    creating /tmp/p/.travis.yml...
    creating /tmp/p/.coveragerc...
    creating /tmp/p/tasks.py...
    creating /tmp/p/setup.py...
    creating /tmp/p/MANIFEST.in...
    creating /tmp/p/requirements.txt...
    creating /tmp/p/src/aaaaaaaa/__init__.py...
    creating /tmp/p/src/aaaaaaaa/__main__.py...
Traceback (most recent call last):
  File "/usr/local/bin/python-boilerplate", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/__main__.py", line 11, in main
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/commands/parser.py", line 41, in handler
    func(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/commands/parser.py", line 32, in handler
    writer.run()
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/commands/init.py", line 115, in run
    self.write('package/meta.pyt', '%s/__meta__.py' % basedir)
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/core.py", line 140, in write
    hash = write_template(template, context, ignore=ignore, path=path)
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/jinja.py", line 33, in write_template
    data = template.render(**(namespace or {}))
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/templates/package/meta.pyt", line 3, in top-level template code
    __author__ = {{ author|unicode_escape|repr }}
  File "/usr/local/lib/python2.7/dist-packages/python_boilerplate/jinja.py", line 79, in unicode_escape
    return six.u(x).encode('unicode-escape').decode()
  File "/usr/local/lib/python2.7/dist-packages/six.py", line 647, in u
    return unicode(s.replace(r'\\', r'\\\\'), "unicode_escape")

Did you encountered this error ?

Thank you !

@piotrkilczuk
Copy link

Such a nice project but couldn't even generate the setup.py file :-(

@fabiommendes
Copy link
Owner

fabiommendes commented Oct 9, 2017 via email

@lparolari
Copy link

@fabiommendes What do you mean with "it starts as a hack that grew out of proportions"?
However, I'm having the same problem reported in this issue.

I think you should mark this project as deprecated if it is.

Thanks!

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

No branches or pull requests

4 participants