Re: Python not able to find package but it is installed

2017-05-31 Thread Mahmood Naderan via Python-list
Consider this output [root@cluster ~]# pip --version pip 9.0.1 from /opt/rocks/lib/python2.6/site-packages/pip-9.0.1-py2.6.egg (python 2.6) [root@cluster ~]# easy_install --version distribute 0.6.10 [root@cluster ~]# find /opt -name python /opt/rocks/lib/graphviz/python /opt/rocks/bin/python /opt

Re: Python not able to find package but it is installed

2017-05-31 Thread Wolfgang Maier
On 05/30/2017 09:27 PM, Mahmood Naderan via Python-list wrote: Well yes. It looks in other folders But $ find /opt -name openpyxl /opt/rocks/lib/python2.6/site-packages/openpyxl So, your pip knows about a search path that python doesn't know. That can have a number of reasons still and one

Re: Python not able to find package but it is installed

2017-05-30 Thread Pavol Lisy
On 5/31/17, Dennis Lee Bieber wrote: > On Tue, 30 May 2017 19:27:48 + (UTC), Mahmood Naderan via Python-list > declaimed the following: > >># trying /usr/lib/python2.6/site-packages/openpyxl.so >># trying /usr/lib/python2.6/site-packages/openpyxlmodule.so >># trying /usr/lib/python2.6/site-pa

Re: Python not able to find package but it is installed

2017-05-30 Thread Pavol Lisy
What is output from $ pip ---version $ easy_install --version ? Maybe you have two pythons and only one pip? $ find /opt -name python $ find /usr -name python $ find /opt -name pip $ find /usr -name pip On 5/30/17, Mahmood Naderan via Python-list wrote: > Well yes. It looks in other folders

Re: Python not able to find package but it is installed

2017-05-30 Thread Mahmood Naderan via Python-list
Well yes. It looks in other folders >>> import openpyxl # trying openpyxl.so # trying openpyxlmodule.so # trying openpyxl.py # trying openpyxl.pyc # trying /usr/lib64/python2.6/openpyxl.so # trying /usr/lib64/python2.6/openpyxlmodule.so # trying /usr/lib64/python2.6/openpyxl.py # trying /usr/lib64

Re: Python not able to find package but it is installed

2017-05-30 Thread Mahmood Naderan via Python-list
Well, on rocks there exist multiple pythons. But by default the active is 2.6.6 $ python -V Python 2.6.6 I have to say that the script doesn't modify sys.path. I only use sys.argv[] there I can put all dependent modules in my project folder but that will be dirty. Regards, Mahmood On Tues

Re: Python not able to find package but it is installed

2017-05-30 Thread Wolfgang Maier
On 05/30/2017 10:18 AM, Mahmood Naderan via Python-list wrote: Hello, Although I have installed a package via pip on a centos-6.6, python interpreter still says there is no such package! Please see the output below $ python exread2.py input.xlsx tmp/output Traceback (most recent call last): Fi

Re: Python not able to find package but it is installed

2017-05-30 Thread Nagy László Zsolt
Do you have /opt/rocks/lib/python2.6/site-packages on sys.path? Does your exread2.py file manipulate sys.path in any way? 2017. 05. 30. 10:18 keltezéssel, Mahmood Naderan via Python-list írta: > Hello, > Although I have installed a package via pip on a centos-6.6, python > interpreter still says

Python not able to find package but it is installed

2017-05-30 Thread Mahmood Naderan via Python-list
Hello, Although I have installed a package via pip on a centos-6.6, python interpreter still says there is no such package! Please see the output below $ python exread2.py input.xlsx tmp/output Traceback (most recent call last): File "/home/mahmood/excetest/exread2.py", line 1, in from openpyxl