Thread: barman binary not working properly

barman binary not working properly

From
neeraj tonu
Date:
Hi All,

I am trying to perform Backup & Recovery using bakup & Recovery
Manager tool barman
As barman is python based, I installed the python package

Later I installed 'Barman' by below commands,
 ./setup.py build
 ./setup.py install
 ./setup.py install --user

Once after barman installation is completed I am trying to see the
help of barman, for which I am getting the below error

-bash-4.1$ barman --help
Traceback (most recent call last):
  File "/usr/bin/barman", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655,
in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse

Can anyone guide where I am doing the mistake.



Thanks & Regards
  Neeraj


Re: barman binary not working properly

From
Devrim Gündüz
Date:
Hi,

You need to install python-argparse .

Regards, Devrim

On June 8, 2015 3:38:10 PM GMT+03:00, neeraj tonu <tonuneeraj@gmail.com> wrote:
Hi All,

I am trying to perform Backup & Recovery using bakup & Recovery
Manager tool barman
As barman is python based, I installed the python package

Later I installed 'Barman' by below commands,
./setup.py build
./setup.py install
./setup.py install --user

Once after barman installation is completed I am trying to see the
help of barman, for which I am getting the below error

-bash-4.1$ barman --help
Traceback (most recent call last):
File "/usr/bin/barman", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655,
in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse

Can anyone guide where I am doing the mistake.



Thanks & Regards
Neeraj


--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: barman binary not working properly

From
Devrim GÜNDÜZ
Date:
Hi,

On Wed, 2015-06-10 at 16:06 +0530, neeraj tonu wrote:
> Thanks for your guidance , I installed python-argparse through yum.
>
> After installing python-argparse also, it is not working properly
> Can u guide me clearly.

So please install barman also via yum:

http://yum.PostgreSQL.org

Regards,

--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR




Re: barman binary not working properly

From
neeraj tonu
Date:
Hi Devrim,
Thanks for your guidance , I installed python-argparse through yum.

After installing python-argparse also, it is not working properly
Can u guide me clearly.

Regards
Neeraj


On Tue, Jun 9, 2015 at 8:11 AM, Devrim Gündüz <devrim@gunduz.org> wrote:
> Hi,
>
> You need to install python-argparse .
>
> Regards, Devrim
>
>
> On June 8, 2015 3:38:10 PM GMT+03:00, neeraj tonu <tonuneeraj@gmail.com>
> wrote:
>>
>> Hi All,
>>
>> I am trying to perform Backup & Recovery using bakup & Recovery
>> Manager tool barman
>> As barman is python based, I installed the python package
>>
>> Later I installed 'Barman' by below commands,
>>  ./setup.py build
>>  ./setup.py install
>>  ./setup.py install --user
>>
>> Once after barman installation is completed I am trying to see the
>> help of barman, for which I am getting the below error
>>
>> -bash-4.1$ barman --help
>> Traceback (most recent call last):
>>   File "/usr/bin/barman", line 4, in <module>
>>     import pkg_resources
>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655,
>> in <module>
>>     working_set.require(__requires__)
>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
>> require
>>     needed = self.resolve(parse_requirements(requirements))
>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
>> resolve
>>     raise DistributionNotFound(req)
>> pkg_resources.DistributionNotFound: argparse
>>
>> Can anyone guide where I am doing the mistake.
>>
>>
>>
>> Thanks & Regards
>>   Neeraj
>>
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.