I used a fresh opened Sage session.
I didn't define my own function.
Even when I tried with your first line example, without anything else in a
new Sage session, I got :
./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.6, Release Date: 2019-01-15                     │
│ Using Python 2.7.15. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
sage: sage: map(lambda m: len(list(graphs(m))), range(1,5))
[0, 0, 0, 0]
sage:

I tried "make ptest", but due to other errors related to doc, it doesn't
work.


[dochtml]   File
"/nfs/pdx/disks/lmg_dp_01/zlwang/testing/Rupert/Sage/sage-8.6/local/lib/python2.7/site-packages/sage/algebras/quantum_groups/quantum_group_gap.py",
line 33, in <module>
[dochtml]     from sage.libs.gap.libgap import libgap
[dochtml]   File "sage/libs/gap/libgap.pyx", line 788, in init
sage.libs.gap.libgap (build/cythonized/sage/libs/gap/libgap.c:9181)
[dochtml]     libgap = Gap()
[dochtml]   File "sage/libs/gap/libgap.pyx", line 628, in
sage.libs.gap.libgap.Gap.__init__
(build/cythonized/sage/libs/gap/libgap.c:6052)
[dochtml]     initialize()
[dochtml]   File "sage/libs/gap/util.pyx", line 316, in
sage.libs.gap.util.initialize (build/cythonized/sage/libs/gap/util.c:5399)
[dochtml]     sig_on()
[dochtml] SignalError: Segmentation fault
[dochtml] [combinat ] loading pickled environment... not yet created
[dochtml] [combinat ] building [inventory]: targets for 367 source files
that are out of date
[dochtml] [combinat ] updating environment: 367 added, 0 changed, 0 removed
[dochtml] Error building the documentation.


Thank you and please help.

On Wed, Mar 13, 2019 at 12:48 AM Dima Pasechnik <dimp...@gmail.com> wrote:

> On Wed, Mar 13, 2019 at 4:04 AM Ai Bo <boaisp...@gmail.com> wrote:
> >
> > I also tried with the example in the document but I got different result.
> > sage: for i in range(7):
> > ....:     print(len(list(graphs(i))))
>
> Did you try this in a freshly opened Sage session?
>
> In Python it is possible to break functionality of the system by e.g.
> changing a library function,
> e.g. if you created  a function called  graphs, you'd be surprised.
>
> E.g.
>
> sage: map(lambda m: len(list(graphs(m))), range(1,5)) # at it should be
> [1, 2, 4, 11]
> sage: def graphs(k):
> ....:     if k<2: return [1]
> ....:     return []
> ....:
> sage: map(lambda m: len(list(graphs(m))), range(1,5)) # what you have now?
> [1, 0, 0, 0]
>
> ---------------------
>
> if something is still wrong you can run tests:
>
> make ptest
>
> and check the output in logs/ptest.log
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/HheojpxN8Lc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to