Opened 11 years ago

Last modified 10 years ago

#40078 new defect

py27-sympy build fails: AttributeError: 'module' object has no attribute 'sqrtrem'

Reported by: istlota@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: petrrr
Port: py27-sympy

Description

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.

Attachments (1)

istlota sympy main.log.zip (3.0 KB) - added by istlota@… 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by istlota@…

Attachment: istlota sympy main.log.zip added

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

Owner: changed from macports-tickets@… to stromnov@…
Summary: py27-sympy build failspy27-sympy build fails: AttributeError: 'module' object has no attribute 'sqrtrem'

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?

comment:2 Changed 11 years ago 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!

Last edited 11 years ago by istlota@… (previous) (diff)

comment:3 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:4 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:5 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… removed
Note: See TracTickets for help on using tickets.