Hi!

In discussion with Christian Stump and Nicolas Thiery, I learned that the
way to fix a problem when sage remembers a wrong link (for example,
in Tom's case with affine permutations, he previously had the file
in a directory /combinat/affine_permutations/affine_permutations.py and changed
it to a file in /combinat/affine_permutations.py), you need to remove the
old links by hand.

Make a small change somewhere, run

sage -br

Then sage tells you where it puts the files. For me:

...
copying 
build/lib.macosx-10.6-x86_64-2.7/sage/combinat/affine_permutations/affine_permutations.py
 -> 
/Applications/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/affine_permutations
copying 
build/lib.macosx-10.6-x86_64-2.7/sage/combinat/affine_permutations/all.py -> 
/Applications/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/affine_permutations

I had to remove the directory affine_permutations in these directories by
hand. Then it works.

Best,

Anne




On 1/19/13 8:39 PM, Hugh Thomas wrote:
> 
> Hi!
> 
> The short explanation of the problem is that 
> sage/combinat/some_hopf_algebras/all.py was not importing parking functions 
> from the right place.  It should have been using
> sage.combinat.parking_functions.  I have added a patch 
> temporary_parking_import_fix-ht.patch which fixes this.  Jean-Baptiste, 
> please feel free to fix the problem however you like and delete my
> patch.  Martin, sage should now run okay with the queue installed.
> 
> I had trouble replicating this issue, and for a reason that is a bit 
> interesting (I think). 
> 
> The point is that the import statement used to be right; the parking 
> functions files moved.  And by default, sage does not clean up the old .py 
> and .pyc files from the old compilations, so they are
> still sitting in  
> local/lib/python2.7/site-packages/sage/combinat/some_hopf_algebra, and as a 
> result, sage is willing to import from them.  If you want sage to remove them 
> when doing the rebuild, you
> have to tell it to.  See #5977. 
>  
> cheers,
> 
> Hugh
> 
> On Saturday, January 19, 2013 10:29:20 AM UTC-4, Martin wrote:
> 
>     Hi there,
> 
>     I just installed sage 5.5 from source and then did
> 
>     sage -combinat install
> 
>     But now I get what's reproduced below.
> 
>     :-( What should I do?  (upgrade does not work, since sage doesn't start)
> 
>     Martin
> 
>     rubey@convex3:~/sage-5.5$ sage
>     ----------------------------------------------------------------------
>     | Sage Version 5.5, Release Date: 2012-12-22                         |
>     | Type "notebook()" for the browser-based notebook interface.        |
>     | Type "help()" for help.                                            |
>     ----------------------------------------------------------------------
>     
> ---------------------------------------------------------------------------
>     ImportError                               Traceback (most recent call 
> last)
> 
>     /home/rubey/sage-5.5/local/lib/python2.7/site-packages/IPython/ipmaker.pyc
>     in force_import(modname, force_reload)
>          61         reload(sys.modules[modname])
>          62     else:
>     ---> 63         __import__(modname)
>          64        
>          65
> 
>     /home/rubey/sage-5.5/local/bin/ipy_profile_sage.py in <module>()
>           5     preparser(True)
>           6    
>     ----> 7     import sage.all_cmdline
>           8     sage.all_cmdline._init_cmdline(globals())
>           9    
> 
>     /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/all_cmdline.py
>     in <module>()
>          12 try:
>          13
>     ---> 14     from sage.all import *
>          15     from sage.calculus.predefined import x
>          16     preparser(on=True)
> 
>     /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/all.py in
>     <module>()
>         106
>         107 from sage.coding.all     import *
>     --> 108 from sage.combinat.all   import *
>         109
>         110 from sage.lfunctions.all import *
>      
>     
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/all.py 
> in <module>()
>         152 from sidon_sets import sidon_sets
>         153
>     --> 154 from some_hopf_algebra.all import *
>         155
>         156 #Affine Permutation Group(s)
>      
>     
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/some_hopf_algebra/all.py
>     in <module>()
>           1
>     ----> 2 from packed_words import PackedWord, PackedWords
>           3 from parking_functions import ParkingFunction, ParkingFunctions
>           4
>           5 from fqsym import FreeQuasisymmetricFunctions
>           6 FQSym = FreeQuasisymmetricFunctions
>      
>     ImportError: No module named parking_functions
>     Error importing ipy_profile_sage - perhaps you should run %upgrade?
>     WARNING: Loading of ipy_profile_sage failed.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-combinat-devel" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/sage-combinat-devel/-/ESt9Q-O9CR8J.
> To post to this group, send email to sage-combinat-devel@googlegroups.com.
> To unsubscribe from this group, send email to 
> sage-combinat-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sage-combinat-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to