Re: [sage-devel] Re: Including external Python libraries
Hello! I think I have solved my problem: for future reference, the solution was written in the documentation (http://doc.sagemath.org/html/en/developer/packaging.html). I have opened ticket 18929 (http://trac.sagemath.org/ticket/18929) to include igraph library: hopefully, soon it will be available in Sage! Thank you very much! Michele On Thursday, July 16, 2015 at 12:04:28 PM UTC+2, Volker Braun wrote: > > I think that means you don't have openssl-devel so the pip built in Sage > doesn't work. > > > On Thursday, July 16, 2015 at 12:03:12 PM UTC+2, michele...@imtlucca.it > wrote: >> >> Exactly, Nathann, this is what I meant. Sorry if I was not clear in the >> first place. >> Anyway, that command does not work: am I doing anything wrong? >> Thank you for your time! >> >> michele@Lena:~/Programmi/sage$ ./sage -pip install python-igraph >> Traceback (most recent call last): >> File "/home/michele/Programmi/sage/local/bin/pip", line 9, in >> load_entry_point('pip==6.1.1', 'console_scripts', 'pip')() >> File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line >> 521, in load_entry_point >> File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line >> 2632, in load_entry_point >> File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line >> 2312, in load >> File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line >> 2318, in resolve >> File >> "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/__init__.py", >> >> line 15, in >> from pip.vcs import git, mercurial, subversion, bazaar # noqa >> File >> "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/vcs/mercurial.py", >> >> line 10, in >> from pip.download import path_to_url >> File >> "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/download.py", >> >> line 32, in >> from pip._vendor import requests, six >> File >> "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/__init__.py", >> >> line 92, in load_module >> raise ImportError("No module named '%s'" % (name,)) >> ImportError: No module named 'pip._vendor.requests' >> >> On Thursday, July 16, 2015 at 11:54:22 AM UTC+2, Nathann Cohen wrote: >>> >>> > sage -pip install python-igraph >>> >>> I think that he meant "how do we proceed to have such a package be >>> shipped in Sage by default". >>> >>> Nathann >>> >> -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Including external Python libraries
I think that means you don't have openssl-devel so the pip built in Sage doesn't work. On Thursday, July 16, 2015 at 12:03:12 PM UTC+2, michele...@imtlucca.it wrote: > > Exactly, Nathann, this is what I meant. Sorry if I was not clear in the > first place. > Anyway, that command does not work: am I doing anything wrong? > Thank you for your time! > > michele@Lena:~/Programmi/sage$ ./sage -pip install python-igraph > Traceback (most recent call last): > File "/home/michele/Programmi/sage/local/bin/pip", line 9, in > load_entry_point('pip==6.1.1', 'console_scripts', 'pip')() > File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 521, > in load_entry_point > File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line > 2632, in load_entry_point > File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line > 2312, in load > File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line > 2318, in resolve > File > "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/__init__.py", > > line 15, in > from pip.vcs import git, mercurial, subversion, bazaar # noqa > File > "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/vcs/mercurial.py", > > line 10, in > from pip.download import path_to_url > File > "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/download.py", > > line 32, in > from pip._vendor import requests, six > File > "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/__init__.py", > > line 92, in load_module > raise ImportError("No module named '%s'" % (name,)) > ImportError: No module named 'pip._vendor.requests' > > On Thursday, July 16, 2015 at 11:54:22 AM UTC+2, Nathann Cohen wrote: >> >> > sage -pip install python-igraph >> >> I think that he meant "how do we proceed to have such a package be >> shipped in Sage by default". >> >> Nathann >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Including external Python libraries
Exactly, Nathann, this is what I meant. Sorry if I was not clear in the first place. Anyway, that command does not work: am I doing anything wrong? Thank you for your time! michele@Lena:~/Programmi/sage$ ./sage -pip install python-igraph Traceback (most recent call last): File "/home/michele/Programmi/sage/local/bin/pip", line 9, in load_entry_point('pip==6.1.1', 'console_scripts', 'pip')() File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 521, in load_entry_point File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2632, in load_entry_point File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2312, in load File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2318, in resolve File "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/__init__.py", line 15, in from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/vcs/mercurial.py", line 10, in from pip.download import path_to_url File "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/download.py", line 32, in from pip._vendor import requests, six File "/home/michele/Programmi/sage/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/__init__.py", line 92, in load_module raise ImportError("No module named '%s'" % (name,)) ImportError: No module named 'pip._vendor.requests' On Thursday, July 16, 2015 at 11:54:22 AM UTC+2, Nathann Cohen wrote: > > > sage -pip install python-igraph > > I think that he meant "how do we proceed to have such a package be > shipped in Sage by default". > > Nathann > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Including external Python libraries
> sage -pip install python-igraph I think that he meant "how do we proceed to have such a package be shipped in Sage by default". Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Including external Python libraries
sage -pip install python-igraph On Thursday, July 16, 2015 at 11:47:41 AM UTC+2, michele...@imtlucca.it wrote: > > Hello! > I am trying to improve Sage graph module: to this purpose, it would be > excellent to add the possibility to interface with igraph, one of the most > famous graph libraries [1]. > The Python interface offered by igraph [2] uses a complicated installation > script [3]. However, the whole library (including the C/C++ core) can be > easily installed on my Linux laptop via sudo pip install python-igraph. > Do you have any idea on how to deploy igraph library with Sage? Can you > suggest me another library already included in Sage, that I can use as an > example? > Thank you very much! > Best, > Michele > > [1] http://igraph.org/ > [2] http://igraph.org/python/ > [3] igraph.org/nightly/get/python/python-igraph-0.7.0.tar.gz > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.