Re: [sage-devel] Re: Error building Sage 9.6 due to openssl

2022-07-26 Thread Max Kölbl
Ah okay, that's good to know. I probably won't need that feature in the 
near future anyway.
But thank you; I ran `make build` and finally the process terminated 
without a fatal error.

I also ran it and it works fine now.
dim...@gmail.com schrieb am Dienstag, 26. Juli 2022 um 18:10:20 UTC+9:

> documentation building is currently broken on Cygwin.
>
> instead of running 'make', run 'make build'.
>
> Anyhow, you probably have mostly functional Sage installation now.
>
>
>
> On Tue, 26 Jul 2022, 10:18 Max Kölbl,  wrote:
>
>> Thank you very much for your help!
>>
>> >Install the relevant cygwin packages:
>> >```
>> >$ apt-cyg install bzip2 libbz2-devel liblzma-devel libffi-devel xz
>> >```
>> >Clean up the corresponding Sage packages:
>> >```
>> >$ make bzip2-clean liblzma-clean libffi-clean xz-clean
>> >
>> >Then configure again:
>> >```
>> >$ make configure
>> >$ ./configure
>> >```
>> >
>> >Follow any recommendations at end of configure output.
>> >
>> >Finally decide number of parallel jobs
>> >```
>> >$ export MAKE='make -j8'
>> >```
>> >and run make again:
>> >```
>> >$ make -s V=0
>>
>> That helped. Sage is now *almost* completely installed.
>> However, now a different problem appeared. 
>> While installing the docs, the following error occured:
>>
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:34: 
>> WARNING: unknown document: categories/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:76: 
>> WARNING: unknown document: groups/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:79: 
>> WARNING: unknown document: algebras/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:84: 
>> WARNING: unknown document: combinat/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:85: 
>> WARNING: unknown document: graphs/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:89: 
>> WARNING: unknown document: coding/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:105: 
>> WARNING: unknown document: knots/index
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:157: 
>> WARNING: unknown document: libs/index
>> >[reference] The inventory files are in 
>> ../../local/share/doc/sage/inventory/en/reference.
>> >Error building the documentation.
>> >Traceback (most recent call last):
>> >  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
>> >return _run_code(code, main_globals, None,
>> >  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
>> >exec(code, run_globals)
>> >  File 
>> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/__main__.py",
>>  
>> line 500, in 
>> >sys.exit(main())
>> >  File 
>> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/__main__.py",
>>  
>> line 497, in main
>> >builder()
>> >  File 
>> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/builders.py",
>>  
>> line 167, in f
>> >runsphinx()
>> >  File 
>> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/sphinxbuild.py",
>>  
>> line 327, in runsphinx
>> >sys.stderr.raise_errors()
>> >  File 
>> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/sphinxbuild.py",
>>  
>> line 263, in raise_errors
>> >raise OSError(self._error)
>> >OSError: /home/Ray/sage/sage/src/doc/en/reference/index.rst:34: WARNING: 
>> unknown document: categories/index
>> >
>> >Note: incremental documentation builds sometimes cause spurious
>> >error messages. To be certain that these are real errors, run
>> >"make doc-clean doc-uninstall" first and try again.
>> >make[6]: *** [Makefile:27: doc-inventory--reference_top] Error 1
>> >make[5]: *** [Makefile:45: doc-inventory-reference] Error 2
>>
>> I tried
>> ```
>> $make doc-clean doc-uninstall
>> $make configure
>> $./configure
>> $make -s V=0
>> ```
>> and it raised the same error (log file is attached).
>> It appears that some of the docs are not building completely; this is a 
>> part of the log:
>> >[knots] building [inventory]: targets for 4 source files that are 
>> out of date
>> >[knots] updating environment: [new config] 4 added, 0 changed, 0 
>> removed
>> >[lfunction] building [inventory]: targets for 5 source files that are 
>> out of date
>> >[lfunction] updating environment: [new config] 5 added, 0 changed, 0 
>> removed
>> >[lfunction] The inventory files are in 
>> ../../local/share/doc/sage/inventory/en/reference/lfunctions.
>> >Build finished. The built documents can be found in 
>> /home/Ray/sage/sage/local/share/doc/sage/inventory/en/reference/lfunctions
>> And later I get this:
>> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:105: 
>> WARNING: unknown document: knots/index 
>>
>> What is the best thing to do there?

Re: [sage-devel] Re: Error building Sage 9.6 due to openssl

2022-07-26 Thread Dima Pasechnik
documentation building is currently broken on Cygwin.

instead of running 'make', run 'make build'.

Anyhow, you probably have mostly functional Sage installation now.



On Tue, 26 Jul 2022, 10:18 Max Kölbl,  wrote:

> Thank you very much for your help!
>
> >Install the relevant cygwin packages:
> >```
> >$ apt-cyg install bzip2 libbz2-devel liblzma-devel libffi-devel xz
> >```
> >Clean up the corresponding Sage packages:
> >```
> >$ make bzip2-clean liblzma-clean libffi-clean xz-clean
> >
> >Then configure again:
> >```
> >$ make configure
> >$ ./configure
> >```
> >
> >Follow any recommendations at end of configure output.
> >
> >Finally decide number of parallel jobs
> >```
> >$ export MAKE='make -j8'
> >```
> >and run make again:
> >```
> >$ make -s V=0
>
> That helped. Sage is now *almost* completely installed.
> However, now a different problem appeared.
> While installing the docs, the following error occured:
>
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:34:
> WARNING: unknown document: categories/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:76:
> WARNING: unknown document: groups/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:79:
> WARNING: unknown document: algebras/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:84:
> WARNING: unknown document: combinat/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:85:
> WARNING: unknown document: graphs/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:89:
> WARNING: unknown document: coding/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:105:
> WARNING: unknown document: knots/index
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:157:
> WARNING: unknown document: libs/index
> >[reference] The inventory files are in
> ../../local/share/doc/sage/inventory/en/reference.
> >Error building the documentation.
> >Traceback (most recent call last):
> >  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
> >return _run_code(code, main_globals, None,
> >  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
> >exec(code, run_globals)
> >  File
> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/__main__.py",
> line 500, in 
> >sys.exit(main())
> >  File
> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/__main__.py",
> line 497, in main
> >builder()
> >  File
> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/builders.py",
> line 167, in f
> >runsphinx()
> >  File
> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/sphinxbuild.py",
> line 327, in runsphinx
> >sys.stderr.raise_errors()
> >  File
> "/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/sphinxbuild.py",
> line 263, in raise_errors
> >raise OSError(self._error)
> >OSError: /home/Ray/sage/sage/src/doc/en/reference/index.rst:34: WARNING:
> unknown document: categories/index
> >
> >Note: incremental documentation builds sometimes cause spurious
> >error messages. To be certain that these are real errors, run
> >"make doc-clean doc-uninstall" first and try again.
> >make[6]: *** [Makefile:27: doc-inventory--reference_top] Error 1
> >make[5]: *** [Makefile:45: doc-inventory-reference] Error 2
>
> I tried
> ```
> $make doc-clean doc-uninstall
> $make configure
> $./configure
> $make -s V=0
> ```
> and it raised the same error (log file is attached).
> It appears that some of the docs are not building completely; this is a
> part of the log:
> >[knots] building [inventory]: targets for 4 source files that are out
> of date
> >[knots] updating environment: [new config] 4 added, 0 changed, 0
> removed
> >[lfunction] building [inventory]: targets for 5 source files that are out
> of date
> >[lfunction] updating environment: [new config] 5 added, 0 changed, 0
> removed
> >[lfunction] The inventory files are in
> ../../local/share/doc/sage/inventory/en/reference/lfunctions.
> >Build finished. The built documents can be found in
> /home/Ray/sage/sage/local/share/doc/sage/inventory/en/reference/lfunctions
> And later I get this:
> >[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:105:
> WARNING: unknown document: knots/index
>
> What is the best thing to do there?
> It's the same packages that cause the trouble in both runs.
>
> Thank you very much in advance!
>
> Max
>
> Samuel Lelievre schrieb am Montag, 25. Juli 2022 um 09:17:47 UTC+9:
>
>> Install the relevant cygwin packages:
>> ```
>> $ apt-cyg install bzip2 libbz2-devel liblzma-devel libffi-devel xz
>> ```
>> Clean up the corresponding Sage packages:
>> ```
>> $ make bzip2-clean liblzma-clean libffi-clean xz-clean
>>
>> Then configure again:
>> ```
>> $ make configure

Re: [sage-devel] Re: Error building Sage 9.6 due to openssl

2022-07-26 Thread Max Kölbl
Thank you very much for your help!

>Install the relevant cygwin packages:
>```
>$ apt-cyg install bzip2 libbz2-devel liblzma-devel libffi-devel xz
>```
>Clean up the corresponding Sage packages:
>```
>$ make bzip2-clean liblzma-clean libffi-clean xz-clean
>
>Then configure again:
>```
>$ make configure
>$ ./configure
>```
>
>Follow any recommendations at end of configure output.
>
>Finally decide number of parallel jobs
>```
>$ export MAKE='make -j8'
>```
>and run make again:
>```
>$ make -s V=0

That helped. Sage is now *almost* completely installed.
However, now a different problem appeared. 
While installing the docs, the following error occured:

>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:34: 
WARNING: unknown document: categories/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:76: 
WARNING: unknown document: groups/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:79: 
WARNING: unknown document: algebras/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:84: 
WARNING: unknown document: combinat/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:85: 
WARNING: unknown document: graphs/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:89: 
WARNING: unknown document: coding/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:105: 
WARNING: unknown document: knots/index
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:157: 
WARNING: unknown document: libs/index
>[reference] The inventory files are in 
../../local/share/doc/sage/inventory/en/reference.
>Error building the documentation.
>Traceback (most recent call last):
>  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
>return _run_code(code, main_globals, None,
>  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
>exec(code, run_globals)
>  File 
"/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/__main__.py",
 
line 500, in 
>sys.exit(main())
>  File 
"/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/__main__.py",
 
line 497, in main
>builder()
>  File 
"/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/builders.py",
 
line 167, in f
>runsphinx()
>  File 
"/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/sphinxbuild.py",
 
line 327, in runsphinx
>sys.stderr.raise_errors()
>  File 
"/home/Ray/sage/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage_docbuild/sphinxbuild.py",
 
line 263, in raise_errors
>raise OSError(self._error)
>OSError: /home/Ray/sage/sage/src/doc/en/reference/index.rst:34: WARNING: 
unknown document: categories/index
>
>Note: incremental documentation builds sometimes cause spurious
>error messages. To be certain that these are real errors, run
>"make doc-clean doc-uninstall" first and try again.
>make[6]: *** [Makefile:27: doc-inventory--reference_top] Error 1
>make[5]: *** [Makefile:45: doc-inventory-reference] Error 2

I tried
```
$make doc-clean doc-uninstall
$make configure
$./configure
$make -s V=0
```
and it raised the same error (log file is attached).
It appears that some of the docs are not building completely; this is a 
part of the log:
>[knots] building [inventory]: targets for 4 source files that are out 
of date
>[knots] updating environment: [new config] 4 added, 0 changed, 0 
removed
>[lfunction] building [inventory]: targets for 5 source files that are out 
of date
>[lfunction] updating environment: [new config] 5 added, 0 changed, 0 
removed
>[lfunction] The inventory files are in 
../../local/share/doc/sage/inventory/en/reference/lfunctions.
>Build finished. The built documents can be found in 
/home/Ray/sage/sage/local/share/doc/sage/inventory/en/reference/lfunctions
And later I get this:
>[reference] /home/Ray/sage/sage/src/doc/en/reference/index.rst:105: 
WARNING: unknown document: knots/index 

What is the best thing to do there?
It's the same packages that cause the trouble in both runs.

Thank you very much in advance!

Max

Samuel Lelievre schrieb am Montag, 25. Juli 2022 um 09:17:47 UTC+9:

> Install the relevant cygwin packages:
> ```
> $ apt-cyg install bzip2 libbz2-devel liblzma-devel libffi-devel xz
> ```
> Clean up the corresponding Sage packages:
> ```
> $ make bzip2-clean liblzma-clean libffi-clean xz-clean
>
> Then configure again:
> ```
> $ make configure
> $ ./configure
> ```
>
> Follow any recommendations at end of configure output.
>
> Finally decide number of parallel jobs
> ```
> $ export MAKE='make -j8'
> ```
> and run make again:
> ```
> $ make -s V=0
> ```
>
>

-- 
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

Re: [sage-devel] Re: Error building Sage 9.6 due to openssl

2022-07-24 Thread Samuel Lelievre
Install the relevant cygwin packages:
```
$ apt-cyg install bzip2 libbz2-devel liblzma-devel libffi-devel xz
```
Clean up the corresponding Sage packages:
```
$ make bzip2-clean liblzma-clean libffi-clean xz-clean

Then configure again:
```
$ make configure
$ ./configure
```

Follow any recommendations at end of configure output.

Finally decide number of parallel jobs
```
$ export MAKE='make -j8'
```
and run make again:
```
$ make -s V=0
```

-- 
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/eec6cc12-e02c-4ad0-8e68-d1998235cd19n%40googlegroups.com.


Re: [sage-devel] Re: Error building Sage 9.6 due to openssl

2022-07-24 Thread Dima Pasechnik
On Mon, Jul 25, 2022 at 12:49 AM Max Kölbl  wrote:
>
> Thank you very much for your reply!
>
> > No, Sage accepts any system Python >= 3.8.
>
> Okay, that's good to know.
>
> > In your config.log one can see that system python3 is not rejected because 
> > of a version check:
> > ##  ##
> > ## Checking whether SageMath should install SPKG python3... ##
> > ##  ##
> > configure:34869: checking whether any of bzip2 liblzma libffi is installed 
> > as or will be installed as SPKG
> > configure:34874: result: yes; install python3 as well
> > configure:36263: no suitable system package found for SPKG python3
>
> I see. Does that mean that the install script can't find my python3?

no, read what it says:
configure:34869: checking whether any of bzip2 liblzma libffi is
installed as or will be installed as SPKG
configure:34874: result: yes; install python3 as well

it says that one of the the Cygwin packages: bzip2, or  liblzma, or
libffi is not installed, and
this is the reason that the system Python3 cannot be used.

You need to install bzip2 liblzma libffi
and try running ./configure again

> Is there any path variable that I should change? If not, how do I find out 
> what's broken?
> I apologise in advance if these questions are naive; I'm quite new new all 
> this.
>
> Thanks very much in advance!
>
> Matthias Koeppe schrieb am Montag, 25. Juli 2022 um 02:34:53 UTC+9:
>>
>> On Sunday, July 24, 2022 at 10:01:08 AM UTC-7 max.w@gmail.com wrote:
>>>
>>> Thanks! I gave it a shot but unfortunately it still didn't work.
>>>
>>> However, the reasons are strange because now python3 seems to be the 
>>> culprit.
>>> Perhaps relevant: I installed openssl via apt-cyg and it seems like 'make' 
>>> is not trying to build openssl anymore.
>>> Perhaps also relevant: python3 is installed on my machine, but it's Python 
>>> 3.9.10 whereas Sage seems to require Python 3.10.5.
>>
>>
>> No, Sage accepts any system Python >= 3.8.
>>
>>>
>>> But cygwin doesn't seem to have it: 
>>> https://cygwin.com/packages/summary/python3.html
>>>
>>> I attached the config log and the python log.
>>
>>
>> In your config.log one can see that system python3 is not rejected because 
>> of a version check:
>> ##  ##
>> ## Checking whether SageMath should install SPKG python3... ##
>> ##  ##
>> configure:34869: checking whether any of bzip2 liblzma libffi is installed 
>> as or will be installed as SPKG
>> configure:34874: result: yes; install python3 as well
>> configure:36263: no suitable system package found for SPKG python3
>>
>>
>>
> --
> 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/fdfbc9c7-4a45-48f1-8b61-931eeca8b5b4n%40googlegroups.com.

-- 
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/CAAWYfq3C0x6HK3gcDxFasybc9ig%3D%2BJ%3Dmogb%2B_q1CTk15vNJFBQ%40mail.gmail.com.