Re: [pypy-dev] OSError: [Errno 12] Cannot allocate memory from 'import sqlite3' on linux

2013-04-16 Thread Max Lavrenov
Thanks, Armin! On Tue, Apr 16, 2013 at 12:30 AM, Armin Rigo wrote: > Hi Max, > > On Fri, Apr 12, 2013 at 11:54 AM, Max Lavrenov > wrote: > > [PyPy 2.0.0-beta2 with GCC 4.8.0] on linux2 > ... > > OSError: [Errno 12] Cannot allocate memory > > We fixed thi

Re: [pypy-dev] OSError: [Errno 12] Cannot allocate memory from 'import sqlite3' on linux

2013-04-12 Thread Max Lavrenov
Hi Armin No, i can't reproduce the error in simple way. Even ctypes.util.find_library('sqlite3.so') works fine. Actually it is very strange. I can reproduce this error this way from cffi.api import FFI ffi = FFI() ffi.dlopen('sqlite3.so') Traceback (most recent call last): File

[pypy-dev] OSError: [Errno 12] Cannot allocate memory from 'import sqlite3' on linux

2013-04-11 Thread Max Lavrenov
Hello all, I've built pypy from trunk today, but seems there is some problem with sqlite3 module. [e-max@e-max release]$ /home/e-max/workspace/pypy/pypy/goal/pypy-c Python 2.7.3 (948f362bd750, Apr 11 2013, 10:44:18) [PyPy 2.0.0-beta2 with GCC 4.8.0] on linux2 Type "help", "copyright", "credits"

Re: [pypy-dev] Build pypy-2.0b1

2013-04-09 Thread Max Lavrenov
ck_call([str(pypy_c), '-c', 'import _sqlite3']) File "/home/e-max/workspace/pypy_59920/lib-python/2.7/subprocess.py", line 511, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['/home/e-max/workspace/pypy/pypy/goal/pyp

Re: [pypy-dev] Build pypy-2.0b1

2013-04-09 Thread Max Lavrenov
It works. Thanks Armin! Best regards, Max On Tue, Apr 9, 2013 at 2:31 PM, Armin Rigo wrote: > Hi Max, > > On Tue, Apr 9, 2013 at 12:15 PM, Max Lavrenov > wrote: > > [platform:Error] "inconsistent frame size at instruction %s" % > (insn,)) > > We have

[pypy-dev] Build pypy-2.0b1

2013-04-09 Thread Max Lavrenov
Hello I've tried to build pypy from repository but got some compilation error. There is a very big traceback, so i skip some parts. Maybe i could provide some additional information? I still have opened pdb console with this failed compilation. Thanks. [platform:execute] make -j 3 in /tmp/use

Re: [pypy-dev] problem with twisted in current pypy master

2012-11-23 Thread Max Lavrenov
I've created issue https://bugs.pypy.org/issue1335 On Fri, Nov 23, 2012 at 4:04 PM, Armin Rigo wrote: > Hi Max, > > On Fri, Nov 23, 2012 at 12:43 PM, Max Lavrenov > wrote: > > marshal.dump(codeobject, fc) > > UnicodeEncodeError: 'utf-8' codec can'

Re: [pypy-dev] problem with twisted in current pypy master

