Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-17 Thread Aaron Meurer
On Wed, Aug 17, 2022 at 12:47 PM Oscar Benjamin 
wrote:

> Hi Peter,
>
> I think that there might need to be a second release candidate after
> fixing this:
> https://github.com/sympy/sympy/issues/23924
>
> Internally lambdify with modules='scipy' uses "from scipy import *" to
> create a namespace for executing the generated code. However in the
> next release of scipy it might be that "from scipy import *" will
> raise ImportError:
> https://github.com/scipy/scipy/pull/15607#issuecomment-1215110575


It looks like SciPy is going to fix this upstream
https://github.com/scipy/scipy/pull/16854.


>
>
> The lambdify code catches the ImportError but then fails to find the
> functions that it expected to find by importing them from scipy. I
> think it's important for SymPy to have a fix for this before the next
> release of SciPy.
>
> The lambdify code that does this already needed to be changed because
> it shouldn't be using functions like scipy.sin etc that are really
> aliases for numpy functions and are now deprecated. I just didn't want
> to try and fix that myself because I don't know the lambdify code so
> well. Also changing something like this right before release is
> generally something I would prefer not to do because it leaves minimal
> time for testing.
>

I think that's already been an issue in the current release
https://github.com/sympy/sympy/issues/20294#issuecomment-921294268. So I
don't think it needs to be a release blocking issue.

Aaron Meurer


>
> Oscar
>
> On Wed, 17 Aug 2022 at 13:54, Peter Stahlecker
>  wrote:
> >
> > Dear Oscar,
> >
> > I guess, you will inform us when the 'final' version is released. I
> understood from Jason Moore that there is some improvement relating to
> 'lambdify' which I want to try as soon as possible.
> > NB: I play around with sympy.physics.mechanics mostly, just for fun,
> nothing serious, just what semi retired engineers do. :-))
> >
> > Thanks, Peter
> >
> > On Sat 13. Aug 2022 at 02:09, David Bailey  wrote:
> >>
> >> On 12/08/2022 11:37, Oscar Benjamin wrote:
> >> > On Fri, 12 Aug 2022 at 11:15, David Bailey 
> wrote:
> >> >> On 09/08/2022 23:56, Oscar Benjamin wrote:
> >> >>> I forgot to mention that to install this release you can use:
> >> >>>
> >> >>> pip install --pre sympy
> >> >>>
> >> >>> --
> >> >>> Oscar
> >> >>>
> >> >> Oscar,
> >> >>
> >> >> When I use this command, I get this:
> >> >>
> >> >> Requirement already satisfied: sympy in
> >> >> c:\pythonsystem\lib\site-packages (1.10)
> >> >> Requirement already satisfied: mpmath>=0.19 in
> >> >> c:\pythonsystem\lib\site-packages (from sympy) (1.1.0)
> >> >> WARNING: You are using pip version 21.0.1; however, version 22.2.2 is
> >> >> available.
> >> >> You should consider upgrading via the 'c:\pythonsystem\python.exe -m
> pip
> >> >> install --upgrade pip' command.
> >> >>
> >> >>
> >> >> Is it just that my pip is out of date?
> >> > If you already have sympy installed and are trying to install the
> >> > prerelease then you need to either first uninstall sympy or otherwise
> >> > tell pip that you want to upgrade:
> >> >
> >> > pip install --upgrade --pre sympy
> >> >
> >> > --
> >> > Oscar
> >> >
> >> Thanks Oscar!
> >>
> >>
> >> David
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "sympy" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to sympy+unsubscr...@googlegroups.com.
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/d5318650-4ab2-45c9-a1b7-60097610cad0%40dbailey.co.uk
> .
> >
> > --
> > Best regards,
> >
> > Peter Stahlecker
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sympy+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CABKqA0bhmMBsbxwMVc_tyqqh_mBkLGTr9VqgtdwNT7R_RjqfMQ%40mail.gmail.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAHVvXxS%3D8vyUcEAGQVu64GR7VGaGVrF0WpSFNdvODccQd8b0Xg%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6KbCwat3v3ysNsHUuPsJwaPQ4gQgss%3Dm%2BBRoE%2BoWiuAOA%40mail.gmail.com.


Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-17 Thread Oscar Benjamin
Hi Peter,

I think that there might need to be a second release candidate after
fixing this:
https://github.com/sympy/sympy/issues/23924

