GRAAL-Research / deepparse

Deepparse is a state-of-the-art library for parsing multinational street addresses using deep learning
https://deepparse.org/
GNU Lesser General Public License v3.0
299 stars 30 forks source link

[BUG] metadata-generation-failed #235

Closed gen-li closed 1 month ago

gen-li commented 1 month ago

Describe the bug Collecting deepparse[app] Using cached deepparse-0.9.12-py3-none-any.whl.metadata (25 kB) Requirement already satisfied: numpy<2.0.0 in /opt/anaconda3/lib/python3.12/site-packages (from deepparse[app]) (1.26.4) Requirement already satisfied: torch in /opt/anaconda3/lib/python3.12/site-packages (from deepparse[app]) (2.4.1) Collecting bpemb (from deepparse[app]) Using cached bpemb-0.3.5-py3-none-any.whl.metadata (19 kB) Collecting scipy<=1.10.1 (from deepparse[app]) Using cached scipy-1.9.3.tar.gz (42.1 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 ╰─> [40 lines of output]

× 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.

Desktop (please complete the following information):

github-actions[bot] commented 1 month ago

Thank you for you interest in improving Deepparse.

MAYAS3 commented 1 month ago

Hello @gen-li,

Pip seems to have an issue building Scipy. Could you try to reinstall without using your cached version by running pip install --no-cache-dir deepparse[app] ?

If it doesn't solve the issue, please let me know the python version you're using and whether you're on Intel or Apple Silicon.

gen-li commented 1 month ago

Hi @MAYAS3 ,

Thanks for your help. The issue still exists.

I am using Apple Silicon. The python version is Python 3.12.4

Here is the error from the new try.

Collecting deepparse[app] Downloading deepparse-0.9.12-py3-none-any.whl.metadata (25 kB) Requirement already satisfied: numpy<2.0.0 in /opt/anaconda3/lib/python3.12/site-packages (from deepparse[app]) (1.26.4) Requirement already satisfied: torch in /opt/anaconda3/lib/python3.12/site-packages (from deepparse[app]) (2.4.1) Collecting bpemb (from deepparse[app]) Downloading bpemb-0.3.5-py3-none-any.whl.metadata (19 kB) Collecting scipy<=1.10.1 (from deepparse[app]) Downloading scipy-1.9.3.tar.gz (42.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.1/42.1 MB 115.1 MB/s eta 0:00:00 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 ╰─> [32 lines of output]

× 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.

MAYAS3 commented 1 month ago

Hi @gen-li,

I've made a new release that allows for newer versions of Scipy that support python 3.12. Could you try again (pip install --no-cache-dir deepparse[app])?

gen-li commented 1 month ago

It works now! Cool! Thanks so much!

Best,

Gen

On Thu, Sep 12, 2024 at 3:27 PM Marouane Yassine @.***> wrote:

[CAUTION: Non-UBC Email]

Hi @gen-li https://github.com/gen-li,

I've made a new release that allows for newer versions of Scipy that support python 3.12. Could you try again (pip install --no-cache-dir deepparse[app])?

— Reply to this email directly, view it on GitHub https://github.com/GRAAL-Research/deepparse/issues/235#issuecomment-2347348825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7MSCTW4PSHX4637WCZLMTZWIIJ7AVCNFSM6AAAAABOD4M352VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBXGM2DQOBSGU . You are receiving this because you were mentioned.Message ID: @.***>

MAYAS3 commented 1 month ago

Great! Enjoy Deepparse!