New issue 3078: Memory Error/ Compilation Error/ Multiprocessing error
https://bitbucket.org/pypy/pypy/issues/3078/memory-error-compilation-error

Mukesh D:

P**lease help me solve any of the following cases: Any help would be greatly 
appreciated.** 

I’m trying to install pypy3 on Windows\(Preferred\) and Linux. However, getting 
error in both the cases

**Case 1: Windows 64 bit , Python 3.6 , pypy3.5-v7.0.0-win32**

‌

```python
pypy3 C:\LAA\8.12\LAATranslator.py
```

> _**Error : Traceback \(most recent call last\):**_  
>   
> File "C:\\LAF\\8.12\\[interface.py](http://interface.py)", line 9, in 
> **init**  
> self.\_\_child, self.\_\_parent = Pipe\(duplex=duplex\)  
> File 
> "C:\\Users\\\\Downloads\\pypy3.5-v7.0.0-win32\\pypy3.5-v7.0.0-win32\\lib-python\\3\\multiprocessing\\[context.py](http://context.py)",
>  line 61, in Pipe  
> return Pipe\(duplex\)  
> File 
> "C:\\Users\\\\Downloads\\pypy3.5-v7.0.0-win32\\pypy3.5-v7.0.0-win32\\lib-python\\3\\multiprocessing\\[connection.py](http://connection.py)",
>  line 552, in Pipe  
> \_, err = overlapped.GetOverlappedResult\(True\)  
> File 
> "C:\\Users\\\\Downloads\\pypy3.5-v7.0.0-win32\\pypy3.5-v7.0.0-win32\\lib\_pypy\_winapi.py",
>  line 113, in GetOverlappedResult  
> if self.completed and self.read\_buffer:  
> AttributeError: 'Overlapped' object has no attribute 'read\_buffer'

‌

---

‌

**Case 2  Windows 64 bit , Python 3.6 pypy-c-jit-97473-f29a87447d84-win32**

Error:

