GEM-benchmark / NL-Augmenter

NL-Augmenter 🦎 → 🐍 A Collaborative Repository of Natural Language Transformations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`p1_noun_transformation` wptools dependency issues

Saad-Mahamood opened this issue · comments

The p1_noun_transformation relies on wptools as a dependency. However, wptools depends on pycurl. Unfortunately, pycurl keeps throwing the following message when used:

  File "/Users/saad/Documents/Research Work/GEM/NL-Augmenter/transformations/p1_noun_transformation/__init__.py", line 1, in <module>
    from .transformation import *
  File "/Users/saad/Documents/Research Work/GEM/NL-Augmenter/transformations/p1_noun_transformation/transformation.py", line 9, in <module>
    import wptools
  File "/Users/saad/Documents/Research Work/GEM/NL-Augmenter/venv/lib/python3.9/site-packages/wptools/__init__.py", line 23, in <module>
    from . import core
  File "/Users/saad/Documents/Research Work/GEM/NL-Augmenter/venv/lib/python3.9/site-packages/wptools/core.py", line 14, in <module>
    from . import request
  File "/Users/saad/Documents/Research Work/GEM/NL-Augmenter/venv/lib/python3.9/site-packages/wptools/request.py", line 17, in <module>
    import pycurl
ImportError: pycurl: libcurl link-time ssl backends (secure-transport) do not include compile-time ssl backend (openssl)

@Saad-Mahamood

SHORT ANSWER:

USE REQUIREMENTS (transformations/p1_noun_transformation/requirements.txt) FILE FOR INSTALING WPTOOLS or MASTER BRANCH of WPTOOLS

LONG DETAILED ANSWER:

  1. wptools @ git+git://github.com/pawan2411/wptools@30738f1
  2. https://github.com/siznax/wptools

Use either of above repos to setup wptools.
I already did a PR on master of wptools to remove pycurl dep, which was accepted also.
But as per wptools owner it will take some time to release new version on pypy/pip.

Same reason in p1_noun_transformation requirements file i added my personal repo (1st one). You can also use master of orignal repo (2nd one)

@kaustubhdhole FYI.