[ckan-dev] Datapusher - error on requirements.txt

Jari Voutilainen jari.voutilainen at iki.fi
Wed Mar 1 09:49:31 UTC 2017


Hi,

latest setuptools breaks pyparsing used by ckan and its extensions
https://github.com/pypa/setuptools/issues/969

downgrading setuptools to 33 fixed one of our environments were we saw this
issue.

jari

On Mon, Feb 27, 2017 at 10:26 PM, Stéphane Lapointe <lapointes at ogsl.ca>
wrote:

> HI,
>
> same problem here. Did you find a solution?
>
> Thanks
>
> Le 2017-02-01 à 12:47, Pedro Ferro a écrit :
>
> Sorry for insist on this, but I'm having this problem everytime I have to
> install requirements.txt.
> (It's pretty frustrating because after a hard succesfull instalation of
> CKAN I made my own manual of installation so everything ran without errors
> on the next installation).
>
> Now when I was installing ckanext-spatial have a similar error on
> requirements.txt
> I imagine I can't ignore this error...
> I search and didn't found a  solution for this.
>
> Appreciate if anyone could help
>
>
> (default)pf at pf-vb:/usr/lib/ckan/default/src/ckanext-spatial$ pip install
> -r pip-requirements.txt
>
> Requirement already satisfied: GeoAlchemy>=0.6 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from -r
> pip-requirements.txt (line 1))
> Requirement already satisfied: GeoAlchemy2>=0.2.4 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from -r
> pip-requirements.txt (line 2))
> Requirement already satisfied: Shapely>=1.2.13 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from -r
> pip-requirements.txt (line 3))
> Requirement already satisfied: OWSLib==0.8.6 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from -r
> pip-requirements.txt (line 4))
> Requirement already satisfied: lxml>=2.3 in /home/pf/ckan/lib/default/lib/python2.7/site-packages
> (from -r pip-requirements.txt (line 5))
> Requirement already satisfied: argparse in /usr/lib/python2.7 (from -r
> pip-requirements.txt (line 6))
> Collecting pyparsing==1.5.6 (from -r pip-requirements.txt (line 7))
>   Using cached pyparsing-1.5.6.zip
> Requirement already satisfied: requests>=1.1.0 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from -r
> pip-requirements.txt (line 8))
> Requirement already satisfied: SQLAlchemy>=0.6.1 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from
> GeoAlchemy>=0.6->-r pip-requirements.txt (line 1))
> Requirement already satisfied: python-dateutil>=1.5 in
> /home/pf/ckan/lib/default/lib/python2.7/site-packages (from
> OWSLib==0.8.6->-r pip-requirements.txt (line 4))
> Requirement already satisfied: pytz in /home/pf/ckan/lib/default/lib/python2.7/site-packages
> (from OWSLib==0.8.6->-r pip-requirements.txt (line 4))
> Installing collected packages: pyparsing
>   Found existing installation: pyparsing 2.1.10
>     Uninstalling pyparsing-2.1.10:
>       Successfully uninstalled pyparsing-2.1.10
>   Running setup.py install for pyparsing ... error
>     Complete output from command /usr/lib/ckan/default/bin/python -u -c
> "import setuptools, tokenize;__file__='/tmp/pip-bu
> ild-XDeznZ/pyparsing/setup.py';f=getattr(tokenize, 'open',
> open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
> /tmp/pip-Cv1xDo-record/install-record.txt --single-version-externally-managed
> --compile --install-headers /usr/lib/ckan/default/include/
> site/python2.7/pyparsing:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/setuptools/__init__.py",
> line 12, in <module>
>         import setuptools.version
>       File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/setuptools/version.py",
> line 1, in <module>
>         import pkg_resources
>       File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 72, in <module>
>         import packaging.requirements
>       File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/packaging/requirements.py",
> line 59, in <module>
>         MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
>     TypeError: __call__() takes exactly 2 arguments (1 given)
>
>     ----------------------------------------
>   Rolling back uninstall of pyparsing
> Command "/usr/lib/ckan/default/bin/python -u -c "import setuptools,
> tokenize;__file__='/tmp/pip-build-XDeznZ/pyparsing/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
> /tmp/pip-Cv1xDo-record/install-record.txt --single-version-externally-managed
> --compile --install-headers /usr/lib/ckan/default/include/site/python2.7/pyparsing"
> failed with error code 1 in /tmp/pip-build-XDeznZ/pyparsing/
>
>
> _______________________________________________
> ckan-dev mailing listckan-dev at lists.okfn.orghttps://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> --
>
> Stéphane Lapointe
>
> *Analyste programmeur  |  Programmer Analyst*
>
>  [image: https://ogsl.ca/images/visuel/Equipe/signatures/logos.png]
>
> *Observatoire global du Saint-Laurent  |  St. Lawrence Global Observatory*
>
> 310, allée des Ursulines
>
> Rimouski Qc Canada  G5L 3A1
>
> Téléphone  |  Telephone : 418.723.8372 <(418)%20723-8372>   poste | ext.
> 1195
>
> Internet : http://ogsl.ca   | http://slgo.ca
>
> Suivez-nous sur | Follow Us : Facebook
> <https://www.facebook.com/pages/OGSL/140878112686019>  | Twitter
> <https://twitter.com/#%21/OGSL_SLGO>  | LinkedIn
> <http://www.linkedin.com/company/observatoire-global-du-saint-laurent---ogsl>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170301/271ad12c/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logos.png
Type: image/png
Size: 27074 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170301/271ad12c/attachment-0002.png>


More information about the ckan-dev mailing list