> [LogPacketTranslator.py](http://LogPacketTranslator.py)", line 182, in 
> process\_log  
> parsers = ParserManager\(generator\_interfaces, 
> debug=self.\_\_debug,debug\_internal = self.\_\_debug\_internal, 
> unreliable\_mode= self.\__unreliable\_mode\)_  
> _File "C:\\LAF\\8.12\\parsers\_init_.py", line 96, in **init**  
> self.\_\_asserted = Value\('i', 0\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[context.py](http://context.py)",
>  line 135, in Value  
> ctx=self.get\_context\(\)\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[sharedctypes.py](http://sharedctypes.py)",
>  line 73, in Value  
> obj = RawValue\(typecode\_or\_type, \*args\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[sharedctypes.py](http://sharedctypes.py)",
>  line 48, in RawValue  
> obj = _new\_value\(type_\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[sharedctypes.py](http://sharedctypes.py)",
>  line 40, in \_new\_value  
> wrapper = heap.BufferWrapper\(size\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[heap.py](http://heap.py)",
>  line 248, in **init**  
> block = BufferWrapper.\_heap.malloc\(size\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[heap.py](http://heap.py)",
>  line 230, in malloc  
> \(arena, start, stop\) = self.\_malloc\(size\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[heap.py](http://heap.py)",
>  line 128, in \_malloc  
> arena = Arena\(length\)  
> File 
> "C:\\Users\\\\Downloads\\pypy-c-jit-97473-f29a87447d84-win32\\pypy-c-jit-97473-f29a87447d84-win32\\lib-python\\3\\multiprocessing\\[heap.py](http://heap.py)",
>  line 44, in **init**  
> raise FileExistsError\('Cannot find name for new mmap'\)  
> FileExistsError: Cannot find name for new mmap

‌

---

**Case 3 CentOS/Ubuntu - Can not compile the source**

Errors on both Pypy 3.6 beta and nightly build then i tried to build from pypy 
source however getting following error in command 

which pypy  
/usr/bin/pypy

```
‌
```

```
1:~/pypy/pypy/pypy/goal$ pypy ../../rpython/bin/rpython -Ojit 
targetpypystandalone
[translation:info] 2.7.13 (5.10.0+dfsg-3build2, Feb 06 2018, 18:37:50)
[PyPy 5.10.0 with GCC 7.3.0]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', 
version='Unknown'
[translation:info] Translating target as defined by targetpypystandalone
```

> ‌
>
> \[Timer\] Timings:  
> \[Timer\] annotate                       ---  376.5 s  
> \[Timer\] rtype\_lltype                   ---  568.4 s  
> \[Timer\] pyjitpl\_lltype                 ---  340.1 s  
> \[Timer\] ===========================================  
> \[Timer\] Total:                         --- 1285.1 s  
> \[translation:info\] Error:  
> File "/home/ubuntu/pypy/pypy/rpython/translator/goal/translate.py", line 318, 
> in main  
> drv.proceed\(goals\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/driver.py", line 554, in 
> proceed  
> result = self.\_execute\(goals, task\_skip = self.\_maybe\_skip\(\)\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/tool/taskengine.py", line 
> 114, in \_execute  
> res = self.\_do\(goal, taskcallable, \*args, \*\*kwds\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/driver.py", line 278, in \_do 
>  
> res = func\(\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/driver.py", line 361, in 
> task\_pyjitpl\_lltype  
> backend\_name=self.config.translation.jit\_backend, inline=True\)  
> File "/home/ubuntu/pypy/pypy/rpython/jit/metainterp/warmspot.py", line 72, in 
> apply\_jit  
> warmrunnerdesc.finish\(\)  
> File "/home/ubuntu/pypy/pypy/rpython/jit/metainterp/warmspot.py", line 297, 
> in finish  
> self.annhelper.finish\(\)  
> File "/home/ubuntu/pypy/pypy/rpython/rtyper/annlowlevel.py", line 218, in 
> finish  
> self.finish\_annotate\(\)  
> File "/home/ubuntu/pypy/pypy/rpython/rtyper/annlowlevel.py", line 238, in 
> finish\_annotate  
> ann.complete\_helpers\(\)  
> File "/home/ubuntu/pypy/pypy/rpython/annotator/annrpython.py", line 118, in 
> complete\_helpers  
> self.simplify\(block\_subset=self.added\_blocks\)  
> File "/home/ubuntu/pypy/pypy/rpython/annotator/annrpython.py", line 360, in 
> simplify  
> extra\_passes=extra\_passes\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/transform.py", line 269, in 
> transform\_graph  
> transform\_dead\_op\_vars\(ann, block\_subset\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/transform.py", line 142, in 
> transform\_dead\_op\_vars  
> transform\_dead\_op\_vars\_in\_blocks\(block\_subset, 
> self.translator.graphs\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/simplify.py", line 480, in 
> transform\_dead\_op\_vars\_in\_blocks  
> flow\_read\_var\_backward\(set\(read\_vars\)\)  
> File "/home/ubuntu/pypy/pypy/rpython/translator/simplify.py", line 475, in 
> flow\_read\_var\_backward  
> for prevvar in dependencies\[var\]:  
> **\[translation:ERROR\] MemoryError**  
> **\[translation\] start debugger...**

> /home/ubuntu/pypy/pypy/rpytho

> ‌

> n/translator/simplify.py\(475\)flow\_read\_var\_backward\(\)  
> -> for prevvar in dependencies\[var\]:

‌

> **for debug purpose Here \[translation\] \[objspace\]**  
> \[std\]  
> intshortcut = True  
> optimized\_list\_getitem = True  
> withspecialisedtuple = True  
> \[usemodules\]  
> **pypy** = True  
> \_ast = True  
> \_cffi\_backend = True  
> \_codecs = True  
> \_collections = True  
> \_continuation = True  
> \_cppyy = True  
> \_csv = True  
> \_jitlog = True  
> \_lsprof = True  
> \_md5 = True  
> \_minimal\_curses = True  
> \_multibytecodec = True  
> \_multiprocessing = True  
> \_pickle\_support = True  
> \_posixsubprocess = True  
> \_pypyjson = True  
> \_random = True  
> \_rawffi = True  
> \_socket = True  
> \_sre = True  
> \_string = True  
> \_testing = True  
> \_vmprof = True  
> \_weakref = True  
> array = True  
> atexit = True  
> binascii = True  
> bz2 = True  
> cmath = True  
> cpyext = True  
> errno = True  
> faulthandler = True  
> fcntl = True  
> gc = True  
> imp = True  
> marshal = True  
> math = True  
> mmap = True  
> parser = True  
> pwd = True  
> pyexpat = True  
> pypyjit = True  
> select = True  
> signal = True  
> struct = True  
> symbol = True  
> termios = True  
> thread = True  
> time = True  
> token = True  
> unicodedata = True  
> zipimport = True  
> zlib = True  
> \[translation\] [translate.py](http://translate.py) configuration:  
> \[translation\] \[translate\]  
> opt = jit  
> targetspec = targetpypystandalone  
> \[translation\] translation configuration:  
> \[translation\] \[translation\]  
> check\_str\_without\_nul = True  
> continuation = True  
> gc = incminimark  
> gcrootfinder = shadowstack  
> gctransformer = framework  
> icon = pypy.ico  
> jit = True  
> list\_comprehension\_operations = True  
> secondaryentrypoints = cpyext,main  
> shared = True  
> thread = True  
> type\_system = lltype  
> withsmallfuncsets = 5  
> \[translation:info\] Annotating&simplifying...
>
> ‌

‌


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to