[ckan-dev] CKAN on Ubuntu

Hildegard Gerlach hildegard.gerlach at jrc.ec.europa.eu
Fri Dec 20 16:19:51 UTC 2013


Sorry Nigel,

I understood now. The virtual environment is in /usr/lib/ckan/default. I 
can activate it ( bin directory). It was not obvious to me (as I had 
used pyenv with the source install).

Thanks and sorry for bothering

Hilde

On 12/20/2013 1:07 PM, Hildegard Gerlach wrote:
> Hi Nigel,
>
> I installed version 2.0 following
> http://docs.ckan.org/en/latest/install-from-package.html
>
> sudo apt-get update
> sudo apt-get install -y nginx apache2 libapache2-mod-wsgi libpq5
> wget http://packaging.ckan.org/python-ckan_2.0_amd64.deb
> sudo dpkg -i python-ckan_2.1_amd64.deb
>
> CKAN is working !
>
> Now I installed the virtualenv as this was not done by default:
>
> sudo apt-get install -y python-virtualenv
>
> create the virtual environment in /usr/lib/ckan/default
> as user root (from package install everything is installed as user root)
>
> I get this error message using paster (in the virtual environment)
> paster --plugin=ckan user list -c /etc/ckan/default/production.ini
> The program 'paster' is currently not installed. You can install it by 
> typing:
> apt-get install python-pastescript
>
> install pastescript for the paster command
> apt-get install -y python-pastescript
>
> Now I get this error message:
>
> paster --plugin=ckan user list -c /etc/ckan/default/production.ini
> Traceback (most recent call last):
> File "/usr/bin/paster", line 4, in <module>
> command.run()
> File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 
> 103, in run
> command = commands[command_name].load()
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, 
> in load
> entry = __import__(self.module_name, globals(),globals(), ['__name__'])
> File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 11, in 
> <module>
> import ckan.lib.fanstatic_resources as fanstatic_resources
> File "/usr/lib/ckan/default/src/ckan/ckan/lib/fanstatic_resources.py", 
> line 6, in <module>
> from fanstatic import Library, Resource, Group, get_library_registry
> ImportError: No module named fanstatic
>
> Obviously the packages are not in the correct path ? But as there was 
> no virtual environment I don't know where they should be.
>
> Thanks
>
> Hilde
>
> On 12/20/2013 5:09 AM, Nigel Babu wrote:
>> Hi Hilde,
>>
>> Which package version did you install? How did you check that the 
>> packages are not installed? The package should have all the 
>> dependencies in them.
>>
>> Nigel Babu
>>
>> Developer | @nigelbabu <https://twitter.com/nigelbabu>
>>
>> TheOpen Knowledge Foundation <http://okfn.org/>
>>
>> Empowering through Open Knowledge
>>
>> http://okfn.org/| @okfn <http://twitter.com/OKFN>| OKF on Facebook 
>> <https://www.facebook.com/OKFNetwork>|Blog 
>> <http://blog.okfn.org/>|Newsletter <http://okfn.org/about/newsletter>
>>
>>
>> CKAN |http://ckan.org/|@CKANproject 
>> <http://twitter.com/CKANproject>|the world’s leading open-source data 
>> portal platform
>>
>>
>> On 19 December 2013 21:12, Hildegard Gerlach 
>> <hildegard.gerlach at jrc.ec.europa.eu 
>> <mailto:hildegard.gerlach at jrc.ec.europa.eu>> wrote:
>>
>>     Dear all,
>>
>>     I installed CKAN on ubuntu (package install) to see the difference
>>     to installing it on RedHat.
>>     It works fine, however if I want to install extensions I need to
>>     install the python virtualenvironment.
>>
>>     I did that but I discovered that also the packages which are in
>>     src/ckan/requirements.txt are not installed yet (e.g. PasteScript,
>>     fanstatic ...)
>>
>>     Is that the way it should be ? Shall I run the command
>>
>>     pip install --ignore-installed -r src/ckan/requirements.txt
>>
>>     ?
>>
>>     Thanks for your help.
>>
>>     Hilde
>>     _______________________________________________
>>     ckan-dev mailing list
>>     ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
>>     https://lists.okfn.org/mailman/listinfo/ckan-dev
>>     Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev





More information about the ckan-dev mailing list