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

Cannot install nlm-ingestor #102

Open
Denis-Kazakov opened this issue Dec 24, 2024 · 2 comments
Open

Cannot install nlm-ingestor #102

Denis-Kazakov opened this issue Dec 24, 2024 · 2 comments

Comments

@Denis-Kazakov
Copy link

Linux Mint. I tried to run !pip install nlm-ingestor in a notebook or pip install nlm-ingestor in a terminal but it always fails. Below the output that I get in an existing conda environment. Looks like it has issues with pandas. I tried a new clean conda environment without other packages, it then has issues with thinc, even if I install the latest version of thinc.

Collecting nlm-ingestor
Using cached nlm_ingestor-0.1.7-py3-none-any.whl.metadata (8.4 kB)
Collecting flask (from nlm-ingestor)
Using cached flask-3.1.0-py3-none-any.whl.metadata (2.7 kB)
Collecting flask-restful (from nlm-ingestor)
Using cached Flask_RESTful-0.3.10-py2.py3-none-any.whl.metadata (1.0 kB)
Collecting flask-jsonpify (from nlm-ingestor)
Using cached Flask-Jsonpify-1.5.0.tar.gz (3.0 kB)
Preparing metadata (setup.py) ... done
Collecting gunicorn (from nlm-ingestor)
Using cached gunicorn-23.0.0-py3-none-any.whl.metadata (4.4 kB)
Collecting werkzeug (from nlm-ingestor)
Using cached werkzeug-3.1.3-py3-none-any.whl.metadata (3.7 kB)
Collecting tika (from nlm-ingestor)
Using cached tika-2.6.0.tar.gz (27 kB)
Preparing metadata (setup.py) ... done
Collecting bs4 (from nlm-ingestor)
Using cached bs4-0.0.2-py2.py3-none-any.whl.metadata (411 bytes)
Collecting nltk (from nlm-ingestor)
Using cached nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB)
Collecting python-magic (from nlm-ingestor)
Using cached python_magic-0.4.27-py2.py3-none-any.whl.metadata (5.8 kB)
Requirement already satisfied: numpy in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from nlm-ingestor) (1.26.4)
Requirement already satisfied: tqdm in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from nlm-ingestor) (4.67.1)
Collecting symspellpy>=6.7.0 (from nlm-ingestor)
Using cached symspellpy-6.7.8-py3-none-any.whl.metadata (3.9 kB)
Requirement already satisfied: pandas>=1.2.4 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from nlm-ingestor) (2.2.3)
Collecting mistune==2.0.3 (from nlm-ingestor)
Using cached mistune-2.0.3-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting lxml==4.9.1 (from nlm-ingestor)
Using cached lxml-4.9.1.tar.gz (3.4 MB)
Preparing metadata (setup.py) ... done
Collecting unidecode (from nlm-ingestor)
Using cached Unidecode-1.3.8-py3-none-any.whl.metadata (13 kB)
Collecting nlm-utils (from nlm-ingestor)
Using cached nlm_utils-0.1.2-py3-none-any.whl.metadata (5.5 kB)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from pandas>=1.2.4->nlm-ingestor) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from pandas>=1.2.4->nlm-ingestor) (2024.2)
Requirement already satisfied: tzdata>=2022.7 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from pandas>=1.2.4->nlm-ingestor) (2024.2)
Collecting editdistpy>=0.1.3 (from symspellpy>=6.7.0->nlm-ingestor)
Using cached editdistpy-0.1.5-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.9 kB)
Requirement already satisfied: beautifulsoup4 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from bs4->nlm-ingestor) (4.12.3)
Requirement already satisfied: Jinja2>=3.1.2 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from flask->nlm-ingestor) (3.1.4)
Collecting itsdangerous>=2.2 (from flask->nlm-ingestor)
Using cached itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)
Requirement already satisfied: click>=8.1.3 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from flask->nlm-ingestor) (8.1.7)
Collecting blinker>=1.9 (from flask->nlm-ingestor)
Using cached blinker-1.9.0-py3-none-any.whl.metadata (1.6 kB)
Requirement already satisfied: MarkupSafe>=2.1.1 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from werkzeug->nlm-ingestor) (3.0.2)
Collecting aniso8601>=0.82 (from flask-restful->nlm-ingestor)
Using cached aniso8601-9.0.1-py2.py3-none-any.whl.metadata (23 kB)
Requirement already satisfied: six>=1.3.0 in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from flask-restful->nlm-ingestor) (1.16.0)
Requirement already satisfied: packaging in /home/denis/miniconda3/envs/langchain/lib/python3.12/site-packages (from gunicorn->nlm-ingestor) (24.2)
Collecting aiohttp==3.8.5 (from nlm-utils->nlm-ingestor)
Using cached aiohttp-3.8.5.tar.gz (7.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting dateparser (from nlm-utils->nlm-ingestor)
Using cached dateparser-1.2.0-py2.py3-none-any.whl.metadata (28 kB)
Collecting dnspython==2.1.0 (from nlm-utils->nlm-ingestor)
Using cached dnspython-2.1.0-py3-none-any.whl.metadata (1.9 kB)
Collecting word2number (from nlm-utils->nlm-ingestor)
Using cached word2number-1.1.zip (9.7 kB)
Preparing metadata (setup.py) ... done
Collecting minio==7.1.0 (from nlm-utils->nlm-ingestor)
Using cached minio-7.1.0-py3-none-any.whl.metadata (4.2 kB)
Collecting money==1.3.0 (from nlm-utils->nlm-ingestor)
Using cached money-1.3.0.tar.gz (18 kB)
Preparing metadata (setup.py) ... done
Collecting msgpack==1.0.2 (from nlm-utils->nlm-ingestor)
Using cached msgpack-1.0.2.tar.gz (123 kB)
Preparing metadata (setup.py) ... done
Collecting nltk (from nlm-ingestor)
Using cached nltk-3.6.2-py3-none-any.whl.metadata (2.9 kB)
INFO: pip is looking at multiple versions of nlm-utils to determine which version is compatible with other requirements. This could take a while.
Collecting nlm-utils (from nlm-ingestor)
Using cached nlm_utils-0.1.1-py3-none-any.whl.metadata (5.4 kB)
Collecting pandas>=1.2.4 (from nlm-ingestor)
Using cached pandas-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB)
Using cached pandas-2.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Using cached pandas-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
INFO: pip is still looking at multiple versions of nlm-utils to determine which version is compatible with other requirements. This could take a while.
Using cached pandas-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Using cached pandas-2.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Using cached pandas-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Using cached pandas-2.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Using cached pandas-2.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Using cached pandas-2.1.0.tar.gz (4.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [107 lines of output]
+ meson setup /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/.mesonpy-yp756y_1/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/.mesonpy-yp756y_1/build/meson-python-native-file.ini
The Meson build system
Version: 1.0.1
Source dir: /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f
Build dir: /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/.mesonpy-yp756y_1/build
Build type: native build
Project name: pandas
Project version: 2.1.0
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu122.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1
22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Cython compiler for the host machine: cython (cython 0.29.37)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/home/denis/miniconda3/envs/langchain/bin/python3.12)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Build targets in project: 53

  pandas 2.1.0
  
    User defined options
      Native files: /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/.mesonpy-yp756y_1/build/meson-python-native-file.ini
      buildtype   : release
      b_ndebug    : if-release
      b_vscrt     : md
  
  Found ninja-1.11.1.git.kitware.jobserver-1 at /tmp/pip-build-env-5_yw6dxk/normal/bin/ninja
  + /tmp/pip-build-env-5_yw6dxk/normal/bin/ninja
  [1/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
  [2/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
  [3/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
  [4/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
  [5/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
  [6/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
  [7/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
  [8/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
  [9/151] Generating pandas/__init__.py with a custom command
  [10/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/base.pyx
  [11/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/ccalendar.pyx
  [12/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/np_datetime.pyx
  [13/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/dtypes.pyx
  [14/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/nattype.pyx
  [15/151] Compiling C object pandas/_libs/tslibs/base.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
  [16/151] Linking target pandas/_libs/tslibs/base.cpython-312-x86_64-linux-gnu.so
  [17/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-312-x86_64-linux-gnu.so.p/.._src_parser_tokenizer.c.o
  [18/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/arrays.pyx
  [19/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/timezones.pyx
  [20/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/indexing.pyx
  [21/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/hashing.pyx
  [22/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/parsing.pyx
  [23/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/fields.pyx
  [24/151] Compiling C object pandas/_libs/tslibs/ccalendar.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_ccalendar.pyx.c.o
  [25/151] Linking target pandas/_libs/tslibs/ccalendar.cpython-312-x86_64-linux-gnu.so
  [26/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/strptime.pyx
  [27/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/vectorized.pyx
  [28/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/conversion.pyx
  [29/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/timedeltas.pyx
  [30/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/timestamps.pyx
  [31/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/tzconversion.pyx
  [32/151] Compiling C object pandas/_libs/indexing.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_indexing.pyx.c.o
  [33/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/offsets.pyx
  [34/151] Linking target pandas/_libs/indexing.cpython-312-x86_64-linux-gnu.so
  [35/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/tslibs/period.pyx
  [36/151] Compiling C object pandas/_libs/tslibs/np_datetime.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_np_datetime.pyx.c.o
  [37/151] Linking target pandas/_libs/tslibs/np_datetime.cpython-312-x86_64-linux-gnu.so
  [38/151] Compiling C object pandas/_libs/arrays.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_arrays.pyx.c.o
  [39/151] Linking target pandas/_libs/arrays.cpython-312-x86_64-linux-gnu.so
  [40/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/internals.pyx
  [41/151] Compiling C object pandas/_libs/tslibs/dtypes.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_dtypes.pyx.c.o
  [42/151] Linking target pandas/_libs/tslibs/dtypes.cpython-312-x86_64-linux-gnu.so
  [43/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/index.pyx
  [44/151] Compiling C object pandas/_libs/tslibs/nattype.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_nattype.pyx.c.o
  [45/151] Compiling C object pandas/_libs/lib.cpython-312-x86_64-linux-gnu.so.p/src_parser_tokenizer.c.o
  [46/151] Linking target pandas/_libs/tslibs/nattype.cpython-312-x86_64-linux-gnu.so
  [47/151] Compiling C object pandas/_libs/pandas_datetime.cpython-312-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime.c.o
  FAILED: pandas/_libs/pandas_datetime.cpython-312-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime.c.o
  cc -Ipandas/_libs/pandas_datetime.cpython-312-x86_64-linux-gnu.so.p -Ipandas/_libs -I../../pandas/_libs -I../../../../pip-build-env-5_yw6dxk/overlay/lib/python3.12/site-packages/numpy/_core/include -I../../pandas/_libs/include -I/home/denis/miniconda3/envs/langchain/include/python3.12 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -fPIC -MD -MQ pandas/_libs/pandas_datetime.cpython-312-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime.c.o -MF pandas/_libs/pandas_datetime.cpython-312-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime.c.o.d -o pandas/_libs/pandas_datetime.cpython-312-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime.c.o -c ../../pandas/_libs/src/vendored/numpy/datetime/np_datetime.c
  ../../pandas/_libs/src/vendored/numpy/datetime/np_datetime.c: In function ‘get_datetime_metadata_from_dtype’:
  ../../pandas/_libs/src/vendored/numpy/datetime/np_datetime.c:946:52: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘c_metadata’
    946 |     return (((PyArray_DatetimeDTypeMetaData *)dtype->c_metadata)->meta);
        |                                                    ^~
  ../../pandas/_libs/src/vendored/numpy/datetime/np_datetime.c:947:1: warning: control reaches end of non-void function [-Wreturn-type]
    947 | }
        | ^
  [48/151] Compiling C object pandas/_libs/hashing.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_hashing.pyx.c.o
  [49/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/missing.pyx
  [50/151] Compiling C object pandas/_libs/tslibs/timezones.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_timezones.pyx.c.o
  [51/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/lib.pyx
  [52/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/interval.pyx
  [53/151] Compiling C object pandas/_libs/tslibs/conversion.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_conversion.pyx.c.o
  [54/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/hashtable.pyx
  [55/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/groupby.pyx
  [56/151] Compiling C object pandas/_libs/tslibs/vectorized.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_vectorized.pyx.c.o
  [57/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/algos.pyx
  [58/151] Compiling C object pandas/_libs/tslibs/fields.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_fields.pyx.c.o
  [59/151] Compiling C object pandas/_libs/tslibs/tzconversion.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_tzconversion.pyx.c.o
  [60/151] Compiling Cython source /tmp/pip-install-i098cnnr/pandas_06b681c6c3f9456ab03597e6eb58aa4f/pandas/_libs/join.pyx
  [61/151] Compiling C object pandas/_libs/tslibs/strptime.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_strptime.pyx.c.o
  [62/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_parsing.pyx.c.o
  [63/151] Compiling C object pandas/_libs/internals.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_internals.pyx.c.o
  [64/151] Compiling C object pandas/_libs/tslibs/timedeltas.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_timedeltas.pyx.c.o
  [65/151] Compiling C object pandas/_libs/tslibs/period.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_period.pyx.c.o
  [66/151] Compiling C object pandas/_libs/tslibs/timestamps.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_timestamps.pyx.c.o
  [67/151] Compiling C object pandas/_libs/tslibs/offsets.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_offsets.pyx.c.o
  [68/151] Compiling C object pandas/_libs/index.cpython-312-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_index.pyx.c.o
  ninja: build stopped: subcommand failed.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@siddhanttt2506
Copy link

any updates
not able to solve it

@lav-sharma-cerelabs
Copy link

Hello @Denis-Kazakov, So I have tried this with python3.9 and also the docker image that they have either should work. You can find the below steps which I have followed.

NLM Ingestor Setup

Python (Locally)

  1. Create a python environment
python3.9 -m venv nlm-ingestor
  1. Install the required python packages
pip install nlm-ingestor llmsherpa ipython
  1. Additionally run the below code for installing nltk
import nltk
nltk.download('punkt')
nltk.download('stopwords')
  1. Run the ingestor
python -m nlm_ingestor.ingestion_daemon
  1. Expected output
INFO:__main__:Starting ingestor service..
 * Serving Flask app '__main__'
 * Debug mode: off
INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.10.1.62:5001
INFO:werkzeug:Press CTRL+C to quit

Docker

  1. Pull the docker image
docker pull ghcr.io/nlmatics/nlm-ingestor:latest
  1. Run the docker image mapping the port 5001 to port of your choice
docker run -p 5001:5001 ghcr.io/nlmatics/nlm-ingestor:latest
  1. Expected output
 * Serving Flask app '__main__'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://172.17.0.2:5001
Press CTRL+C to quit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants