Opened 11 years ago

Closed 10 years ago

#40085 closed update (fixed)

py27-rpy2 segfault; fixed by new version

Reported by: jdswinbank (John Swinbank) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: haspatch Cc: petrrr, kurthindenburg (Kurt Hindenburg)
Port: py-rpy2

Description

The (rather old) version 2.2.1 of rpy2 shipped by Macports segfaults on import:

$ python
Python 2.7.5 (default, Aug  1 2013, 01:01:17)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2.rinterface
Segmentation fault: 11

See attached for details.

The current upstream version 2.3.6 does not have this problem. I attach an updated Portfile which bumps the version to 2.3.6.

Attachments (3)

rpy2_segfault.log (3.8 KB) - added by jdswinbank (John Swinbank) 11 years ago.
Log of rpy2 segfault
Portfile (1.4 KB) - added by jdswinbank (John Swinbank) 11 years ago.
Portfile for rpy2 version 2.3.6
Portfile-py-rpy2.diff (814 bytes) - added by jdswinbank (John Swinbank) 11 years ago.

Download all attachments as: .zip

Change History (11)

Changed 11 years ago by jdswinbank (John Swinbank)

Attachment: rpy2_segfault.log added

Log of rpy2 segfault

Changed 11 years ago by jdswinbank (John Swinbank)

Attachment: Portfile added

Portfile for rpy2 version 2.3.6

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Port: py-rpy2 added; py-rpy removed
Type: defectupdate

Per the guidelines, please instead attach unified diff of the Portfile.

Changed 11 years ago by jdswinbank (John Swinbank)

Attachment: Portfile-py-rpy2.diff added

comment:2 Changed 11 years ago by buchere@…

alternatively: port install py27-pip

and then installing the latest version of rpy2 (2.3.8) by: pip-2.7 install rpy2

here the bug track from rpy2 why the segmentation error whit R verion 3.0.2 happens: https://bitbucket.org/lgautier/rpy2/issue/150/rpy2-crashes-upon-import-with-r-302

best, bue

comment:3 Changed 11 years ago by buchere@…

Cc: buchere@… added

Cc Me!

comment:4 Changed 11 years ago by buchere@…

Cc: buchere@… removed

Cc Me!

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Keywords: haspatch added

comment:6 Changed 11 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:7 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:8 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

The latest version in macports is 2.5.1 and it works for me.

can you update and re-open if you still have issues.

Note: See TracTickets for help on using tickets.