Internally lambdify with modules='scipy' uses "from scipy import *" to
create a namespace for executing the generated code. However in the
next release of scipy it might be that "from scipy import *" will
raise ImportError:
https://github.com/scipy/scipy/pull/15607#issuecomment-1215110575

The lambdify code catches the ImportError but then fails to find the
functions that it expected to find by importing them from scipy. I
think it's important for SymPy to have a fix for this before the next
release of SciPy.

The lambdify code that does this already needed to be changed because
it shouldn't be using functions like scipy.sin etc that are really
aliases for numpy functions and are now deprecated. I just didn't want
to try and fix that myself because I don't know the lambdify code so
well. Also changing something like this right before release is
generally something I would prefer not to do because it leaves minimal
time for testing.

Oscar

On Wed, 17 Aug 2022 at 13:54, Peter Stahlecker
 wrote:
>
> Dear Oscar,
>
> I guess, you will inform us when the 'final' version is released. I 
> understood from Jason Moore that there is some improvement relating to 
> 'lambdify' which I want to try as soon as possible.
> NB: I play around with sympy.physics.mechanics mostly, just for fun, nothing 
> serious, just what semi retired engineers do. :-))
>
> Thanks, Peter
>
> On Sat 13. Aug 2022 at 02:09, David Bailey  wrote:
>>
>> On 12/08/2022 11:37, Oscar Benjamin wrote:
>> > On Fri, 12 Aug 2022 at 11:15, David Bailey  wrote:
>> >> On 09/08/2022 23:56, Oscar Benjamin wrote:
>> >>> I forgot to mention that to install this release you can use:
>> >>>
>> >>> pip install --pre sympy
>> >>>
>> >>> --
>> >>> Oscar
>> >>>
>> >> Oscar,
>> >>
>> >> When I use this command, I get this:
>> >>
>> >> Requirement already satisfied: sympy in
>> >> c:\pythonsystem\lib\site-packages (1.10)
>> >> Requirement already satisfied: mpmath>=0.19 in
>> >> c:\pythonsystem\lib\site-packages (from sympy) (1.1.0)
>> >> WARNING: You are using pip version 21.0.1; however, version 22.2.2 is
>> >> available.
>> >> You should consider upgrading via the 'c:\pythonsystem\python.exe -m pip
>> >> install --upgrade pip' command.
>> >>
>> >>
>> >> Is it just that my pip is out of date?
>> > If you already have sympy installed and are trying to install the
>> > prerelease then you need to either first uninstall sympy or otherwise
>> > tell pip that you want to upgrade:
>> >
>> > pip install --upgrade --pre sympy
>> >
>> > --
>> > Oscar
>> >
>> Thanks Oscar!
>>
>>
>> David
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sympy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sympy+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sympy/d5318650-4ab2-45c9-a1b7-60097610cad0%40dbailey.co.uk.
>
> --
> Best regards,
>
> Peter Stahlecker
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sympy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/CABKqA0bhmMBsbxwMVc_tyqqh_mBkLGTr9VqgtdwNT7R_RjqfMQ%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxS%3D8vyUcEAGQVu64GR7VGaGVrF0WpSFNdvODccQd8b0Xg%40mail.gmail.com.


Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-17 Thread Peter Stahlecker
Dear Oscar,

I guess, you will inform us when the 'final' version is released. I
understood from Jason Moore that there is some improvement relating to
'lambdify' which I want to try as soon as possible.
NB: I play around with sympy.physics.mechanics mostly, just for fun,
nothing serious, just what semi retired engineers do. :-))

Thanks, Peter

On Sat 13. Aug 2022 at 02:09, David Bailey  wrote:

> On 12/08/2022 11:37, Oscar Benjamin wrote:
> > On Fri, 12 Aug 2022 at 11:15, David Bailey  wrote:
> >> On 09/08/2022 23:56, Oscar Benjamin wrote:
> >>> I forgot to mention that to install this release you can use:
> >>>
> >>> pip install --pre sympy
> >>>
> >>> --
> >>> Oscar
> >>>
> >> Oscar,
> >>
> >> When I use this command, I get this:
> >>
> >> Requirement already satisfied: sympy in
> >> c:\pythonsystem\lib\site-packages (1.10)
> >> Requirement already satisfied: mpmath>=0.19 in
> >> c:\pythonsystem\lib\site-packages (from sympy) (1.1.0)
> >> WARNING: You are using pip version 21.0.1; however, version 22.2.2 is
> >> available.
> >> You should consider upgrading via the 'c:\pythonsystem\python.exe -m pip
> >> install --upgrade pip' command.
> >>
> >>
> >> Is it just that my pip is out of date?
> > If you already have sympy installed and are trying to install the
> > prerelease then you need to either first uninstall sympy or otherwise
> > tell pip that you want to upgrade:
> >
> > pip install --upgrade --pre sympy
> >
> > --
> > Oscar
> >
> Thanks Oscar!
>
>
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/d5318650-4ab2-45c9-a1b7-60097610cad0%40dbailey.co.uk
> .
>
-- 
Best regards,

