Le dimanche 24 octobre 2010 à 08:07 -0700, Anne Schilling a écrit :
> Hello Nicolas le Petit,
> 
> Thank you!
> 
> Now I have another question: I made added a new module
> rigged_configurations and put the line
> from rigged_configurations.all import *
> in all.py in /combinat and an all.py file in the new module.
> 
> However, when starting sage I get an error
> `ImportError: No module named rigged_configurations.all`
> 
> Do I need to specify this somewhere else as well?
> Also, why do we do
> from sage.combinat.crystals.all import *
> but
> from root_system.all import *
> without the sage.combinat.?
> 
> Best,
> 
> Anne

I am not an expert with that. It seems to me that you added a new module
in a new folder. I am not sure it fix fix your problem but you should
try to declare this new folder (if it is the case)
in /sage/devel/sage-combinat/sage/setup.py
Look at the lines around line 790 and add your folder there.

For the import :
from rigged_configurations.all import * --> in all.py in /combinat
from filename import bla --> all.py in the new module.

Also don't forget an __init__.py file in your new folder (with just a
space inside this file...)

For your extra question :
from sage.combinat.crystals.all import *
or
from crystals.all import *
if the folder crystals is in combinat, I was thinking both works... (But
I never try to change it...). So I don't know.

I hope that will help.

Cheers,

Nicolas.


-- 
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-de...@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