[MacPorts] #40078: py27-sympy build fails
#40078: py27-sympy build fails -----------------------+-------------------------------- Reporter: istlota@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: py27-sympy -----------------------+-------------------------------- Today, weeks after the last time I ran code which imports sympy, I ran it again and the code failed with a runtime error indicating some problem while importing sympy. This is code that worked fine a few weeks ago when python27 was specifically v2.7.3 . This is the first time I have done anything with sympy since I upgraded python27 to v2.7.5 . I port uninstalled py27-sympy and attempted to reinstall it. That now fails during building with an error in the main.log which I have zipped and attached. -- Ticket URL: <https://trac.macports.org/ticket/40078> MacPorts <http://www.macports.org/> Ports system for OS X
#40078: py27-sympy build fails: AttributeError: 'module' object has no attribute 'sqrtrem' -------------------------+------------------------ Reporter: istlota@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: py27-sympy | -------------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => stromnov@… Comment: The error in the log is: {{{ AttributeError: 'module' object has no attribute 'sqrtrem' }}} This is described here: http://code.google.com/p/sympy/issues/detail?id=3592 It suggests that gmpy version 2 is too new and that gmpy 1 is required (or was until this was fixed in sympy earlier this year). MacPorts has separate ports for these: py-gmpy and py-gmpy2. py-simpy doesn't declare a dependency on either of them. Perhaps it is used opportunistically, and you did not have py27-gmpy2 installed last time you successfully installed py27-sympy, but now you do? -- Ticket URL: <https://trac.macports.org/ticket/40078#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40078: py27-sympy build fails: AttributeError: 'module' object has no attribute 'sqrtrem' -------------------------+------------------------ Reporter: istlota@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: py27-sympy | -------------------------+------------------------ Comment (by istlota@…): Per ryandesign's response: sudo port uninstall py27-gmpy2 sudo port install py27-gmpy sudo port install py27-sympy py27-gmpy and py27-sympy installed without errors, after which my code which imports sympy now works again. Thanks as usual for a prompt and effective response! -- Ticket URL: <https://trac.macports.org/ticket/40078#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts