Skip to content

Not able to run on colab #69

@chsharma27

Description

@chsharma27

When I am trying to run it on colab, getting the following error:

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting tableqa
Using cached tableqa-0.0.10-py3-none-any.whl (930 kB)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from tableqa) (3.7.1)
Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from tableqa) (1.5.3)
Collecting transformers[tf-cpu]==3.0.2
Using cached transformers-3.0.2-py3-none-any.whl (769 kB)
Collecting rake-nltk
Using cached rake_nltk-1.0.6-py3-none-any.whl (9.1 kB)
Collecting graphql-core==2.3
Using cached graphql_core-2.3-py2.py3-none-any.whl (251 kB)
Collecting responder
Using cached responder-2.0.7-py3-none-any.whl (24 kB)
Collecting graphene==2.1.8
Using cached graphene-2.1.8-py2.py3-none-any.whl (107 kB)
Requirement already satisfied: tensorflow-hub in /usr/local/lib/python3.10/dist-packages (from tableqa) (0.13.0)
Requirement already satisfied: sqlalchemy in /usr/local/lib/python3.10/dist-packages (from tableqa) (2.0.10)
Requirement already satisfied: nltk in /usr/local/lib/python3.10/dist-packages (from tableqa) (3.8.1)
Collecting graphql-relay<3,>=2
Using cached graphql_relay-2.0.1-py3-none-any.whl (20 kB)
Requirement already satisfied: six<2,>=1.10.0 in /usr/local/lib/python3.10/dist-packages (from graphene==2.1.8->tableqa) (1.16.0)
Collecting aniso8601<=7,>=3
Using cached aniso8601-7.0.0-py2.py3-none-any.whl (42 kB)
Collecting rx<2,>=1.6
Using cached Rx-1.6.3-py2.py3-none-any.whl
Requirement already satisfied: promise<3,>=2.3 in /usr/local/lib/python3.10/dist-packages (from graphql-core==2.3->tableqa) (2.3)
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers[tf-cpu]==3.0.2->tableqa) (3.12.0)
Collecting sentencepiece!=0.1.92
Using cached sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from transformers[tf-cpu]==3.0.2->tableqa) (23.1)
Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers[tf-cpu]==3.0.2->tableqa) (4.65.0)
Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers[tf-cpu]==3.0.2->tableqa) (2022.10.31)
Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers[tf-cpu]==3.0.2->tableqa) (2.27.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from transformers[tf-cpu]==3.0.2->tableqa) (1.22.4)
Collecting tokenizers==0.8.1.rc1
Using cached tokenizers-0.8.1rc1.tar.gz (97 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting sacremoses
Using cached sacremoses-0.0.53-py3-none-any.whl
Collecting keras2onnx
Using cached keras2onnx-1.7.0-py3-none-any.whl (96 kB)
Collecting tensorflow-cpu
Using cached tensorflow_cpu-2.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (231.8 MB)
Collecting onnxconverter-common
Using cached onnxconverter_common-1.13.0-py2.py3-none-any.whl (83 kB)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (1.0.7)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (0.11.0)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (3.0.9)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (4.39.3)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (2.8.2)
Requirement already satisfied: pillow>=6.2.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (8.4.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tableqa) (1.4.4)
Requirement already satisfied: joblib in /usr/local/lib/python3.10/dist-packages (from nltk->tableqa) (1.2.0)
Requirement already satisfied: click in /usr/local/lib/python3.10/dist-packages (from nltk->tableqa) (8.1.3)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->tableqa) (2022.7.1)
Collecting python-multipart
Using cached python_multipart-0.0.6-py3-none-any.whl (45 kB)
Collecting graphql-server-core>=1.1
Using cached graphql_server_core-2.0.0-py2.py3-none-any.whl
Collecting uvicorn[standard]<0.13.3,>=0.12.0
Using cached uvicorn-0.13.2-py3-none-any.whl (45 kB)
Collecting marshmallow
Using cached marshmallow-3.19.0-py3-none-any.whl (49 kB)
Collecting starlette==0.13.*
Using cached starlette-0.13.8-py3-none-any.whl (60 kB)
Collecting apispec>=1.0.0b1
Using cached apispec-6.3.0-py3-none-any.whl (29 kB)
Collecting docopt
Using cached docopt-0.6.2-py2.py3-none-any.whl
Collecting requests-toolbelt
Using cached requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
Collecting apistar
Using cached apistar-0.7.2-py3-none-any.whl
Requirement already satisfied: itsdangerous in /usr/local/lib/python3.10/dist-packages (from responder->tableqa) (2.1.2)
Requirement already satisfied: chardet in /usr/local/lib/python3.10/dist-packages (from responder->tableqa) (4.0.0)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from responder->tableqa) (6.0)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from responder->tableqa) (3.1.2)
Collecting rfc3986
Using cached rfc3986-2.0.0-py2.py3-none-any.whl (31 kB)
Collecting whitenoise
Using cached whitenoise-6.4.0-py3-none-any.whl (19 kB)
Collecting aiofiles
Using cached aiofiles-23.1.0-py3-none-any.whl (14 kB)
Requirement already satisfied: greenlet!=0.4.17 in /usr/local/lib/python3.10/dist-packages (from sqlalchemy->tableqa) (2.0.2)
Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.10/dist-packages (from sqlalchemy->tableqa) (4.5.0)
Requirement already satisfied: protobuf>=3.19.6 in /usr/local/lib/python3.10/dist-packages (from tensorflow-hub->tableqa) (3.20.3)
Collecting click
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting h11>=0.8
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting websockets==8.*
Using cached websockets-8.1-cp310-cp310-linux_x86_64.whl
Collecting python-dotenv>=0.13.*
Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting httptools==0.1.*
Using cached httptools-0.1.2-cp310-cp310-linux_x86_64.whl
Collecting uvloop>=0.14.0
Using cached uvloop-0.17.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB)
Collecting watchgod<0.7,>=0.6
Using cached watchgod-0.6-py35.py36.py37-none-any.whl (10 kB)
Collecting typesystem
Using cached typesystem-0.4.1-py3-none-any.whl (28 kB)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->responder->tableqa) (2.1.2)
Collecting onnx
Using cached onnx-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB)
Collecting fire
Using cached fire-0.5.0-py2.py3-none-any.whl
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->transformers[tf-cpu]==3.0.2->tableqa) (1.26.15)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->transformers[tf-cpu]==3.0.2->tableqa) (3.4)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests->transformers[tf-cpu]==3.0.2->tableqa) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->transformers[tf-cpu]==3.0.2->tableqa) (2022.12.7)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.4.0)
Requirement already satisfied: absl-py>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.4.0)
Requirement already satisfied: jax>=0.3.15 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.4.8)
Requirement already satisfied: google-pasta>=0.1.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.2.0)
Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (3.3.0)
Requirement already satisfied: tensorflow-estimator<2.13,>=2.12.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (2.12.0)
Requirement already satisfied: libclang>=13.0.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (16.0.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.54.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (67.7.2)
Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (3.8.0)
Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.6.3)
Requirement already satisfied: flatbuffers>=2.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (23.3.3)
Requirement already satisfied: tensorboard<2.13,>=2.12 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (2.12.2)
Requirement already satisfied: keras<2.13,>=2.12.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (2.12.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.32.0)
Requirement already satisfied: wrapt<1.15,>=1.11.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.14.1)
Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (2.3.0)
Requirement already satisfied: wheel<1.0,>=0.23.0 in /usr/local/lib/python3.10/dist-packages (from astunparse>=1.6.0->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.40.0)
Requirement already satisfied: scipy>=1.7 in /usr/local/lib/python3.10/dist-packages (from jax>=0.3.15->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.10.1)
Requirement already satisfied: ml-dtypes>=0.0.3 in /usr/local/lib/python3.10/dist-packages (from jax>=0.3.15->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.1.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.8.1)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.7.0)
Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (3.4.3)
Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (2.3.0)
Requirement already satisfied: google-auth-oauthlib<1.1,>=0.5 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.0.0)
Requirement already satisfied: google-auth<3,>=1.6.3 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (2.17.3)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.10/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (4.9)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (5.3.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.3.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (1.3.1)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /usr/local/lib/python3.10/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (0.5.0)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow-cpu->transformers[tf-cpu]==3.0.2->tableqa) (3.2.2)
Building wheels for collected packages: tokenizers
error: subprocess-exited-with-error

