#10176: ImportError: No module named sagenb on openSUSE
------------------------------+---------------------------------------------
   Reporter:  mpatel          |       Owner:  jason, was  
       Type:  defect          |      Status:  needs_review
   Priority:  blocker         |   Milestone:  sage-4.6    
  Component:  notebook        |    Keywords:              
     Author:  Leif Leonhardy  |    Upstream:  N/A         
   Reviewer:                  |      Merged:              
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by mpatel):

 The initial source of the `sitedirs` seems to be `get_site_dirs`, which
 gives
 {{{
 #!python
 sage: from setuptools.command.easy_install import get_site_dirs
 sage: get_site_dirs()
 ['/mnt/usb1/scratch/mpatel/apps/sage-4.6.rc0/local/lib/python2.6',
 '/mnt/usb1/scratch/mpatel/apps/sage-4.6.rc0/local/lib/python2.6/site-
 packages', '/mnt/usb1/scratch/mpatel/apps/sage-4.6.rc0/local/lib/site-
 python']
 }}}
 This function begins
 {{{
 #!python
 def get_site_dirs():
     # return a list of 'site' dirs
     sitedirs =
 filter(None,os.environ.get('PYTHONPATH','').split(os.pathsep))
 ...
 }}}
 and later appends the paths I get above.
 {{{
 #!python
 sage: os.environ.get('PYTHONPATH','')
 ':/home/mpatel/apps/sage/local/lib/python'
 }}}
 Do you see a sagenb path here?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10176#comment:42>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to