On Wednesday, February 19, 2020 at 5:50:46 PM UTC+1, Denis Sunko wrote: > > > I have opened a trac ticket <https://trac.sagemath.org/ticket/29221> now. > Unfortunately something weird is happening with my local git branch. I have > copied a file fast_vector_partitions.py with all the source code (it works > in ordinary Python with 'import fast_vector_partitions') and recompiled > Sage under this branch, which I call fast_vector_partitions (the head is > local, no connection to the trac server yet). > > Problem: after rebuilding Sage under this branch I cannot use the > functions in the file under the sage prompt - the function name is > "undefined". I did both ./sage -br and make, several times. > > I can see that something happened in the build because the file has > migrated from src/sage (where I put it) to src/build and local/lib, and a > .pyc file has appeared: > > $ find . -name "*fast_vector*" > ./src/build/lib.linux-x86_64-3.7/sage/combinat/fast_vector_partitions.py > ./src/sage/combinat/fast_vector_partitions.py > ./local/lib/python3.7/site-packages/sage/combinat/fast_vector_partitions.py > > ./local/lib/python3.7/site-packages/sage/combinat/__pycache__/fast_vector_partitions.cpython-37.pyc > ./.git/logs/refs/heads/fast_vector_partitions > ./.git/refs/heads/fast_vector_partitions > > I hesitate to connect this branch with the trac server before figuring out > what is going on. In any case I think I should try the build locally first. >
there is nothing wrong with pushing a non-working branch somewhere. This way it's very easy to see what's going wrong there. (I guess it's something to do with importing things) > > Can anyone please help? > > Thanks, > > Denis > > On Monday, February 10, 2020 at 12:34:40 PM UTC+1, Denis Sunko wrote: > >> I have translated the Haskell code for vector partitions >> ... >> >> -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-combinat-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-combinat-devel/632c859b-362a-4c8e-b212-45b69ff90e07%40googlegroups.com.