Coder Social home page Coder Social logo

Problem with Unicode about envoy HOT 2 CLOSED

not-kennethreitz avatar not-kennethreitz commented on June 16, 2024
Problem with Unicode

from envoy.

Comments (2)

dbrgn avatar dbrgn commented on June 16, 2024

Same problem here.

With Python 2.7.3 this example works:

Python 2.7.3 (default, Apr 24 2012, 00:00:54) 
[GCC 4.7.0 20120414 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import envoy
>>> envoy.run(u'whoami')
<Response [whoami]>

With Python 2.6.8, unicode objects result in an error:

Python 2.6.8 (unknown, Jan  3 2013, 19:07:45) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import envoy
>>> envoy.run(u'whoami')
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/danilo/.virtualenvs/fahrplan26/lib/python2.6/site-packages/envoy/core.py", line 40, in target
    bufsize=0,
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
TypeError: execve() argument 1 must be encoded string without NULL bytes, not str

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/danilo/.virtualenvs/fahrplan26/lib/python2.6/site-packages/envoy/core.py", line 167, in run
    out, err = cmd.run(data, timeout)
  File "/home/danilo/.virtualenvs/fahrplan26/lib/python2.6/site-packages/envoy/core.py", line 52, in run
    self.returncode = self.process.returncode
AttributeError: 'NoneType' object has no attribute 'returncode'

from envoy.

kennethreitz avatar kennethreitz commented on June 16, 2024

This project is in a bit of a crisis state — it's really useful, and I use it on a daily basis. However, I wrote it in a few afternoons several years ago and haven't touched it since. In order to get the project into a stable state I'm closing all issues and pull requests

Don't take this as aggressive — it's just necessary for the project to make any progress any time soon (it's pretty clear the project is effectively unmaintained at the moment). Great things to come! Please watch the GitHub logs and feel free to re-open this discussion soon. I just need to really it into a good state first.

❤️

from envoy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.