Run the example *not* as root, then it will work. sys.path is
different for the root user, that is the problem.
-Alex
On Tue, Oct 27, 2009 at 11:17 AM, Alfredo Veltri
wrote:
> Hi Alex,
> i'm trying with hotdot.
> i receive the following errors. Would help me about that?
> Thanks in advance.
>
On Oct 27, 2009, at 10:32 AM, Steve Steiner (listsin) wrote:
> Is this something that can be handled by just running the tests with
> the right switch so we can see everything that passes without the
> switch but doesn't with?
>
> Is there a "new-style" switch or just -3?
Download:
http://twisted
Naman,
Another problem you might (possibly) be encountering - is the way your
server and/or client protocol is implemented. If you just inherit from
"plain" twisted.internet.protocol.Protocol - you are automatically using
write () and dataReceived() methods that do not implement buffering (it i
Naman,
Using threads - is not a good way of testing Twisted code. Instead, you can
implement unit test script (using twisted.trial.unittest) - implementing
test versions of your Twisted server and/or client class(es). This can be
done by extending original class(es) and overwriting appropriate
On Oct 27, 2009, at 8:17 AM, exar...@twistedmatrix.com wrote:
>> At that point there will be two sets of users, the 3.x's that
>> use only new-style classes and the 2.x's for which Twisted classes
>> may be either old or new. It would probably be better to have
>> switched to new-style before th
On 08:38 am, k.kelly.gor...@gmail.com wrote:
>On Sun, Oct 25, 2009 at 1:50 AM, wrote:
>>On 02:39 pm, k.kelly.gor...@gmail.com wrote:
>>>On Thu Oct 8 20:08:12 EDT 2009, Glyph Lefkowitz
>>> wrote:
If old-style classes can be evolved into new-style classes while
somehow following this policy
Hi Naman,
> I tried to implement this:
>
> parent_conn, child_conn = Pipe()
>
> f = defer.Deferred()
> f = threads.deferToThread(start_test.main_func, SCRIPT_PATH,
> TEMP_OUTPUT_PATH, self.output_name, child_conn)
Do you really want to spawn a thread or a process? Since it seems like
you're tryin
I tried to implement this:
parent_conn, child_conn = Pipe()
f = defer.Deferred()
f = threads.deferToThread(start_test.main_func, SCRIPT_PATH,
TEMP_OUTPUT_PATH, self.output_name, child_conn)
response = parent_conn.recv()
print response //prints like: initialization done
self.transport.write(respo
Just as the subject says... you guys (everyone involved with TM) are my
heroes.
Problem:
I needed to develop a TCP server that could serve multiple GPS tracking
devices over GPRS. These devices uses a multi-level (structures within
structures) style binary protocol. I looked at various possible
so
On Sun, Oct 25, 2009 at 1:50 AM, wrote:
> On 02:39 pm, k.kelly.gor...@gmail.com wrote:
>> On Thu Oct 8 20:08:12 EDT 2009, Glyph Lefkowitz
>> wrote:
>>> If old-style classes can be evolved into new-style classes while
>>> somehow following this policy, that would be great.
>> I have some POC co
On Sun, Oct 25, 2009 at 4:38 PM, Glyph Lefkowitz
wrote:
> On Oct 24, 2009, at 10:50 AM, exar...@twistedmatrix.com wrote:
>>
>> I think that we should consider requests to make specific classes new-
>> style (and grant them when doing so won't cause compatibility problems),
>> make all new classes
On Sun, Oct 25, 2009 at 5:32 PM, Glyph Lefkowitz
wrote:
> On Oct 25, 2009, at 1:50 AM, James Y Knight wrote:
>
>> On Oct 25, 2009, at 1:38 AM, Glyph Lefkowitz wrote:
>>> # in your application
>>> class Application(object, Library): pass
>>
>> Maybe the answer "why not" is obvious and I should alre
Hi Steve,
> I'm looking for a very short-term mentoring/consulting contract to
> help me get an Ajax/Comet type of connection working between a web
> interface and a fairly long-running, server-side process.
>
> I want the web interface to reflect the server-side data as it
> becomes
13 matches
Mail list logo