Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This error originates from a subprocess #474

Open
SaraNiknamHesar opened this issue Nov 10, 2024 · 13 comments
Open

This error originates from a subprocess #474

SaraNiknamHesar opened this issue Nov 10, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@SaraNiknamHesar
Copy link

Hello I have this problem when I am trying to install the ontogpt and use pip install ontogpt
2
please help me it has been 3 days I am trying to use it but I can't

@caufieldjh
Copy link
Member

Hi @SaraNiknamHesar - if you're on a Windows system then this may be the same issue as here: #387
The solution in that case is to install the MS C++ build tools from https://visualstudio.microsoft.com/visual-cpp-build-tools/

@caufieldjh caufieldjh added the bug Something isn't working label Nov 10, 2024
@SaraNiknamHesar
Copy link
Author

I still have the same problem and I already read and did this solution you suggested but still the problem. the version of my python is 3.10 I tried it on 3.11 3.12 3.13 it did not work I cloned it and then installed oak, I even set the API, but it still didn't recognize Ontogpt. I tried all the ways that I thought would work, but all of them end up with this error.
3 I provided the whole error because I really don't know what to do and at the end, it mentioned to update pip, I have tried that too, but it didn't work. I installed wheel myself and updated it, unfortunately nothing happened. I even tried to run adeft separately, but I still got the same error.
////////////////////////////////error text
pip install ontogpt
Collecting ontogpt
Using cached ontogpt-1.0.7-py3-none-any.whl (1.3 MB)
Collecting toml<0.11.0,>=0.10.2
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting tiktoken<0.8.0,>=0.7.0
Using cached tiktoken-0.7.0-cp310-cp310-win_amd64.whl (798 kB)
Collecting linkml-owl<0.4.0,>=0.3.0
Using cached linkml_owl-0.3.0-py3-none-any.whl (17 kB)
Collecting requests-cache>=1.2.0
Using cached requests_cache-1.2.1-py3-none-any.whl (61 kB)
Requirement already satisfied: click>=8.1.3 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from ontogpt) (8.1.7)
Collecting linkml<2.0.0,>=1.8.3
Using cached linkml-1.8.5-py3-none-any.whl (313 kB)
Collecting inflection>=0.5.1
Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
Collecting aiohttp>=3.8.4
Using cached aiohttp-3.10.10-cp310-cp310-win_amd64.whl (381 kB)
Collecting beautifulsoup4>=4.11.1
Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Collecting diskcache<6.0.0,>=5.6.3
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Collecting ruamel.yaml>=0.17.31
Using cached ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
Collecting oaklib>=0.5.28
Using cached oaklib-0.6.18-py3-none-any.whl (666 kB)
Collecting cachier>=2.1.0
Using cached cachier-3.1.2-py3-none-any.whl (24 kB)
Collecting wikipedia>=1.4.0
Using cached wikipedia-1.4.0.tar.gz (27 kB)
Collecting dpath<3.0.0,>=2.1.6
Using cached dpath-2.2.0-py3-none-any.whl (17 kB)
Collecting inflect>=6.0.2
Using cached inflect-7.4.0-py3-none-any.whl (34 kB)
Collecting gilda>=1.0.0
Using cached gilda-1.4.0-py3-none-any.whl (885 kB)
Collecting pydantic>=2.4.0
Using cached pydantic-2.9.2-py3-none-any.whl (434 kB)
Collecting wikipedia-api>=0.5.8
Using cached wikipedia_api-0.7.1.tar.gz (17 kB)
Collecting bioc>=2.0
Using cached bioc-2.1-py3-none-any.whl (33 kB)
Collecting frontend<0.0.4,>=0.0.3
Using cached frontend-0.0.3-py3-none-any.whl (32 kB)
Collecting urllib3<2
Using cached urllib3-1.26.20-py2.py3-none-any.whl (144 kB)
Collecting pymupdf<2.0.0,>=1.24.9
Using cached PyMuPDF-1.24.13-cp39-abi3-win_amd64.whl (16.2 MB)
Collecting litellm<2.0.0,>=1.44.28
Using cached litellm-1.52.3-py3-none-any.whl (6.4 MB)
Requirement already satisfied: requests<3.0.0,>=2.31.0 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from ontogpt) (2.32.3)
Collecting yarl<2.0,>=1.12.0
Using cached yarl-1.17.1-cp310-cp310-win_amd64.whl (89 kB)
Collecting attrs>=17.3.0
Using cached attrs-24.2.0-py3-none-any.whl (63 kB)
Collecting aiohappyeyeballs>=2.3.0
Using cached aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.5.0-cp310-cp310-win_amd64.whl (51 kB)
Collecting async-timeout<5.0,>=4.0
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.1.0-cp310-cp310-win_amd64.whl (28 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting soupsieve>1.2
Using cached soupsieve-2.6-py3-none-any.whl (36 kB)
Collecting intervaltree
Using cached intervaltree-3.1.0.tar.gz (32 kB)
Collecting lxml>=4.6.3
Using cached lxml-5.3.0-cp310-cp310-win_amd64.whl (3.8 MB)
Collecting jsonlines>=1.2.0
Using cached jsonlines-4.0.0-py3-none-any.whl (8.7 kB)
Collecting tqdm
Using cached tqdm-4.67.0-py3-none-any.whl (78 kB)
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Collecting portalocker>=2.3.2
Using cached portalocker-2.10.1-py3-none-any.whl (18 kB)
Collecting watchdog>=2.3.1
Using cached watchdog-6.0.0-py3-none-win_amd64.whl (79 kB)
Requirement already satisfied: colorama in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from click>=8.1.3->ontogpt) (0.4.6)
Collecting uvicorn>=0.7.1
Using cached uvicorn-0.32.0-py3-none-any.whl (63 kB)
Collecting starlette>=0.12.0
Using cached starlette-0.41.2-py3-none-any.whl (73 kB)
Collecting aiofiles
Using cached aiofiles-24.1.0-py3-none-any.whl (15 kB)
Collecting itsdangerous>=1.1.0
Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Collecting unidecode
Using cached Unidecode-1.3.8-py3-none-any.whl (235 kB)
Collecting scikit-learn<1.5
Using cached scikit_learn-1.4.2-cp310-cp310-win_amd64.whl (10.6 MB)
Collecting regex
Using cached regex-2024.11.6-cp310-cp310-win_amd64.whl (274 kB)
Collecting werkzeug
Using cached werkzeug-3.1.3-py3-none-any.whl (224 kB)
Collecting flask-restx>=1.3.0
Using cached flask_restx-1.3.0-py2.py3-none-any.whl (2.8 MB)
Collecting flask<4.0,>=3.0
Using cached flask-3.0.3-py3-none-any.whl (101 kB)
Collecting adeft
Using cached adeft-0.12.3.tar.gz (177 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting boto3
Using cached boto3-1.35.57-py3-none-any.whl (139 kB)
Collecting pystow>=0.1.10
Using cached pystow-0.5.6-py3-none-any.whl (32 kB)
Collecting blinker>=1.6.2
Using cached blinker-1.9.0-py3-none-any.whl (8.5 kB)
Collecting Jinja2>=3.1.2
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Collecting jsonschema
Using cached jsonschema-4.23.0-py3-none-any.whl (88 kB)
Collecting aniso8601>=0.82
Using cached aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)
Collecting pytz
Using cached pytz-2024.2-py2.py3-none-any.whl (508 kB)
Collecting importlib-resources
Using cached importlib_resources-6.4.5-py3-none-any.whl (36 kB)
Collecting typeguard>=4.0.1
Using cached typeguard-4.4.1-py3-none-any.whl (35 kB)
Requirement already satisfied: more-itertools>=8.5.0 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from inflect>=6.0.2->ontogpt) (10.5.0)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl (15 kB)
Collecting rdflib>=6.0.0
Using cached rdflib-7.1.1-py3-none-any.whl (562 kB)
Collecting parse
Using cached parse-1.20.2-py2.py3-none-any.whl (20 kB)
Collecting pyyaml
Using cached PyYAML-6.0.2-cp310-cp310-win_amd64.whl (161 kB)
Collecting prefixmaps>=0.2.2
Using cached prefixmaps-0.2.6-py3-none-any.whl (754 kB)
Collecting pyjsg>=0.11.6
Using cached PyJSG-0.11.10-py3-none-any.whl (80 kB)
Collecting pyshex>=0.7.20
Using cached PyShEx-0.8.1-py3-none-any.whl (51 kB)
Collecting sqlalchemy>=1.4.31
Using cached SQLAlchemy-2.0.36-cp310-cp310-win_amd64.whl (2.1 MB)
Collecting python-dateutil
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting antlr4-python3-runtime<4.10,>=4.9.0
Using cached antlr4-python3-runtime-4.9.3.tar.gz (117 kB)
Collecting graphviz>=0.10.1
Using cached graphviz-0.20.3-py3-none-any.whl (47 kB)
Collecting jsonasobj2<2.0.0,>=1.0.3
Using cached jsonasobj2-1.0.4-py3-none-any.whl (6.3 kB)
Collecting pyshexc>=0.8.3
Using cached PyShExC-0.9.1-py2.py3-none-any.whl (69 kB)
Collecting prefixcommons>=0.1.7
Using cached prefixcommons-0.1.12-py3-none-any.whl (29 kB)
Collecting hbreader
Using cached hbreader-0.9.1-py3-none-any.whl (7.6 kB)
Collecting linkml-runtime<2.0.0,>=1.8.1
Using cached linkml_runtime-1.8.3-py3-none-any.whl (577 kB)
Collecting isodate>=0.6.0
Using cached isodate-0.7.2-py3-none-any.whl (22 kB)
Collecting openpyxl
Using cached openpyxl-3.1.5-py2.py3-none-any.whl (250 kB)
Collecting linkml-dataops
Using cached linkml_dataops-0.1.0-py3-none-any.whl (27 kB)
Collecting referencing>=0.28.4
Using cached referencing-0.35.1-py3-none-any.whl (26 kB)
Collecting rpds-py>=0.7.1
Using cached rpds_py-0.21.0-cp310-none-win_amd64.whl (218 kB)
Collecting jsonschema-specifications>=2023.03.6
Using cached jsonschema_specifications-2024.10.1-py3-none-any.whl (18 kB)
Collecting uri-template
Using cached uri_template-1.3.0-py3-none-any.whl (11 kB)
Collecting webcolors>=1.11
Using cached webcolors-24.8.0-py3-none-any.whl (15 kB)
Collecting jsonpointer>1.13
Using cached jsonpointer-3.0.0-py2.py3-none-any.whl (7.6 kB)
Collecting fqdn
Using cached fqdn-1.5.1-py3-none-any.whl (9.1 kB)
Collecting rfc3987
Using cached rfc3987-1.3.8-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: idna in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from jsonschema->flask-restx>=1.3.0->gilda>=1.0.0->ontogpt) (3.10)
Collecting isoduration
Using cached isoduration-20.11.0-py3-none-any.whl (11 kB)
Collecting rfc3339-validator
Using cached rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Collecting funowl>=0.2.3
Using cached funowl-0.2.3-py3-none-any.whl (51 kB)
Collecting jsonasobj
Using cached jsonasobj-1.3.1-py3-none-any.whl (4.4 kB)
Collecting rdflib-shim
Using cached rdflib_shim-1.0.3-py3-none-any.whl (5.2 kB)
Collecting bcp47
Using cached bcp47-0.1.0-py3-none-any.whl (13 kB)
Collecting deprecated
Using cached Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)
Collecting json-flattener>=0.1.9
Using cached json_flattener-0.1.9-py3-none-any.whl (10 kB)
Collecting curies>=0.5.4
Using cached curies-0.9.0-py3-none-any.whl (49 kB)
Collecting pytrie
Using cached PyTrie-0.4.0-py3-none-any.whl (6.1 kB)
Collecting tokenizers
Using cached tokenizers-0.20.3-cp310-none-win_amd64.whl (2.4 MB)
Requirement already satisfied: importlib-metadata>=6.8.0 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from litellm<2.0.0,>=1.44.28->ontogpt) (8.5.0)
Collecting openai>=1.54.0
Using cached openai-1.54.3-py3-none-any.whl (389 kB)
Collecting python-dotenv>=0.2.0
Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)
Requirement already satisfied: zipp>=3.20 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from importlib-metadata>=6.8.0->litellm<2.0.0,>=1.44.28->ontogpt) (3.21.0)
Collecting typing-extensions>=4.1.0
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting appdirs>=1.4.4
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting class-resolver>=0.4.2
Using cached class_resolver-0.5.4-py3-none-any.whl (29 kB)
Collecting pronto>=2.5.0
Using cached pronto-2.5.8-py2.py3-none-any.whl (61 kB)
Collecting ontoportal-client>=0.0.3
Using cached ontoportal_client-0.0.4-py3-none-any.whl (8.8 kB)
Collecting semsql>=0.3.1
Using cached semsql-0.3.3-py3-none-any.whl (132 kB)
Collecting tenacity>=8.2.3
Using cached tenacity-9.0.0-py3-none-any.whl (28 kB)
Collecting SPARQLWrapper
Using cached SPARQLWrapper-2.0.0-py3-none-any.whl (28 kB)
Collecting pysolr<4.0.0,>=3.9.0
Using cached pysolr-3.10.0-py2.py3-none-any.whl
Collecting ratelimit>=2.2.1
Using cached ratelimit-2.2.1.tar.gz (5.3 kB)
Collecting kgcl-rdflib==0.5.0
Using cached kgcl_rdflib-0.5.0-py3-none-any.whl (34 kB)
Collecting networkx>=2.7.1
Using cached networkx-3.4.2-py3-none-any.whl (1.7 MB)
Collecting eutils>=0.6.0
Using cached eutils-0.6.0-py2.py3-none-any.whl (41 kB)
Collecting sssom<0.5.0,>=0.4.4
Using cached sssom-0.4.13-py3-none-any.whl (171 kB)
Collecting airium>=0.2.5
Using cached airium-0.2.6-py3-none-any.whl (13 kB)
Collecting ndex2>=3.5.0
Using cached ndex2-3.9.0-py2.py3-none-any.whl (76 kB)
Collecting defusedxml>=0.7.1
Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting ols-client>=0.1.1
Using cached ols_client-0.1.4-py3-none-any.whl (10 kB)
Collecting linkml-renderer>=0.3.0
Using cached linkml_renderer-0.3.1-py3-none-any.whl (25 kB)
Collecting kgcl-schema<0.7.0,>=0.6.9
Using cached kgcl_schema-0.6.9-py3-none-any.whl (46 kB)
Collecting lark>=1.1.2
Using cached lark-1.2.2-py3-none-any.whl (111 kB)
Requirement already satisfied: requests-toolbelt in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from ndex2>=3.5.0->oaklib>=0.5.28->ontogpt) (1.0.0)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pandas
Using cached pandas-2.2.3-cp310-cp310-win_amd64.whl (11.6 MB)
Collecting numpy
Using cached numpy-2.1.3-cp310-cp310-win_amd64.whl (12.9 MB)
Collecting ijson
Using cached ijson-3.3.0-cp310-cp310-win_amd64.whl (50 kB)
Collecting more-click
Using cached more_click-0.1.2-py3-none-any.whl (6.7 kB)
Collecting distro<2,>=1.7.0
Using cached distro-1.9.0-py3-none-any.whl (20 kB)
Collecting anyio<5,>=3.5.0
Using cached anyio-4.6.2.post1-py3-none-any.whl (90 kB)
Collecting httpx<1,>=0.23.0
Using cached httpx-0.27.2-py3-none-any.whl (76 kB)
Collecting sniffio
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Collecting jiter<1,>=0.4.0
Using cached jiter-0.7.0-cp310-none-win_amd64.whl (202 kB)
Collecting exceptiongroup>=1.0.2
Using cached exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
Collecting httpcore==1.*
Using cached httpcore-1.0.6-py3-none-any.whl (78 kB)
Requirement already satisfied: certifi in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from httpx<1,>=0.23.0->openai>=1.54.0->litellm<2.0.0,>=1.44.28->ontogpt) (2024.8.30)
Collecting h11<0.15,>=0.13
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting pywin32>=226
Using cached pywin32-308-cp310-cp310-win_amd64.whl (6.6 MB)
Collecting pytest-logging<2016.0.0,>=2015.11.4
Using cached pytest-logging-2015.11.4.tar.gz (3.9 kB)
Collecting chardet~=5.0
Using cached chardet-5.2.0-py3-none-any.whl (199 kB)
Collecting fastobo~=0.12.2
Using cached fastobo-0.12.3-cp310-cp310-win_amd64.whl (1.6 MB)
Collecting annotated-types>=0.6.0
Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)
Collecting pydantic-core==2.23.4
Using cached pydantic_core-2.23.4-cp310-none-win_amd64.whl (1.9 MB)
Collecting shexjsg>=0.8.2
Using cached ShExJSG-0.8.2-py2.py3-none-any.whl (14 kB)
Collecting cfgraph>=0.2.1
Using cached CFGraph-0.2.1.tar.gz (2.6 kB)
Collecting sparqlslurper>=0.5.1
Using cached sparqlslurper-0.5.1-py3-none-any.whl (6.6 kB)
Requirement already satisfied: setuptools in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from pysolr<4.0.0,>=3.9.0->oaklib>=0.5.28->ontogpt) (57.4.0)
Collecting pytest>=2.8.1
Using cached pytest-8.3.3-py3-none-any.whl (342 kB)
Collecting iniconfig
Using cached iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Requirement already satisfied: tomli>=1 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from pytest>=2.8.1->pytest-logging<2016.0.0,>=2015.11.4->prefixcommons>=0.1.7->linkml<2.0.0,>=1.8.3->ontogpt) (2.0.2)
Requirement already satisfied: packaging in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from pytest>=2.8.1->pytest-logging<2016.0.0,>=2015.11.4->prefixcommons>=0.1.7->linkml<2.0.0,>=1.8.3->ontogpt) (24.2)
Collecting pluggy<2,>=1.5
Using cached pluggy-1.5.0-py3-none-any.whl (20 kB)
Collecting pyparsing<4,>=2.1.0
Using cached pyparsing-3.2.0-py3-none-any.whl (106 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from requests<3.0.0,>=2.31.0->ontogpt) (3.4.0)
Requirement already satisfied: platformdirs>=2.5 in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from requests-cache>=1.2.0->ontogpt) (4.3.6)
Collecting cattrs>=22.2
Using cached cattrs-24.1.2-py3-none-any.whl (66 kB)
Collecting url-normalize>=1.4
Using cached url_normalize-1.4.3-py2.py3-none-any.whl (6.8 kB)
Collecting ruamel.yaml.clib>=0.2.7
Using cached ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl (118 kB)
Collecting scipy>=1.6.0
Using cached scipy-1.14.1-cp310-cp310-win_amd64.whl (44.8 MB)
Collecting joblib>=1.2.0
Using cached joblib-1.4.2-py3-none-any.whl (301 kB)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
Collecting SQLAlchemy-Utils<0.39.0,>=0.38.2
Using cached SQLAlchemy_Utils-0.38.3-py3-none-any.whl (100 kB)
Collecting greenlet!=0.4.17
Using cached greenlet-3.1.1-cp310-cp310-win_amd64.whl (298 kB)
Collecting deprecation<3.0.0,>=2.1.0
Using cached deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
Collecting pansql[pansql]>=0.0.1
Using cached pansql-0.0.1-py3-none-any.whl (26 kB)
Collecting sssom-schema<2.0.0,>=1.0.0
Using cached sssom_schema-1.0.0-py3-none-any.whl (32 kB)
Collecting validators>=0.20.0
Using cached validators-0.34.0-py3-none-any.whl (43 kB)
WARNING: networkx 3.4.2 does not provide the extra 'networkx'
Collecting tzdata>=2022.7
Using cached tzdata-2024.2-py2.py3-none-any.whl (346 kB)
WARNING: pansql 0.0.1 does not provide the extra 'pansql'
Collecting propcache>=0.2.0
Using cached propcache-0.2.0-cp310-cp310-win_amd64.whl (44 kB)
Collecting nltk
Using cached nltk-3.9.1-py3-none-any.whl (1.5 MB)
Collecting jmespath<2.0.0,>=0.7.1
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting botocore<1.36.0,>=1.35.57
Using cached botocore-1.35.57-py3-none-any.whl (12.7 MB)
Collecting s3transfer<0.11.0,>=0.10.0
Using cached s3transfer-0.10.3-py3-none-any.whl (82 kB)
Collecting wrapt<2,>=1.10
Using cached wrapt-1.16.0-cp310-cp310-win_amd64.whl (37 kB)
Collecting sortedcontainers<3.0,>=2.0
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting arrow>=0.15.0
Using cached arrow-1.3.0-py3-none-any.whl (66 kB)
Collecting types-python-dateutil>=2.8.10
Using cached types_python_dateutil-2.9.0.20241003-py3-none-any.whl (9.7 kB)
Collecting jsonpath-ng
Using cached jsonpath_ng-1.7.0-py3-none-any.whl
Collecting jsonpatch
Using cached jsonpatch-1.33-py2.py3-none-any.whl (12 kB)
Collecting ply
Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Collecting et-xmlfile
Using cached et_xmlfile-2.0.0-py3-none-any.whl (18 kB)
Collecting rdflib-jsonld==0.6.1
Using cached rdflib_jsonld-0.6.1-py2.py3-none-any.whl (16 kB)
WARNING: scipy 1.14.1 does not provide the extra 'scipy'
Collecting huggingface-hub<1.0,>=0.16.4
Using cached huggingface_hub-0.26.2-py3-none-any.whl (447 kB)
Requirement already satisfied: filelock in c:\users\lenovo\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->litellm<2.0.0,>=1.44.28->ontogpt) (3.16.1)
Collecting fsspec>=2023.5.0
Using cached fsspec-2024.10.0-py3-none-any.whl (179 kB)
Building wheels for collected packages: antlr4-python3-runtime, cfgraph, pytest-logging, ratelimit, wikipedia, wikipedia-api, adeft, docopt, intervaltree
Building wheel for antlr4-python3-runtime (setup.py) ... done
Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144586 sha256=c20a49374bf1ec70a5cb501e506462ac986ff2a4a2288bbafdff74c7dfbfb6ab
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\12\93\dd\1f6a127edc45659556564c5730f6d4e300888f4bca2d4c5a88
Building wheel for cfgraph (setup.py) ... done
Created wheel for cfgraph: filename=CFGraph-0.2.1-py3-none-any.whl size=2240 sha256=d2f08a44271f4b6b9e819f48c7c93aa7dea6d038f503b6e3d7275f2c7d46aec8
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\26\bd\ce\f40398ab2be182fe27806de6f27185f2dc207241061f7095df
Building wheel for pytest-logging (setup.py) ... done
Created wheel for pytest-logging: filename=pytest_logging-2015.11.4-py3-none-any.whl size=4376 sha256=efbf48979b6d9591db966e9b728467de0957782ca61c7ce1e890068979863bfb
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\cd\ab\3d\9fdfd7c440f382fb6db4e3ce2d8b7922e6aacf613aa3cb44b9
Building wheel for ratelimit (setup.py) ... done
Created wheel for ratelimit: filename=ratelimit-2.2.1-py3-none-any.whl size=5944 sha256=9dcef25a80370a5656c042d93d94ca84dbb9a9390e76566dbf39fbe78f3e4a9f
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\27\5f\ba\e972a56dcbf5de9f2b7d2b2a710113970bd173c4dcd3d2c902
Building wheel for wikipedia (setup.py) ... done
Created wheel for wikipedia: filename=wikipedia-1.4.0-py3-none-any.whl size=11723 sha256=de9e31cfa92a18aba7d05294cb5bf9d5662d7b1c823b1afe872df34c45380c6b
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\5e\b6\c5\93f3dec388ae76edc830cb42901bb0232504dfc0df02fc50de
Building wheel for wikipedia-api (setup.py) ... done
Created wheel for wikipedia-api: filename=Wikipedia_API-0.7.1-py3-none-any.whl size=14403 sha256=cece2b0649c5ba700ed8c8ff3b7f154843b85b46c2cd31abd59745cdcf1ffc57
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\4c\96\18\b9201cc3e8b47b02b510460210cfd832ccf10c0c4dd0522962
Building wheel for adeft (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\Lenovo\AppData\Local\Temp\tmpkjl6jxk7'
cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-crreu1wq\adeft_be9318e6728e465f8c6135208dae5f30
Complete output (54 lines):
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-310\adeft
copying src\adeft\disambiguate.py -> build\lib.win-amd64-cpython-310\adeft
copying src\adeft\discover.py -> build\lib.win-amd64-cpython-310\adeft
copying src\adeft\locations.py -> build\lib.win-amd64-cpython-310\adeft
copying src\adeft\recognize.py -> build\lib.win-amd64-cpython-310\adeft
copying src\adeft\util.py -> build\lib.win-amd64-cpython-310\adeft
copying src\adeft_init_.py -> build\lib.win-amd64-cpython-310\adeft
creating build\lib.win-amd64-cpython-310\adeft\download
copying src\adeft\download\download.py -> build\lib.win-amd64-cpython-310\adeft\download
copying src\adeft\download_init_.py -> build\lib.win-amd64-cpython-310\adeft\download
copying src\adeft\download_main_.py -> build\lib.win-amd64-cpython-310\adeft\download
creating build\lib.win-amd64-cpython-310\adeft\gui
copying src\adeft\gui_init_.py -> build\lib.win-amd64-cpython-310\adeft\gui
creating build\lib.win-amd64-cpython-310\adeft\modeling
copying src\adeft\modeling\classify.py -> build\lib.win-amd64-cpython-310\adeft\modeling
copying src\adeft\modeling\label.py -> build\lib.win-amd64-cpython-310\adeft\modeling
copying src\adeft\modeling_init_.py -> build\lib.win-amd64-cpython-310\adeft\modeling
creating build\lib.win-amd64-cpython-310\adeft\nlp
copying src\adeft\nlp\nlp.py -> build\lib.win-amd64-cpython-310\adeft\nlp
copying src\adeft\nlp_init_.py -> build\lib.win-amd64-cpython-310\adeft\nlp
creating build\lib.win-amd64-cpython-310\adeft\score
copying src\adeft\score\score.py -> build\lib.win-amd64-cpython-310\adeft\score
copying src\adeft\score_init_.py -> build\lib.win-amd64-cpython-310\adeft\score
creating build\lib.win-amd64-cpython-310\adeft\gui\ground
copying src\adeft\gui\ground\ground.py -> build\lib.win-amd64-cpython-310\adeft\gui\ground
copying src\adeft\gui\ground_init_.py -> build\lib.win-amd64-cpython-310\adeft\gui\ground
running egg_info
writing src\adeft.egg-info\PKG-INFO
writing dependency_links to src\adeft.egg-info\dependency_links.txt
writing requirements to src\adeft.egg-info\requires.txt
writing top-level names to src\adeft.egg-info\top_level.txt
reading manifest file 'src\adeft.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'src\adeft.egg-info\SOURCES.txt'
copying src\adeft\nlp\stopwords.json -> build\lib.win-amd64-cpython-310\adeft\nlp
copying src\adeft\score_score.c -> build\lib.win-amd64-cpython-310\adeft\score
copying src\adeft\score_score.pyx -> build\lib.win-amd64-cpython-310\adeft\score
copying src\adeft\score\permutations.pyx -> build\lib.win-amd64-cpython-310\adeft\score
creating build\lib.win-amd64-cpython-310\adeft\gui\ground\static
copying src\adeft\gui\ground\static\ground.css -> build\lib.win-amd64-cpython-310\adeft\gui\ground\static
copying src\adeft\gui\ground\static\scripts.js -> build\lib.win-amd64-cpython-310\adeft\gui\ground\static
creating build\lib.win-amd64-cpython-310\adeft\gui\ground\templates
copying src\adeft\gui\ground\templates\input.jinja2 -> build\lib.win-amd64-cpython-310\adeft\gui\ground\templates
running build_ext
building 'adeft.score._score' extension
creating build\temp.win-amd64-cpython-310\Release\src\adeft\score
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Lenovo\AppData\Local\Programs\Python\Python310\include -IC:\Users\Lenovo\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcsrc/adeft/score/_score.c /Fobuild\temp.win-amd64-cpython-310\Release\src/adeft/score/_score.obj
_score.c
C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for adeft
Building wheel for docopt (setup.py) ... done
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13791 sha256=66620b9dcf6c8f439c0558621618a1ade37596280091e4ce70617b2d297ecf2c
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\fc\ab\d4\5da2067ac95b36618c629a5f93f809425700506f72c9732fac
Building wheel for intervaltree (setup.py) ... done
Created wheel for intervaltree: filename=intervaltree-3.1.0-py2.py3-none-any.whl size=26140 sha256=cc3cef8f8aa0b5720fa3d230598d962313b89b5b09a4525616770f3cf5bf89d9
Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\fa\80\8c\43488a924a046b733b64de3fac99252674c892a4c3801c0a61
Successfully built antlr4-python3-runtime cfgraph pytest-logging ratelimit wikipedia wikipedia-api docopt intervaltree
Failed to build adeft
ERROR: Could not build wheels for adeft which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.3; however, version 24.3.1 is available.
You should consider upgrading via the 'C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.

@caufieldjh
Copy link
Member

OK, does this work:

python -m pip install --no-use-pep517 adeft

@caufieldjh
Copy link
Member

Another solution here would be to use a Docker container - I don't have one ready to go for OntoGPT but have an open issue for it in #176.

@caufieldjh
Copy link
Member

I think this is the main error, though:

C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory

That should be installed along with the build tools, so I'm not sure why it can't be found on your system.

@SaraNiknamHesar
Copy link
Author

The first solution didn't work and I have to check the second one because I don't know Docker, but for the third issue, yes, this is one of the errors that I tried to find an answer for, but no results were obtained. If you could give a solution for this, I would be grateful. I need it a lot to be able to work with this tool, please don't close the issue so that I can test the second solution, because now Europe is night, thanks

@SaraNiknamHesar

This comment was marked as outdated.

@caufieldjh
Copy link
Member

Hi @SaraNiknamHesar - I hid your comment to avoid sharing your API key.
The original comment text is below.

I finally be able to solve the problem but again I countered with another problem and I am using the API key from open api I tried to see in the troubleshooting of the complete document about this problem but it was written that this error can be due to various reasons. I tried to look for the file that specifies the version of the models to change it to 4, but unfortunately I couldn't find it.
I have to add that I got an API from the purchased version of GPT chat and tested it, and I got an API from the regular version and tested it, but it didn't work.

@caufieldjh
Copy link
Member

You may want to set your API key as an environment variable - before running ontogpt - like so:

export OPENAI_API_KEY="key-goes-here"

@SaraNiknamHesar
Copy link
Author

image
I did it, but I still have the same problem, isn't there a way to do this manually in the codes???

@SaraNiknamHesar
Copy link
Author

With your advice, I used the command you gave and even tried both ways mentioned in the link I posted, but I didn't get an answer. Is there a solution? I want to use this model in my presentation and I am really stuck in solving its problems.

https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety

@caufieldjh
Copy link
Member

Hi @SaraNiknamHesar,
If you have tried the export command (or in the Windows command prompt, setx, as mentioned in the OpenAI docs link you provided) and you're still getting an error with ontogpt, then try this one:

runoak set-apikey -e openai <your openai api key>

If that still doesn't help, you may want to verify that your API key is working with some demo code (like this: https://platform.openai.com/docs/quickstart) or with another package (like this: https://github.com/simonw/llm). It's possible that for some reason your API key is restricted to some services or models. You could also try a different model in the demo code or with OntoGPT itself - for OntoGPT, use the -m argument with a model name, like

ontogpt extract -i example.txt -t drug -m gpt-4o-mini

@SaraNiknamHesar
Copy link
Author

Hi unfortunately I couldn't fix it and it didn't work for me actually i really like that to use this also for my project but I can't what can I do for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants