Hi Sean,
I tried to install version 2.1.0rc1 as you suggested, but "pip" gives a
compilation error and doesn't install it, here you have the log:
# pip install riak==2.1.0rc1
Downloading/unpacking riak==2.1.0rc1
Downloading riak-2.1.0rc1.tar.gz (135kB): 135kB downloaded
Running setup.py (path:/tmp/pip_build_root/riak/setup.py) egg_info for
package riak
Downloading/unpacking riak-pb>=2.0.0 (from riak==2.1.0rc1)
Downloading riak_pb-2.0.0.16.tar.gz
Running setup.py (path:/tmp/pip_build_root/riak-pb/setup.py) egg_info for
package riak-pb
Downloading/unpacking pyOpenSSL>=0.14 (from riak==2.1.0rc1)
Downloading pyOpenSSL-0.14.tar.gz (128kB): 128kB downloaded
Running setup.py (path:/tmp/pip_build_root/pyOpenSSL/setup.py) egg_info
for package pyOpenSSL
warning: no previously-included files matching '*.pyc' found anywhere
in distribution
no previously-included directories found matching 'doc/_build'
Requirement already satisfied (use --upgrade to upgrade):
protobuf>=2.4.1,<2.6.0 in /usr/local/lib/python2.7/dist-packages (from
riak-pb>=2.0.0->riak==2.1.0rc1)
Downloading/unpacking cryptography>=0.2.1 (from
pyOpenSSL>=0.14->riak==2.1.0rc1)
Downloading cryptography-0.5.3.tar.gz (319kB): 319kB downloaded
Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py)
egg_info for package cryptography
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/cryptography/setup.py", line 174, in
<module>
"test": PyTest,
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 239,
in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 264,
in fetch_build_eggs
replace_conflicting=True
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 620,
in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 858,
in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 870,
in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 314,
in fetch_build_egg
return cmd.easy_install(req)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
616, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
646, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
834, in install_eggs
return self.build_and_install(setup_script, setup_base)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
1040, in build_and_install
self.run_setup(setup_script, setup_base, args)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
1028, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error:
command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command python setup.py egg_info:
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/cryptography/setup.py", line 174, in <module>
"test": PyTest,
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 239, in
__init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 264, in
fetch_build_eggs
replace_conflicting=True
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 620, in
resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 858, in
best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 870, in
obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 314, in
fetch_build_egg
return cmd.easy_install(req)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
616, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
646, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
834, in install_eggs
return self.build_and_install(setup_script, setup_base)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
1040, in build_and_install
self.run_setup(setup_script, setup_base, args)
File
"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
1028, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command
'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
/tmp/pip_build_root/cryptography
Storing debug log for failure in /root/.pip/pip.log
Thanks,
Alex
On Fri, Aug 15, 2014 at 7:07 PM, Sean Cribbs <[email protected]> wrote:
> Hi Alex,
>
> The published version is not a final release, so it won't be
> automatically installed by pip. Try this: pip install riak==2.1.0rc1
>
> Also, did you activate your bucket-type using riak-admin? It won't be
> usable until it's activated.
>
> On Fri, Aug 15, 2014 at 12:02 PM, Alex De la rosa
> <[email protected]> wrote:
> > Hi, thanks for your suggestion, but I would prefer to use the official
> > packages, and for what I saw on the list some days ago, the new version
> was
> > published, so I wonder why is not yet working.
> >
> > Thanks,
> > Alex
> >
> >
> > On Fri, Aug 15, 2014 at 6:20 PM, tele <[email protected]> wrote:
> >>
> >> Hi Alex,
> >>
> >> Use the version from git and see if you get the same error:
> >>
> >> git clone https://github.com/basho/riak-python-client.git
> >> cd riak-python-client
> >> python setup.py install
> >>
> >> :tele
> >>
> >>
> >> On Fri, 15 Aug 2014 18:12:09 +0200
> >> Alex De la rosa <[email protected]> wrote:
> >>
> >> > Hi there,
> >> >
> >> > I created a "counter" bucket called "likes" with the following shell
> >> > script:
> >> >
> >> > riak-admin bucket-type create likes '{"props":{"datatype":"counter"}}'
> >> >
> >> > When I try to follow the guide [
> >> > http://docs.basho.com/riak/2.0.0/dev/using/data-types ] to use this
> >> > bucket with Python, I found the following issue:
> >> >
> >> > Traceback (most recent call last):
> >> > File "x.py", line 17, in <module>
> >> > bucket = client.bucket_type('counter_bucket').bucket('likes')
> >> > AttributeError: 'RiakClient' object has no attribute 'bucket_type'
> >> >
> >> > Something wrong? Is a fresh install from "pip" so I thought the Python
> >> > library would be in its last updated version?
> >> >
> >> > Thanks!
> >> > Alex
> >>
> >
> >
> > _______________________________________________
> > riak-users mailing list
> > [email protected]
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>
>
>
> --
> Sean Cribbs <[email protected]>
> Software Engineer
> Basho Technologies, Inc.
> http://basho.com/
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com