soxoj / maigret

🕵️‍♂️ Collect a dossier on a person by username from thousands of sites
https://t.me/osint_maigret_bot
MIT License
10.23k stars 794 forks source link

Problematic reference to "arabic-reshaper" #1683

Open oyvinrog opened 3 months ago

oyvinrog commented 3 months ago

Checklist

Description

Info about Maigret version you are running and environment (--version, operation system, ISP provider):

(venv) C:\scripts\maigret>maigret --version maigret 0.4.4 Socid-extractor: 0.0.26 Aiohttp: 3.8.1 Requests: 2.28.1 Python: 3.10.1

How to reproduce this bug (commandline options / conditions): pip install maigret OR pipx install maigret in externally controlled environments

I get the same error when attempting to install both on Debian Linux and Windows 11. failed to build package: arabic-reshaper==2-1.1. See more detailed message below

I am able to work around the issue by removing the following from pyproject.toml arabic-reshaper = "^3.0.0"

Detailed message:

Collecting maigret Downloading maigret-0.4.0-py3-none-any.whl.metadata (6.7 kB) Collecting arabic-reshaper==2.1.3 (from maigret) Using cached arabic_reshaper-2.1.3-py3-none-any.whl.metadata (12 kB) WARNING: Ignoring version 2.1.3 of arabic-reshaper since it has invalid metadata: Requested arabic-reshaper==2.1.3 from https://files.pythonhosted.org/packages/47/27/7b9b824f5342d8ee180027333f2e15842ea36f5bc2d3d24a4e6bb31fb596/arabic_reshaper-2.1.3-py3-none-any.whl (from maigret) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier fonttools (>=3.0<4.0) ; (python_version < "3") and extra == 'with-fonttools'


Please use pip<24.1 if you need to use this version.
oyvinrog commented 3 months ago

I don't know why this works, but on Debian, pip install . in the main maigret folder will do a full install without issues. Instead of pip install maigret as instructed.