Comments (2)
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.
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)
- missing license HOT 2
- Roadmap to new release HOT 6
- AttributeErro on self.process.returncode HOT 1
- piping stdout from one process into tar fails HOT 6
- lsof command returns null HOT 1
- status_code in core.py trips up most everything HOT 1
- Better error handling for not found command HOT 1
- "OSError: [Errno 2] No such file or directory" from envoy.run when the command is unicode HOT 1
- Systematic <defunct> process using envoy.connect() HOT 2
- AttributeError: 'NoneType' object has no attribute 'returncode' HOT 1
- Upload a wheel to PyPI HOT 2
- Use subprocess32, the backport from Python 3, that guarantees reliability on POSIX HOT 4
- Truncation of stdout HOT 9
- make it easier to figure out if there is an error.
- shell=True option request
- envoy 0.0.3 the problem of connect method
- error using unicode commands HOT 2
- connection error, child exception HOT 1
- adb shell ps | grep mobile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoy.