[ckan-dev] Error Upgrading ckan 2.4 to 2.4 - pip install --upgrade -r requirements.txt

Natalia Queiroz queiroz.nati at gmail.com
Tue Jan 17 13:19:23 UTC 2017


Hello group,

Does anyone have a idea why I'm getting this error?

Thanks,

On Thu, Jan 12, 2017 at 4:19 PM, Natalia Queiroz <queiroz.nati at gmail.com>
wrote:

> Thanks Adrià!
>
> Now I'm getting the following paster error when executing: paster db
> upgrade -c /etc/ckan/default/production.ini
>
> Traceback (most recent call last):
>   File "/usr/lib/ckan/default/bin/paster", line 7, in <module>
>     from paste.script.command import run
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 54, in <module>
>     dist = pkg_resources.get_distribution('PasteScript')
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/
> distribute-0.6.24-py2.7.egg/pkg_resources.py", line 330, in
> get_distribution
>     if isinstance(dist,Requirement): dist = get_provider(dist)
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/
> distribute-0.6.24-py2.7.egg/pkg_resources.py", line 209, in get_provider
>     return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/
> distribute-0.6.24-py2.7.egg/pkg_resources.py", line 686, in require
>     needed = self.resolve(parse_requirements(requirements))
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/
> distribute-0.6.24-py2.7.egg/pkg_resources.py", line 584, in resolve
>     raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: PasteScript
>
> Any idea?
>
> On Thu, Jan 12, 2017 at 12:27 PM, Adrià Mercader <adria.mercader at okfn.org>
> wrote:
>
>> Hi Natalia,
>>
>> It looks like there is a version conflict with one of the requirements.
>> Try to manually upgrade the problematic one:
>>
>> pip install --upgrade pbr==1.10.0
>>
>> And then try again with:
>>
>> pip install --upgrade -r requirements.txt
>>
>>
>> Hope this helps.
>>
>> Adrià
>>
>> On 11 January 2017 at 14:03, Natalia Queiroz <queiroz.nati at gmail.com>
>> wrote:
>>
>>> Anyone?
>>>
>>> On Tue, Jan 10, 2017 at 5:01 PM, Natalia Queiroz <queiroz.nati at gmail.com
>>> > wrote:
>>>
>>>>
>>>> Hello!
>>>>
>>>> I'm upgrading from 2.4 to 2.6 following the documentation steps (
>>>> http://docs.ckan.org/en/ckan-2.6.0/maintaining/upgrading/up
>>>> grade-source.html) and I got an error message after command
>>>>
>>>> pip install --upgrade -r requirements.txt
>>>>
>>>> ...
>>>>
>>>> Downloading/unpacking six==1.10.0 (from -r requirements.txt (line 43))
>>>> Running setup.py egg_info for package six
>>>>
>>>> no previously-included directories found matching 'documentation/_build'
>>>>
>>>> Downloading/unpacking sqlalchemy-migrate==0.10.0 (from -r
>>>> requirements.txt (line 44))
>>>> Running setup.py egg_info for package sqlalchemy-migrate
>>>> Traceback (most recent call last):
>>>> File "", line 14, in
>>>> File "/usr/lib/ckan/default/build/sqlalchemy-migrate/setup.py", line
>>>> 29, in
>>>> pbr=True)
>>>> File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
>>>> _setup_distribution = dist = klass(attrs)
>>>> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/dis
>>>> tribute-0.6.24-py2.7.egg/setuptools/dist.py", line 221, in *init*
>>>> self.fetch_build_eggs(attrs.pop('setup_requires'))
>>>> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/dis
>>>> tribute-0.6.24-py2.7.egg/setuptools/dist.py", line 245, in
>>>> fetch_build_eggs
>>>> parse_requirements(requires), installer=self.fetch_build_egg
>>>> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/dis
>>>> tribute-0.6.24-py2.7.egg/pkg_resources.py", line 588, in resolve
>>>> raise VersionConflict(dist,req) # XXX put more info here
>>>> pkg_resources.VersionConflict: (pbr 0.8.2 (/usr/lib/ckan/default/lib/python2.7/site-packages),
>>>> Requirement.parse('pbr>=1.3'))
>>>> Complete output from command python setup.py egg_info:
>>>> Traceback (most recent call last):
>>>>
>>>> File "", line 14, in
>>>>
>>>> File "/usr/lib/ckan/default/build/sqlalchemy-migrate/setup.py", line
>>>> 29, in
>>>>
>>>> pbr=True)
>>>>
>>>> File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
>>>>
>>>> _setup_distribution = dist = klass(attrs)
>>>>
>>>> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/dis
>>>> tribute-0.6.24-py2.7.egg/setuptools/dist.py", line 221, in *init*
>>>>
>>>> self.fetch_build_eggs(attrs.pop('setup_requires'))
>>>>
>>>> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/dis
>>>> tribute-0.6.24-py2.7.egg/setuptools/dist.py", line 245, in
>>>> fetch_build_eggs
>>>>
>>>> parse_requirements(requires), installer=self.fetch_build_egg
>>>>
>>>> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/dis
>>>> tribute-0.6.24-py2.7.egg/pkg_resources.py", line 588, in resolve
>>>>
>>>> raise VersionConflict(dist,req) # XXX put more info here
>>>>
>>>> pkg_resources.VersionConflict: (pbr 0.8.2 (/usr/lib/ckan/default/lib/python2.7/site-packages),
>>>> Requirement.parse('pbr>=1.3'))
>>>> ------------------------------
>>>>
>>>> Command python setup.py egg_info failed with error code 1 in
>>>> /usr/lib/ckan/default/build/sqlalchemy-migrate
>>>> Storing complete log in /root/.pip/pip.log
>>>>
>>>> Any idea?
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> Natália Oliveira
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Natália Oliveira
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
> --
>
>
> Natália Oliveira
>



-- 


Natália Oliveira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170117/c1f47e8a/attachment-0003.html>


More information about the ckan-dev mailing list