Hi,
2013/11/4 KaShining
> I use this method to enhance protobuf
> http://yz.mit.edu/wp/fast-native-c-protocol-buffers-from-python/
Don't.
With PyPy, protobuf are much faster with the pure-python version.
The C version is actually much slower on PyPy.
The Encode and Decode functions may look f
Hi,
Then maybe this? The .so is produced by "setup.py build" in
build/lib.linux-x86_64-2.7/podpbpypy.so. It can't be imported from
there. You need "setup.py install" too.
Armin
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/ma
NO.
I gen the .so under pypy-virtualenv.
-- Original --
From: "Armin Rigo";;
Date: Mon, Nov 4, 2013 04:25 PM
To: "KaShining";
Cc: "pypy-dev";
Subject: Re: [pypy-dev] pypy about c-extension
Hi KaShining,
You seem to be mi
Hi KaShining,
You seem to be mixing CPython and PyPy. If you use "python setup.py",
meaning CPython, then you make a .so that cannot be imported on PyPy.
You need "pypy setup.py".
But please also consider William's comment.
Armin
___
pypy-dev mailing
-- --
??: "KaShining";;
: 2013??11??4??(??) 4:13
??: "Armin Rigo";
: "pypy-dev";
????: Re: [pypy-dev] pypy about c-extension
+++
addressbook.proto
package tutorial;
message P
odpbpypy
throw err:
ImportError: No module named podpbpypy
-- Original --
From: "Armin Rigo";;
Date: Mon, Nov 4, 2013 04:08 PM
To: "KaShining";
Cc: "pypy-dev";
Subject: Re: [pypy-dev] pypy about c-extension
Hi,
On Mon
The blog post describes how to produce a cpython module .so for your
schema. Needless to say that is pointless on pypy.
On 04/11/2013 7:09 PM, "Armin Rigo" wrote:
> Hi,
>
> On Mon, Nov 4, 2013 at 9:04 AM, KaShining wrote:
> > import podpbpypy
> > ImportError: No module named podpbpypy
> >
> > se
Hi,
On Mon, Nov 4, 2013 at 9:04 AM, KaShining wrote:
> import podpbpypy
> ImportError: No module named podpbpypy
>
> seen can't find podpbpypy.so
There is no point repeating what you already said. I'm asking, how
did you build the .so in the first place.
Armin
import podpbpypy
ImportError: No module named podpbpypy
seen can't find podpbpypy.so
-- Original --
From: "Armin Rigo";;
Date: Mon, Nov 4, 2013 04:02 PM
To: "KaShining";
Cc: "pypy-dev";
Subject: Re: [pypy-dev] pypy abou
Hi,
On Mon, Nov 4, 2013 at 8:47 AM, KaShining wrote:
> but after i gen the podpbpypy.so
How?
Armin
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
I use this method to enhance protobuf
http://yz.mit.edu/wp/fast-native-c-protocol-buffers-from-python/
but after i gen the podpbpypy.so
then import podpbpypy:
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "t2.py", line 4, in
import podpbpypy
Impor
11 matches
Mail list logo