Open gillibrandpa opened 1 month ago
I get different errors when I use python 3.11.5 on my workstation at home. Those errors occur when I try to run fisdat. Will try and remember to post this evening.
Hi,
The dev should correct me if I am wrong but it seems you use a cached setuptool and there is a restriction on versioneer. I am not too sure what is the need for it but in pyproject.toml , if you remove the
requires = ["setuptools", "setuptools-scm", "versioneer[toml]==0.29"]
and replace the line 2 by
requires = ["setuptools", "setuptools-scm", "versioneer"]
It will install 0.22 and most likely work. Not too sure what is the point of using versioneer, it seems very dev oriented and not maintained.
Other option is to first do pip install --upgrade setuptools
and pip install --upgrade setuptools-scm
. This may allow you to use versioneer 0.29 and fulfill the required dependencies.
Maybe a clear requirement.txt would allow pip to work this out itself.
Good luck!
Hi,
The point of adding it was to have semantic versioning - specifically, it will print the version / commit when the program runs, since we have had trouble with all the Python versions and pip install &c.
It seems brittle and unhelpful, so maybe we remove it.
Worth chatting about this at the meeting tomorrow.
Cheers.
Thanks, I'll give that a go.
From: Julien Moreau @.> Sent: Thursday, May 23, 2024 4:54 PM To: wwaites/saved_fisdat @.> Cc: Gillibrand, Philip @.>; Author @.> Subject: Re: [wwaites/saved_fisdat] Problems with pip install (Issue #10)
ALERT: This message originated outside of Mowi's network. BE CAUTIOUS before clicking any link or attachment.
Hi, The dev should correct me if I am wrong but it seems you use a cached setuptool and there is a restriction on versioneer. I am not too sure what is the need for it but if you remove the requires = ["setuptools", "setuptools-scm", "versioneer[toml]==0.29"] and replaces by requires = ["setuptools", "setuptools-scm", "versioneer"] It will install 0.22 and most likely work. Not too sure what is the point of using versioneer, it seems very dev oriented and not maintained. Other option is to first do pip install --upgrade setuptools and pip install --upgrade setuptools-scm. This may allow you to use versioneer 0.29 and fulfill the required dependencies. Maybe a clear requirement.txt would allow pip to work this out itself. Good luck!
- Reply to this email directly, view it on GitHubhttps://github.com/wwaites/saved_fisdat/issues/10#issuecomment-2127486451, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC67ZVCLDNBUP354KTAFHPLZDYGILAVCNFSM6AAAAABIF5KWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGQ4DMNBVGE. You are receiving this because you authored the thread.Message ID: @.**@.>>
No joy I'm afraid:
(env) philip.gillibrand@marineharvest.net:saved_fisdat$ pip --version pip 21.3.1 from /home/philip.gillibrand@marineharvest.net/work/SAVED/env/lib64/python3.6/site-packages/pip (python 3.6)
WARNING: Discarding file:///home/philip.gillibrand%40marineharvest.net/work/SAVED/saved_fisdat. Command errored out with exit status 1: /home/philip.gillibrand@marineharvest.net/work/SAVED/env/bin/python /home/philip.gillibrand@marineharvest.net/work/SAVED/env/lib64/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpxzc0_18b Check the logs for full command output. ERROR: Command errored out with exit status 1: /home/philip.gillibrand@marineharvest.net/work/SAVED/env/bin/python /home/philip.gillibrand@marineharvest.net/work/SAVED/env/lib64/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpxzc0_18b Check the logs for full command output. (env) philip.gillibrand@marineharvest.net:saved_fisdat$
FWIW, on a
Darwin joshua.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 arm64
running
(saved) ww@joshua saved_fisdat % python --version
Python 3.9.6
(saved) ww@joshua saved_fisdat % pip --version
pip 21.2.4 from /Users/ww/src/saved/lib/python3.9/site-packages/pip (python 3.9)
I get no errors. This setup pulls in
(saved) ww@joshua saved_fisdat % pip freeze | grep versioneer
versioneer==0.29
This is running from the latest main branch revision a4586ed80a499e0ad88e50b43a798e639029aa02
of Tue Apr 23 16:03:53 2024 +0100
The Versioneer
like a rocketeer, but for versions!
https://github.com/python-versioneer/python-versioneer
Brian Warner
License: Public Domain (Unlicense)
Compatible with: Python 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3
Latest Version
No mention of compatability with python 3.6. Need to upgrade.
env) philip.gillibrand@marineharvest.net:saved_fisdat$ python --version Python 3.6.8
(env) philip.gillibrand@marineharvest.net:saved_fisdat$ pip install --editable . Obtaining file:///home/philip.gillibrand%40marineharvest.net/work/SAVED/saved_fisdat Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /home/philip.gillibrand@marineharvest.net/work/SAVED/env/bin/python /home/philip.gillibrand@marineharvest.net/work/SAVED/env/lib64/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ktl_3nfo/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools setuptools-scm 'versioneer[toml]==0.29' cwd: None Complete output (6 lines): Collecting setuptools Using cached setuptools-59.6.0-py3-none-any.whl (952 kB) Collecting setuptools-scm Using cached setuptools_scm-6.4.2-py3-none-any.whl (37 kB) ERROR: Could not find a version that satisfies the requirement versioneer[toml]==0.29 (from versions: 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22) ERROR: No matching distribution found for versioneer[toml]==0.29
WARNING: Discarding file:///home/philip.gillibrand%40marineharvest.net/work/SAVED/saved_fisdat. Command errored out with exit status 1: /home/philip.gillibrand@marineharvest.net/work/SAVED/env/bin/python /home/philip.gillibrand@marineharvest.net/work/SAVED/env/lib64/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ktl_3nfo/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools setuptools-scm 'versioneer[toml]==0.29' Check the logs for full command output. ERROR: Command errored out with exit status 1: /home/philip.gillibrand@marineharvest.net/work/SAVED/env/bin/python /home/philip.gillibrand@marineharvest.net/work/SAVED/env/lib64/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ktl_3nfo/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools setuptools-scm 'versioneer[toml]==0.29' Check the logs for full command output. (env) philip.gillibrand@marineharvest.net:saved_fisdat$
Is there a version requirement on the python environment installation?