ancient-france-42909
06/28/2024, 7:03 PMseqeval
) that seems to have broken metadata. I've been looking into it, it seems it has new lines in the long description and that breaks sometimes. To test it, I forked the repo, removed that from setup.py
and now importlib.metadata.metdata
doesn't complain anymore, so I thought, great success. After finding out you cannot put a git repo in constraints.txt
, I just added it to the requirements.txt
(even though none of our stuff depends directly on it), and it seems that made it work, but I still get this when I try to generate lockfiles:
No distribution metadata found for seqeval==0.1.dev178+gedef455.
How can I get the original exception/error, or at lesat the command that caused that?ancient-france-42909
06/28/2024, 7:07 PMpex lock create
, now let's see if --level=DEBUG gives more info.ancient-france-42909
06/28/2024, 7:07 PMancient-france-42909
06/28/2024, 7:11 PMpex
is very badly documented 😞ancient-france-42909
06/28/2024, 7:11 PMancient-france-42909
06/28/2024, 7:12 PM22:07:02.03 [DEBUG] spawned local process as Some(70601) for Process { argv: ["/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.20.0/bin/python3.9", "./pex", "lock", "create", "--tmpdir", ".tmp", "--no-emit-warnings", "--python-path", "/Users/cbirzan/.pyenv/versions/crpython310/bin:/Users/cbirzan/.pyenv/versions/3.10.14/bin:/Users/cbirzan/.pyenv/versions/crpython310all/bin:/Users/cbirzan/.pyenv/versions/test_seqval/bin", "--output=lock.json", "--style=universal", "--pip-version", "23.1.2", "--resolver-version", "pip-2020-resolver", "--target-system", "linux", "--target-system", "mac", "--indent=2", "--no-pypi", "--index=<https://pypi.org/simple/>", "--manylinux", "manylinux2014", "--interpreter-constraint", "CPython~=3.10.9", "connexion[flask,uvicorn]==3.0.6"], env: {"CPPFLAGS": "", "LC_CTYPE": "UTF-8", "LDFLAGS": "", "PATH": "/opt/homebrew/Cellar/pyenv-virtualenv/1.2.3/shims:/Users/cbirzan/.pyenv/shims:/Users/cbirzan/.pyenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/cbirzan/.local/bin", "PEX_IGNORE_RCFILES": "true", "PEX_PYTHON": "/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.20.0/bin/python3.9", "PEX_ROOT": ".cache/pex_root", "PEX_SCRIPT": "pex3"}, working_directory: None, input_digests: InputDigests { complete: DirectoryDigest { digest: Digest { hash: Fingerprint<11dc55a39ac097c64f6ca402aaa09c1948ccf3822c0d81768cfe72473f6b0fc0>, size_bytes: 158 }, tree: "Some(..)" }, nailgun: DirectoryDigest { digest: Digest { hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, size_bytes: 0 }, tree: "Some(..)" }, inputs: DirectoryDigest { digest: Digest { hash: Fingerprint<11dc55a39ac097c64f6ca402aaa09c1948ccf3822c0d81768cfe72473f6b0fc0>, size_bytes: 158 }, tree: "Some(..)" }, immutable_inputs: {}, use_nailgun: {} }, output_files: {RelativePath("lock.json")}, output_directories: {}, timeout: None, execution_slot_variable: None, concurrency_available: 0, description: "Generate lockfile for connexion_3", level: Info, append_only_caches: {CacheName("pex_root"): RelativePath(".cache/pex_root"), CacheName("python_build_standalone"): RelativePath(".python-build-standalone")}, jdk_home: None, cache_scope: PerSession, execution_environment: ProcessExecutionEnvironment { name: None, platform: Macos_arm64, strategy: Local }, remote_cache_speculation_delay: 0ns, attempt: 0 }
ancient-france-42909
06/28/2024, 7:18 PMlock create
as arguments...curved-television-6568
06/28/2024, 7:23 PMancient-france-42909
06/28/2024, 7:25 PMancient-france-42909
06/28/2024, 7:26 PMcurved-television-6568
06/29/2024, 6:40 AMancient-france-42909
07/01/2024, 11:13 AMuse_scm_version
.steep-eve-20716
07/16/2024, 10:06 PMancient-france-42909
07/17/2024, 4:25 PMsteep-eve-20716
07/17/2024, 4:28 PMancient-france-42909
07/17/2024, 4:28 PMsteep-eve-20716
07/17/2024, 4:30 PMversion
in setup.py?ancient-france-42909
07/17/2024, 4:30 PMancient-france-42909
07/17/2024, 4:30 PMancient-france-42909
07/17/2024, 4:30 PMancient-france-42909
07/17/2024, 4:31 PMsteep-eve-20716
07/17/2024, 4:31 PMancient-france-42909
07/17/2024, 4:31 PMancient-france-42909
07/17/2024, 4:32 PMGLiNER
, and if that happens to be the case for you too, a colleague did this: https://github.com/urchade/GLiNER/pull/141steep-eve-20716
07/17/2024, 4:34 PMancient-france-42909
07/17/2024, 4:35 PMsteep-eve-20716
07/17/2024, 5:33 PMpex
(with all the same args printed by pants during generate-lockfiles
), prints a warning for seqeval, but succeeds:
/Users/jasondamour/.cache/pants/named_caches/pex_root/venvs/0deb89b23adbbad7a5b9aac06d2362acf7572cfa/4c982503433997e579e4274163218f2997dc553e/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -v --cache-dir /Users/jasondamour/.cache/pants/named_caches/pex_root/pip/24.0/pip_cache --log /private/var/folders/_9/qvrc0kmj4ssfvbybnz4_wb7c0000gn/T/pants-sandbox-VRP8g7/.tmp/pex-pip-log.nlujgual/pip.log download --dest /private/var/folders/_9/qvrc0kmj4ssfvbybnz4_wb7c0000gn/T/pants-sandbox-VRP8g7/.tmp/tmp1ak1of34/Users.jasondamour..pyenv.versions.3.10.6.bin.python3.10 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 seqeval==1.2.2
steep-eve-20716
07/17/2024, 5:34 PMLooking in indexes: <https://pypi.org/simple/>
Collecting seqeval==1.2.2
File was already downloaded /private/var/folders/_9/qvrc0kmj4ssfvbybnz4_wb7c0000gn/T/pants-sandbox-VRP8g7/.tmp/tmp1ak1of34/Users.jasondamour..pyenv.versions.3.10.6.bin.python3.10/seqeval-1.2.2.tar.gz
Running command python setup.py egg_info
/Users/jasondamour/.cache/pants/named_caches/pex_root/venvs/s/9983c135/venv/lib/python3.10/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/private/var/folders/_9/qvrc0kmj4ssfvbybnz4_wb7c0000gn/T/pip-download-_ylel21t/seqeval_a3c72d2156ca4fee8ca09410a5d0461b/.eggs/setuptools_scm-8.1.0-py3.10.egg/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'
running egg_info
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
Successfully downloaded seqeval numpy scikit-learn joblib scipy threadpoolctl
ancient-france-42909
07/17/2024, 5:39 PMancient-france-42909
07/17/2024, 5:41 PMancient-france-42909
07/17/2024, 5:41 PMsteep-eve-20716
07/17/2024, 5:42 PMpants generate-lockfiles --pex-verbosity=9
and it logs Executing: ....
and then the command I directly invokedancient-france-42909
07/17/2024, 5:42 PMsteep-eve-20716
07/17/2024, 5:42 PMancient-france-42909
07/17/2024, 5:43 PMancient-france-42909
07/17/2024, 5:44 PM"./pex", "lock", "create",
somewhere in thereancient-france-42909
07/17/2024, 5:45 PM__run.sh
, but it's been more than 5 minutes since I did this, so I can't really be sureancient-france-42909
07/17/2024, 5:49 PMsteep-eve-20716
07/17/2024, 5:49 PMsteep-eve-20716
07/17/2024, 5:49 PMancient-france-42909
07/17/2024, 5:50 PMancient-france-42909
07/17/2024, 5:51 PMancient-france-42909
07/17/2024, 6:19 PMancient-france-42909
07/17/2024, 6:20 PM--keep-sandboxes=always
and then go and edit the __run.sh
like Andreas suggested, adding PEX_VERBOSE=9
to the env vars, run that and paste the output