[sage-devel] Why does mpath special case for the sage backend?

2021-03-25 Thread Rocky Bernstein
Recently this has been an issue in that sage doesn't expose the mpf class.

See https://groups.google.com/g/sage-devel/c/hUJeK4r34k8

What is the history around having a special sage back end? 

If this is about Pythoin Pickle differences between Python2 and Python3, I 
support for Python2 were dropped what that address this? 

The main question with respect to sage backend versus not seems to be that 
the sage backend doesn't provide the mpf class.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/66bcc04f-d43b-44bd-a0fa-c3134ff2a981n%40googlegroups.com.


[sage-devel] Re: Error building a wheel for cython-0.29.21

2021-03-25 Thread Matthias Koeppe
Sage 9.2 does not support building from source on macOS Big Sur. 
Use the 9.3 release 
candidate. 
https://wiki.sagemath.org/ReleaseTours/sage-9.3#Availability_of_Sage_9.3_and_installation_help

On Thursday, March 25, 2021 at 10:26:41 AM UTC-7 la...@math.luc.edu wrote:

> Thanks Samuel,
>
> My plan was to build the master branch first. Is that a bad idea? (My 
> reasoning was that it's been a long, long while since I've compiled from 
> source.)
>
> My VERSION.txt file says:
>
> SageMath version 9.2, Release Date: 2020-10-24
>
> I followed the steps you mentioned above (except starting from master 
> branch).
>
> Build seems to have stopped at the same point (cython 0.29.21). I'm 
> including the new log file for this, as well as the config.log and 
> brew-list-versions.txt files you request.
>
>  
>
>
>
> On Thursday, March 25, 2021 at 12:22:00 AM UTC-5 Samuel Lelievre wrote:
>
>> What commands did you run? Were you building the
>> latest development version (Sage 9.3.rc0)?
>>
>> Here are the commands I would run to upgrade.
>>
>> Update Homebrew index, check which packages
>> are outdated, and upgrade.
>> ```
>> $ brew update
>> $ brew outdated
>> $ brew upgrade
>> ```
>>
>> Change to the Sage installation folder
>> and get  the latest develop branch.
>> ```
>> $ cd $(sage -c 'print(SAGE_ROOT)') && pwd
>> $ git checkout develop -q
>> $ git pull origin develop -q && git branch -vv
>> ```
>>
>> Recall the number of processors of your Mac:
>> ```
>> $ sysctl -n hw.ncpu
>> ```
>>
>> Choose how many jobs to run in parallel;
>> for instance, to run 8 jobs at once:
>> ```
>> $ MAKE='make -j8'
>> ```
>>
>> Set to use the Homebrew build environment,
>> then bootstrap, configure and make.
>> ```
>> $ source .homebrew-build-env
>> $ ./bootstrap -q && ./configure -q
>> $ make -s V=0
>> ```
>> (Optionally, don't use the quiet (`-q`) flag for the
>> configure step, and follow its final suggestions
>> in order to install more recommended packages.)
>>
>> Optionally, run tests:
>> ```
>> $ make -s V=0 ptestlong
>> ```
>>
>> Then report back. If the build fails, the file `config.log`
>> and log files for packages that fail to build will be useful
>> so ideally give access to them. I do that by uploading them
>> somewhere in compressed form and sending a link;
>> others prefer to attach files when emailing the list.
>>
>> One way to include Homebrew package version info
>> is to include the file obtained by running:
>> ```
>> $ brew list --versions > brew-list-versions.txt
>> ```
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/760c2ed0-f0b5-4ded-be20-cfe9a0f940fbn%40googlegroups.com.


[sage-devel] Re: Running MathicsSession inside Sage

2021-03-25 Thread Rocky Bernstein
I spent some time looking over the links in the ticket cited. 

I am trying to understand why mpmath decided to do something special for 
sage and whether that is relevant still. I will ask on mpmath...
On Thursday, March 25, 2021 at 12:19:59 PM UTC-4 Matthias Koeppe wrote:

> Sounds like https://trac.sagemath.org/ticket/25445
>
> On Thursday, March 25, 2021 at 7:24:43 AM UTC-7 seb@gmail.com wrote:
>
>> Hi,
>>
>> Did anyone try this before? At the moment this stucks at the following 
>> issue:
>>
>> sage: import mpmath
>> sage: mpmath.ctx_mp_python.mpf
>>
>> ---
>> AttributeErrorTraceback (most recent call 
>> last)
>>  in 
>> > 1 mpmath.ctx_mp_python.mpf
>>
>> AttributeError: module 'mpmath.ctx_mp_python' has no attribute 'mpf'
>>
>>
>> whereas
>>
>> ~/devel/sage$ ./local/bin/python3
>> Python 3.9.2 (default, Mar 19 2021, 22:23:28)
>> [GCC 7.4.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import mpmath
>> >>> mpmath.ctx_mp_python.mpf
>> 
>>
>>
>> Any ideas what is the reason for this?
>>
>> For the background of this question see Mathics issue 1169 
>>   especially this comment 
>> .
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/015ea382-7387-40e3-92c3-b4de551ec307n%40googlegroups.com.


[sage-devel] Re: Running MathicsSession inside Sage

2021-03-25 Thread Matthias Koeppe
Sounds like https://trac.sagemath.org/ticket/25445

On Thursday, March 25, 2021 at 7:24:43 AM UTC-7 seb@gmail.com wrote:

> Hi,
>
> Did anyone try this before? At the moment this stucks at the following 
> issue:
>
> sage: import mpmath
> sage: mpmath.ctx_mp_python.mpf
> ---
> AttributeErrorTraceback (most recent call last)
>  in 
> > 1 mpmath.ctx_mp_python.mpf
>
> AttributeError: module 'mpmath.ctx_mp_python' has no attribute 'mpf'
>
>
> whereas
>
> ~/devel/sage$ ./local/bin/python3
> Python 3.9.2 (default, Mar 19 2021, 22:23:28)
> [GCC 7.4.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import mpmath
> >>> mpmath.ctx_mp_python.mpf
> 
>
>
> Any ideas what is the reason for this?
>
> For the background of this question see Mathics issue 1169 
>   especially this comment 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/98843786-f8b9-4a60-b295-4253e9b31810n%40googlegroups.com.


[sage-devel] Running MathicsSession inside Sage

2021-03-25 Thread seb....@gmail.com
Hi,

Did anyone try this before? At the moment this stucks at the following 
issue:

sage: import mpmath
sage: mpmath.ctx_mp_python.mpf
---
AttributeErrorTraceback (most recent call last)
 in 
> 1 mpmath.ctx_mp_python.mpf

AttributeError: module 'mpmath.ctx_mp_python' has no attribute 'mpf'


whereas

~/devel/sage$ ./local/bin/python3
Python 3.9.2 (default, Mar 19 2021, 22:23:28)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mpmath
>>> mpmath.ctx_mp_python.mpf



Any ideas what is the reason for this?

For the background of this question see Mathics issue 1169 
  especially this comment 
.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/2eeaf3dd-2762-475f-b073-ec205e0b945fn%40googlegroups.com.