× Building wheel for tokenizers (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for tokenizers (pyproject.toml) ... error
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

Can anybody help me? Thanks in advance.

Activity

snehilsanyal

snehilsanyal commented on Jul 5, 2023

@snehilsanyal

Hey @chsharma27 did you run
pip install transformers separately?
Also did you clone the repo in the colab?

PetrKorab

PetrKorab commented on Jul 5, 2023

@PetrKorab

Hi, running Table QA on Collab now is unrealistic since it works on Python 3.8. I had no problems running it on my computer in a virtual 3.8. env. After a serious amount of time, I gave up on trying collab because of a bunch of problems with requirements and other stuff related to the installation of Python 3.8. Hope it helps.

RomanRutka

RomanRutka commented on Feb 8, 2024

@RomanRutka

I had the same issue while installing tableqa, and installing transformers separately did not help. Howerver, downgrading to python 3.9.10 did the trick and I managed to install it without further issues

Aqib2489

Aqib2489 commented on Feb 14, 2024

@Aqib2489

I had the same issue while installing tableqa, and installing transformers separately did not help. Howerver, downgrading to python 3.9.10 did the trick and I managed to install it without further issues

Did it worked well on 3.9.10

RomanRutka

RomanRutka commented on Feb 14, 2024

@RomanRutka

I had the same issue while installing tableqa, and installing transformers separately did not help. Howerver, downgrading to python 3.9.10 did the trick and I managed to install it without further issues

Did it worked well on 3.9.10

It corrected the issue with building wheels while installing. Then you can run the collab, but I can't get the agent.query_db() function to work. The agent.get_query() runs without issue, but the generated SQL is usually wrong on the datasets I test it on...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @chsharma27@snehilsanyal@PetrKorab@RomanRutka@Aqib2489

        Issue actions

          Not able to run on colab · Issue #69 · abhijithneilabraham/tableQA