Opened 5 years ago

Closed 5 years ago

#59200 closed defect (fixed)

py35-rpy2 @3.2.0: SyntaxError: invalid syntax

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc:
Port: py35-rpy2

Description

py35-rpy2 does not build:

Traceback (most recent call last):
  File "setup.py", line 182, in <module>
    'rpy2/rinterface_lib/R_API_eventloop.h'])],
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 446, in __init__
    k: v for k, v in attrs.items()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 281, in __init__
    self.finalize_options()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 734, in finalize_options
    ep.load()(self, ep.name, value)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 217, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 24, in execfile
    code = compile(src, filename, 'exec')
  File "rpy2/_rinterface_cffi_build.py", line 127
    """,
      ^
SyntaxError: invalid syntax

Change History (2)

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

This still happening. Can you fix it? I suspect this is syntax that is valid in later versions of python but not in 3.5 and earlier. If so, one option would be to limit py35-rpy2 to an older version of rpy2 that is compatible with python 3.5. Another option would be to remove py35-rpy2 entirely, presuming no other ports depend on it.

comment:2 Changed 5 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: assignedclosed

In fc417d55a7fdd70ce609efe15116773a5d59df1e/macports-ports (master):

py-rpy2: mark py35 subport as obsoleted

Closes: #59200

Note: See TracTickets for help on using tickets.