What output do you get from the following? $ strace -eopen ceph 2>&1|grep ceph_argparse On Thu, Dec 22, 2016 at 8:55 AM, Aakanksha Pudipeddi <aakanksha.pu@xxxxxxxxxxx> wrote: > Hi John, > > Thanks for your response. Here is what I am setting them to: > > I am installing all binaries in the folder: > ~/src/vanilla-ceph/ceph-install. So the folder contains the following subfolders: > ssd@msl-lab-ads01:~/src/vanilla-ceph/ceph-install$ ls > bin etc include lib libexec sbin share > > ssd@msl-lab-ads01:~/src/vanilla-ceph/ceph-install$ ls lib/python2.7/site-packages/ > ceph_argparse.py ceph_rest_api.py rbd-2.0.0-py2.7.egg-info > ceph_daemon.py ceph_volume_client.py rbd.so > cephfs-2.0.0-py2.7.egg-info rados-2.0.0-py2.7.egg-info rgw-2.0.0-py2.7.egg-info > cephfs.so rados.so rgw.so > > Here are my paths: > > ssd@msl-lab-ads01:~$ echo $PATH > /home/ssd/src/vanilla-ceph/ceph-install/bin:/home/ssd/src/vanilla-ceph/ceph-install/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > ssd@msl-lab-ads01:~$ > ssd@msl-lab-ads01:~$ echo $PYTHONPATH > /home/ssd/src/vanilla-ceph/ceph-install/lib/python2.7/site-packages: > ssd@msl-lab-ads01:~$ > ssd@msl-lab-ads01:~$ echo $LD_LIBRARY_PATH > /home/ssd/src/vanilla-ceph/ceph-install/lib:/home/ssd/src/vanilla-ceph/ceph-install/lib/x86_64-linux-gnu > > I just realized there is another ceph_argparse in my system in /usr/lib but since my path is pointing to another folder, it should be looking at the contents of that folder, right? > > ssd@msl-lab-ads01:/usr/lib/python2.7/dist-packages$ ls ceph > ceph_argparse.py ceph_deploy/ cephfs.py ceph_rest_api.py > ceph_argparse.pyc ceph_deploy-1.4.0.egg-info/ cephfs.pyc ceph_rest_api.pyc > > Thanks! > Aakanksha > > -----Original Message----- > From: John Spray [mailto:jspray@xxxxxxxxxx] > Sent: Wednesday, December 21, 2016 2:38 PM > To: Aakanksha Pudipeddi > Cc: ceph-users > Subject: Re: Ceph Import Error > > On Wed, Dec 21, 2016 at 6:39 PM, Aakanksha Pudipeddi <aakanksha.pu@xxxxxxxxxxx> wrote: >> I mean setup a Ceph cluster after compiling from source and make install. I usually use the long form to setup the cluster. The mon setup is fine but when I create an OSD using ceph osd create or even check the status using ceph -s after the monitor is setup, I get this error. The PATH, LD_LIBRARY_PATH and PYTHONPATH have been set accordingly. > > You don't say *what* you set those variables to, so I can't form an opinion on whether you've set them correctly. > > However, given that descsort_key is a relatively recent addition to ceph_argparse, and your python exception shows it's finding the module but not that particular symbol, it seems fairly likely that you have some other ceph_argparse on your system that is being picked up instead of the one you've just installed (i.e. your PYTHONPATH is wrong). > > John > >> >> Thanks >> Aakanksha >> -----Original Message----- >> From: John Spray [mailto:jspray@xxxxxxxxxx] >> Sent: Wednesday, December 21, 2016 2:24 AM >> To: Aakanksha Pudipeddi >> Cc: ceph-users >> Subject: Re: Ceph Import Error >> >> On Tue, Dec 20, 2016 at 11:32 PM, Aakanksha Pudipeddi <aakanksha.pu@xxxxxxxxxxx> wrote: >>> I am trying to setup kraken from source and I get an import error on >>> using the ceph command: >>> >>> >>> >>> Traceback (most recent call last): >>> >>> File "/home/ssd/src/vanilla-ceph/ceph-install/bin/ceph", line 112, >>> in <module> >>> >>> from ceph_argparse import \ >>> >>> ImportError: cannot import name descsort_key >>> >>> >>> >>> The python path is correctly pointing to the location of >>> ceph_argparse but I want to know if it is a known error. On looking >>> online, I found that this is generally a result of circular >>> dependencies, although of what, I do not know yet. Any help would be appreciated. >> >> Not sure what you mean by "setup from source" in this case -- are you trying to install Ceph system wide, or are you trying to run it out of your source tree? >> >> What is the overall command (including PYTHONPATH etc) that you are trying to run? >> >> John >> >> >>> >>> >>> Thanks! >>> >>> Aakanksha >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> ceph-users mailing list >>> ceph-users@xxxxxxxxxxxxxx >>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >>> >> > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- Cheers, Brad _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com