#10729: IPython.CrashHandler import error upon starting sage
-----------------------+----------------------------------------------------
   Reporter:  jorges   |       Owner:     
       Type:  defect   |      Status:  new
   Priority:  major    |   Milestone:     
  Component:  scripts  |    Keywords:     
     Author:           |    Upstream:  N/A
   Reviewer:           |      Merged:     
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by jorges):

 I just found a workaround to this issue. It doesn't actually solve the
 bug, but it might be usefull to someone experiencing this:

 Citing [1]_: "In addition to the global site-packages paths, site is
 responsible for adding the user-specific locations to the import path. The
 user-specific paths are all based on the USER_BASE directory, which
 usually located in a part of the filesystem owned (and writable) by the
 current user. Inside the USER_BASE is a site-packages directory, with the
 path accessible as USER_SITE. The USER_SITE path name is created using the
 same platform-specific values..."
 "The user base directory can be set through the PYTHONUSERBASE environment
 variable, and has platform-specific defaults (~/Python$version/site-
 packages for Windows and ~/.local for non-Windows)."

 Setting PYTHONUSERBASE to a "dummy" location, i.e. an empty directory,
 prevents python from loading the modules from, say, ~/.local/... which
 conflict with sage's own.

 .. [1] http://www.doughellmann.com/PyMOTW/site/#user-directories


 The user base directory can be set through the PYTHONUSERBASE environment
 variable, and has platform-specific defaults (~/Python$version/site-
 packages for Windows and ~/.local for non-Windows).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10729#comment:2>
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