On Fri, Nov 20, 2015 at 12:44 PM, Mark Bell <[email protected]> wrote:
> I've just upgraded to Sage 6.9 from 6.8. I have a large number of packages
> that I've installed by using:
>   python setup.py install --user
> so they have been placed in /home/me/.local/lib/python2.7/site-packages/...
>
> Previously Sage would automatically search this location looking for
> packages and so I could do "import mypackage" and everything would work
> fine. It now appears that Sage is no longer searching this path
> automatically and so attempting to import these packages results in a
> "ImportError: No module named mypackage". Is this a bug or was no longer
> loading packages from ~/.local/ a deliberate change? It appears that this
> has been previously listed as a feature of both Sage and Python, see
> http://sage-devel.narkive.com/kld2G6DI/sage-python-packages-and-local and
> https://www.python.org/dev/peps/pep-0370/
>

This was caused by trac 14243, which -- in retrospect -- I *strongly*
disagree with being included in Sage
(http://trac.sagemath.org/ticket/14243).  In SageMathCloud, I manually
revert that ticket so that users have a better experience:

   
https://github.com/sagemathinc/smc-sage/commit/7c9cfd095463091bcf41e1c6ea6e8eebfb61f00c

I've made http://trac.sagemath.org/ticket/19612 to revert 14243.

 - William



> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to