Peter Stahlecker

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CABKqA0bhmMBsbxwMVc_tyqqh_mBkLGTr9VqgtdwNT7R_RjqfMQ%40mail.gmail.com.


Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-12 Thread David Bailey

On 12/08/2022 11:37, Oscar Benjamin wrote:

On Fri, 12 Aug 2022 at 11:15, David Bailey  wrote:

On 09/08/2022 23:56, Oscar Benjamin wrote:

I forgot to mention that to install this release you can use:

pip install --pre sympy

--
Oscar


Oscar,

When I use this command, I get this:

Requirement already satisfied: sympy in
c:\pythonsystem\lib\site-packages (1.10)
Requirement already satisfied: mpmath>=0.19 in
c:\pythonsystem\lib\site-packages (from sympy) (1.1.0)
WARNING: You are using pip version 21.0.1; however, version 22.2.2 is
available.
You should consider upgrading via the 'c:\pythonsystem\python.exe -m pip
install --upgrade pip' command.


Is it just that my pip is out of date?

If you already have sympy installed and are trying to install the
prerelease then you need to either first uninstall sympy or otherwise
tell pip that you want to upgrade:

pip install --upgrade --pre sympy

--
Oscar


Thanks Oscar!


David

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/d5318650-4ab2-45c9-a1b7-60097610cad0%40dbailey.co.uk.


Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-12 Thread Oscar Benjamin
On Fri, 12 Aug 2022 at 11:15, David Bailey  wrote:
>
> On 09/08/2022 23:56, Oscar Benjamin wrote:
> > I forgot to mention that to install this release you can use:
> >
> > pip install --pre sympy
> >
> > --
> > Oscar
> >
> Oscar,
>
> When I use this command, I get this:
>
> Requirement already satisfied: sympy in
> c:\pythonsystem\lib\site-packages (1.10)
> Requirement already satisfied: mpmath>=0.19 in
> c:\pythonsystem\lib\site-packages (from sympy) (1.1.0)
> WARNING: You are using pip version 21.0.1; however, version 22.2.2 is
> available.
> You should consider upgrading via the 'c:\pythonsystem\python.exe -m pip
> install --upgrade pip' command.
>
>
> Is it just that my pip is out of date?

If you already have sympy installed and are trying to install the
prerelease then you need to either first uninstall sympy or otherwise
tell pip that you want to upgrade:

pip install --upgrade --pre sympy

--
Oscar

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxRmRnq9k4Kg87t74yVMRq-P6BTvz7vB_s7HwD3g5HF7KA%40mail.gmail.com.


Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-12 Thread David Bailey

On 09/08/2022 23:56, Oscar Benjamin wrote:

I forgot to mention that to install this release you can use:

pip install --pre sympy

--
Oscar


Oscar,

When I use this command, I get this:

Requirement already satisfied: sympy in 
c:\pythonsystem\lib\site-packages (1.10)
Requirement already satisfied: mpmath>=0.19 in 
c:\pythonsystem\lib\site-packages (from sympy) (1.1.0)
WARNING: You are using pip version 21.0.1; however, version 22.2.2 is 
available.
You should consider upgrading via the 'c:\pythonsystem\python.exe -m pip 
install --upgrade pip' command.



Is it just that my pip is out of date?


David

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/5f841390-14fd-411e-c96e-7f7d88afdd8c%40dbailey.co.uk.


[sympy] Re: SymPy 1.11rc1 released

2022-08-09 Thread Oscar Benjamin
I forgot to mention that to install this release you can use:

pip install --pre sympy

--
Oscar

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxQgHtrvWBaZxH67gLiKPDsAmmTkNAAM3n9-CMxUfB%3DRcA%40mail.gmail.com.