[ckan-discuss] Installation options
David Read
david.read at okfn.org
Thu Feb 23 16:59:57 GMT 2012
Simon,
Thanks for all the info on this problem with installing the dependency
'boto' - all very useful but I'm afraid I can't see why this isn't
working. The later version 2.2.2 is definitely the one you're after -
I have it installed in my virtual environment fine, and I can't see
any problem with putting it into your main python install either. Most
odd.
You could try uninstalling it and reinstalling it again. To get some
more clues you could poke around in
/usr/lib/pymodules/python2.6/site-packages to see what version is
there (site-packages/boto/__init__.py has the version number). And you
could run this to see where the files it is referring to are:
python -c "import boto; print boto"
Maybe it's best to catch one of us on IRC to talk through it more
http://ckan.org/contact/
David
On 23 February 2012 07:49, Simon Whitehouse <si at siwhitehouse.co.uk> wrote:
> On 20/02/2012 19:58, Rufus Pollock wrote:
>>
>> On 18 February 2012 23:02, Simon Whitehouse<si at siwhitehouse.co.uk> wrote:
>>
>> Sorry for slow reply!
>>
>
> =0) There is no need to apologise. I'm doing this in my own time and so am
> only able to look at this every few days or so myself
>
>
>
>>> Hi James and Rufus
>>>
>>> Thank you for the helpful suggestions. I tried installing from a number
>>> of
>>> the Ubuntu ami files that Canonical make available, but each of them
>>> failed
>>> one way or another. So, I've decided to bite the bullet and load the ami
>>> file that is suggested in the Install From Package notes.
>>
>>
>> I'm sorry to hear this! I'm very surprised you weren't able to install
>> an official AMI.
>
>
> Sorry, I wasn't very clear. I installed a number of the ami files that
> Canonical supply, but then had issues with installing ckan. I'm fairly entry
> level when it comes to Linux and so it seemed better to use the ami
> suggested in the installation notes and pay the small amount for the small
> instance.
>
>
>>
>>> So, now I want to load some sample datasets and before I dive in to try
>>> and
>>> learn how to do this through the API or Harvester I wanted to upload a
>>> dataset through the CKAN front end. Now, I've taken a look at the notes
>>> here
>>>
>>> https://github.com/timrdf/datafaqs/wiki/ckan
>>>
>>> and they indicate that I ought to see an option to "Upload a File" in the
>>> Add a Resource section under>Edit>Resources on the dataset.
>>> Unfortunately,
>>> I am not seeing that option when I add a resource. For example
>>>
>>>
>>> http://ec2-46-51-165-218.eu-west-1.compute.amazonaws.com/dataset/edit/test0#section-resources
>>
>>
>> What version did you install? If you are using pre v1.6 (current HEAD)
>> you will need to install the ckanext-storage extension:
>>
>> https://github.com/okfn/ckanext-storage
>>
>
> Yes, I'm using 1.5.1
>
> So, I'm trying to follow the instructions here
> https://github.com/okfn/ckanext-storage/blob/master/README.rst but when I
> run
>
> pip install ckanext-storage
>
> I get this:
>
> Downloading/unpacking ckanext-storage
> Running setup.py egg_info for package ckanext-storage
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/dist-packages/pip.py", line 252, in main
> self.run(options, args)
> File "/usr/lib/python2.6/dist-packages/pip.py", line 408, in run
> requirement_set.install_files(finder, force_root_egg_info=self.bundle)
> File "/usr/lib/python2.6/dist-packages/pip.py", line 1721, in install_files
> if req_to_install.check_if_exists():
> File "/usr/lib/python2.6/dist-packages/pip.py", line 1583, in
> check_if_exists
> dist = pkg_resources.get_distribution(self.req)
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 292, in
> get_distribution
> if isinstance(dist,Requirement): dist = get_provider(dist)
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 176, in
> get_provider
> return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 436, in find
> raise VersionConflict(dist,req) # XXX add more info
> VersionConflict: (boto 1.9b (/usr/lib/pymodules/python2.6),
> Requirement.parse('boto>=2.0b1'))
>
> Storing complete log in ./pip-log.txt
>
> So, I try to upgrade boto and it does this
>
> ubuntu at ip-10-50-xxx-yyy:/etc$ sudo pip install -U boto
> Downloading/unpacking boto
> Downloading boto-2.2.2.tar.gz (456Kb): 456Kb downloaded
> Running setup.py egg_info for package boto
> package init file 'tests/db/__init__.py' not found (or not a regular
> file)
> package init file 'tests/ec2/elb/__init__.py' not found (or not a regular
> file)
> package init file 'tests/utils/__init__.py' not found (or not a regular
> file)
> package init file 'boto/emr/tests/__init__.py' not found (or not a
> regular file)
> Installing collected packages: boto
> Running setup.py install for boto
> package init file 'tests/db/__init__.py' not found (or not a regular
> file)
> package init file 'tests/ec2/elb/__init__.py' not found (or not a regular
> file)
> package init file 'tests/utils/__init__.py' not found (or not a regular
> file)
> package init file 'boto/emr/tests/__init__.py' not found (or not a
> regular file)
> changing mode of build/scripts-2.6/sdbadmin from 644 to 755
> changing mode of build/scripts-2.6/elbadmin from 644 to 755
> changing mode of build/scripts-2.6/cfadmin from 644 to 755
> changing mode of build/scripts-2.6/s3put from 644 to 755
> changing mode of build/scripts-2.6/fetch_file from 644 to 755
> changing mode of build/scripts-2.6/launch_instance from 644 to 755
> changing mode of build/scripts-2.6/list_instances from 644 to 755
> changing mode of build/scripts-2.6/taskadmin from 644 to 755
> changing mode of build/scripts-2.6/kill_instance from 644 to 755
> changing mode of build/scripts-2.6/bundle_image from 644 to 755
> changing mode of build/scripts-2.6/pyami_sendmail from 644 to 755
> changing mode of build/scripts-2.6/lss3 from 644 to 755
> changing mode of build/scripts-2.6/cq from 644 to 755
> changing mode of build/scripts-2.6/route53 from 644 to 755
> changing mode of build/scripts-2.6/s3multiput from 644 to 755
> changing mode of build/scripts-2.6/cwutil from 644 to 755
> changing mode of build/scripts-2.6/instance_events from 644 to 755
> changing mode of build/scripts-2.6/asadmin from 644 to 755
> changing mode of /usr/local/bin/s3multiput to 755
> changing mode of /usr/local/bin/fetch_file to 755
> changing mode of /usr/local/bin/kill_instance to 755
> changing mode of /usr/local/bin/s3put to 755
> changing mode of /usr/local/bin/asadmin to 755
> changing mode of /usr/local/bin/list_instances to 755
> changing mode of /usr/local/bin/sdbadmin to 755
> changing mode of /usr/local/bin/taskadmin to 755
> changing mode of /usr/local/bin/launch_instance to 755
> changing mode of /usr/local/bin/cq to 755
> changing mode of /usr/local/bin/route53 to 755
> changing mode of /usr/local/bin/lss3 to 755
> changing mode of /usr/local/bin/cfadmin to 755
> changing mode of /usr/local/bin/cwutil to 755
> changing mode of /usr/local/bin/bundle_image to 755
> changing mode of /usr/local/bin/instance_events to 755
> changing mode of /usr/local/bin/pyami_sendmail to 755
> changing mode of /usr/local/bin/elbadmin to 755
> Successfully installed boto
>
> Followed by
>
> ubuntu at ip-10-50-xxx-yyy:/etc$sudo pip install ckanext-storage
> Downloading/unpacking ckanext-storage
> Running setup.py egg_info for package ckanext-storage
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/dist-packages/pip.py", line 252, in main
> self.run(options, args)
> File "/usr/lib/python2.6/dist-packages/pip.py", line 408, in run
> requirement_set.install_files(finder, force_root_egg_info=self.bundle)
> File "/usr/lib/python2.6/dist-packages/pip.py", line 1721, in install_files
> if req_to_install.check_if_exists():
> File "/usr/lib/python2.6/dist-packages/pip.py", line 1583, in
> check_if_exists
> dist = pkg_resources.get_distribution(self.req)
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 292, in
> get_distribution
> if isinstance(dist,Requirement): dist = get_provider(dist)
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 176, in
> get_provider
> return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 436, in find
> raise VersionConflict(dist,req) # XXX add more info
> VersionConflict: (boto 1.9b (/usr/lib/pymodules/python2.6),
> Requirement.parse('boto>=2.0b1'))
>
> Storing complete log in ./pip-log.txt
>
> This is what is in ./pip-log.txt
>
> Downloading/unpacking ckanext-storage
> Getting page http://pypi.python.org/simple/ckanext-storage
> URLs to search for versions for ckanext-storage:
> * http://pypi.python.org/simple/ckanext-storage
> Getting page http://okfn.org/
> Analyzing links from page http://pypi.python.org/simple/ckanext-storage/
> Found link
> http://pypi.python.org/packages/source/c/ckanext-storage/ckanext-storage-0.3.tar.gz#md5=ef0f69f9c0efad0c84a0316931d0ed4a
> (from http://pypi.python.org/simple/ckanext-storage/), version: 0.3
> Found link
> http://pypi.python.org/packages/source/c/ckanext-storage/ckanext-storage-0.1.tar.gz#md5=49faa2a517126dd20fab7d51c4a41c0d
> (from http://pypi.python.org/simple/ckanext-storage/), version: 0.1
> Found link
> http://pypi.python.org/packages/source/c/ckanext-storage/ckanext-storage-0.4.tar.gz#md5=06aaa0ce1e788391da524e9ece826a29
> (from http://pypi.python.org/simple/ckanext-storage/), version: 0.4
> Found link
> http://pypi.python.org/packages/source/c/ckanext-storage/ckanext-storage-0.5.tar.gz#md5=5e8d8ed31475f99c0a4a213e0de53c96
> (from http://pypi.python.org/simple/ckanext-storage/), version: 0.5
> Found link
> http://pypi.python.org/packages/source/c/ckanext-storage/ckanext-storage-0.2.tar.gz#md5=9792f00ad1ad96a55503cf5bcc03e060
> (from http://pypi.python.org/simple/ckanext-storage/), version: 0.2
> Found link
> http://pypi.python.org/packages/source/c/ckanext-storage/ckanext-storage-0.6.tar.gz#md5=e8449ad731fd63cc79e291938b8ff963
> (from http://pypi.python.org/simple/ckanext-storage/), version: 0.6
> Skipping link http://okfn.org/ (from
> http://pypi.python.org/simple/ckanext-storage/); not a file
> Analyzing links from page http://okfn.org/
> Skipping link http://okfn.org/xmlrpc.php (from http://okfn.org/); unknown
> archive format: .php
> Skipping link http://okfn.org/feed/ (from http://okfn.org/); not a file
> Skipping link http://okfn.org/comments/feed/ (from http://okfn.org/); not
> a file
> Skipping link
> http://okfn.org/wp-content/plugins/buddypress/bp-core/css/buddybar.css?ver=20110723
> (from http://okfn.org/); unknown archive format: .css
> Skipping link http://okfn.org/xmlrpc.php?rsd (from http://okfn.org/);
> unknown archive format: .php
> Skipping link http://okfn.org/wp-includes/wlwmanifest.xml (from
> http://okfn.org/); unknown archive format: .xml
> Skipping link http://okfn.org/ (from http://okfn.org/); not a file
> Skipping link http://okfn.org/handbooks/ (from http://okfn.org/); not a
> file
> Skipping link http://okfn.org/wp-content/plugins/embedly/css/embedly.css
> (from http://okfn.org/); unknown archive format: .css
> Skipping link
> http://okfn.org/wp-content/plugins/tweet-blender/css/tweets.css (from
> http://okfn.org/); unknown archive format: .css
> Skipping link
> http://okfn.org/wp-content/themes/wordpress-theme-okfn/style.css (from
> http://okfn.org/); unknown archive format: .css
> Skipping link http://assets.okfn.org/p/okfn/img/favicon.ico (from
> http://okfn.org/); unknown archive format: .ico
> Skipping link http://okfn.org (from http://okfn.org/); not a file
> Skipping link http://okfn.org/projects/ (from http://okfn.org/); not a
> file
> Skipping link http://okfn.org/projects/propose/ (from http://okfn.org/);
> not a file
> Skipping link http://okfn.org/projects (from http://okfn.org/); not a
> file
> Skipping link http://okfn.org/community/ (from http://okfn.org/); not a
> file
> Skipping link http://okfn.org/community/get-involved/ (from
> http://okfn.org/); not a file
> Skipping link http://okfn.org/wg/ (from http://okfn.org/); not a file
> Skipping link http://okfn.org/chapters/ (from http://okfn.org/); not a
> file
> Skipping link http://okfn.org/members/ (from http://okfn.org/); not a
> file
> Skipping link http://okfn.org/events/ (from http://okfn.org/); not a file
> Skipping link http://okfestival.org (from http://okfn.org/); not a file
> Skipping link http://meetup.com/openknowledgefoundation (from
> http://okfn.org/); not a file
> Skipping link http://okfn.org/calendar/ (from http://okfn.org/); not a
> file
> "./pip-log.txt" 457L, 41649C
>
> At which point my eyes go all glazed and my world is a sadder place. My
> apologies if I've just pasted a load of irrelevant detail into this, but I'm
> not entirely certain what this is telling me, let alone how I fix it.
>
> Once again, any suggestions gratefully accepted and thanks for the help so
> far.
>
> All the best
> Simon
>
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
More information about the ckan-discuss
mailing list