2012-11-23 Thread Max Lavrenov
. They are not used anywhere else in the code :-( On Fri, Nov 23, 2012 at 4:32 PM, Amaury Forgeot d'Arc wrote: > 2012/11/23 Armin Rigo > >> Hi Max, >> >> On Fri, Nov 23, 2012 at 12:43 PM, Max Lavrenov >> wrote: >> > marshal.dump(codeobject, fc) >>

[pypy-dev] problem with twisted in current pypy master

2012-11-23 Thread Max Lavrenov
Hello everyone I had got this error while installed twisted. I just built pypy from master, made virtual enviroment and pip install twisted. Traceback (most recent call last): File "app_main.py", line 51, in run_toplevel File "app_main.py", line 547, in run_it File "", line 1, in F

[pypy-dev] build error with --shared flag

2012-09-11 Thread Max Lavrenov
Hello When i tried build master pypy with --shared flag i got error: [translation:ERROR] /usr/bin/ld: /usr/lib/libffi.a(ffi64.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC [translation:ERROR] /usr/lib/libffi.a: could not r

Re: [pypy-dev] update (+patch) on embedding pypy

2012-04-12 Thread Max Lavrenov
out what I'm doing wrong. I am a fan of your work and looking forward to using pypy in our production project. On Thu, Apr 12, 2012 at 14:52, Maciej Fijalkowski wrote: > On Wed, Apr 11, 2012 at 4:42 PM, Max Lavrenov wrote: > >> >> Thank you! Finally I've built li

Re: [pypy-dev] update (+patch) on embedding pypy

2012-04-11 Thread Max Lavrenov
Thank you! Finally I've built libpupy.so and uwsgi with it. On Wed, Apr 11, 2012 at 11:22, Amaury Forgeot d'Arc wrote: > Hi, > > 2012/4/11 Max Lavrenov > >> Hello everyone! >> >> I got some errors while i was building the embedded-pypy branch wi

Re: [pypy-dev] update (+patch) on embedding pypy

2012-04-10 Thread Max Lavrenov
Hello everyone! I got some errors while i was building the embedded-pypy branch with python translate.py -Ojit --shared. Could anybody help me with it, please? The defautl branch builds without any errors. [translation:ERROR] In file included from debug_print.c:16:0: [translation:ERROR]

Re: [pypy-dev] strange error in urlunparse

2011-10-10 Thread Max Lavrenov
Hi all It's work now! First tests show 30% speed up in our applications. Thanks everyone for the help! Best wished, Max Lavrenov On Fri, Oct 7, 2011 at 22:02, Maciej Fijalkowski wrote: > On Fri, Oct 7, 2011 at 12:24 PM, Max Lavrenov > wrote: > > Hello all > > > &g

Re: [pypy-dev] strange error in urlunparse

2011-10-08 Thread Max Lavrenov
Hello Maciej Thanks to fix it so fast. Unfortunately when i tried building pypy from trunk i got error http://paste.pocoo.org/show/489392/ Best wishes, Max On Fri, Oct 7, 2011 at 22:02, Maciej Fijalkowski wrote: > On Fri, Oct 7, 2011 at 12:24 PM, Max Lavrenov > wrote: > &g

Re: [pypy-dev] strange error in urlunparse

2011-10-07 Thread Max Lavrenov
Hello all I've written small program that show the problem. http://paste.pocoo.org/show/488730/ You can test it with this line ab -n 1000 http://localhost:8032/ After 810 request i am starting to get errors http://paste.pocoo.org/show/488732/ if i start it with --jit off it work fine Yes, pl

Re: [pypy-dev] strange error in urlunparse

2011-10-05 Thread Max Lavrenov
Hi Antonio You were right, with --jit off project works just fine. I will post simple project to reproduce this bug tomorrow. Best regards, Max On Wed, Oct 5, 2011 at 22:36, Antonio Cuni wrote: > On 05/10/11 16:30, Amaury Forgeot d'Arc wrote: > >> 2011/10/5 Max Lavrenov >&g

Re: [pypy-dev] strange error in urlunparse

2011-10-05 Thread Max Lavrenov
me, netloc, url, params, query, fragment = data if params: url = "%s;%s" % (url, params) return urlunsplit((scheme, netloc, url, query, fragment)) On Wed, Oct 5, 2011 at 18:30, Amaury Forgeot d'Arc wrote: > 2011/10/5 Max Lavrenov : > > after ~500 successfull respo

Re: [pypy-dev] strange error in urlunparse

2011-10-05 Thread Max Lavrenov
I could try writing small application for reproduce this error. It happens in twisted function twisted.web.client.getPage Or may be i shoud try another version of pypy or twisted ( i use trunk version of twisted ) ? On Wed, Oct 5, 2011 at 18:57, Max Lavrenov wrote: > Hello Amaury > Than

[pypy-dev] strange error in urlunparse

2011-10-05 Thread Max Lavrenov
possible? My pypy version is "Python 2.7.1 (7acf2b8fcafd, Sep 26 2011, 11:38:29) [PyPy 1.6.1-dev0 with GCC 4.6.1] on linux2" Best regards, Max Lavrenov ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev