[REDMINE1D-8] [RM-6504] error: unknown option `sort=-version:refname' Created: 04/Jun/21  Updated: 13/Jun/23  Resolved: 13/Jun/23

Status: Done
Project: 1D Redmine
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Redmine-Jira Migtation Assignee: Redmine-Jira Migtation
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Created on 2021-05-20 08:39:29 by Mira Sarkis. % Done: 100

Below warning and error appear when trying to build the library:
<pre>
WARNING: Built wheel for pylibamazed is invalid: Metadata 1.2 mandates PEP 440 version, but '0.22.dev0e360a97' is not
Failed to build pylibamazed
Installing collected packages: pylibamazed
Created temporary directory: /tmp/pip-record-w8az8da3
Running command /net/CESAM/amazed/msarkis/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-7l0rvrso/setup.py'"'"'; _file='"'"'/tmp/pip-req-build-7l0rvrso/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_, '"'"'exec'"'"'))' install --record /tmp/pip-record-w8az8da3/install-record.txt --single-version-externally-managed --compile --install-headers /net/CESAM/amazed/msarkis/venv/include/site/python3.6/pylibamazed
error: unknown option `sort=-version:refname'
usage: git tag [-a|-s|-u <key-id>] [-f] [-m <msg>|-F <file>] <tagname> [<head>]
</pre>



 Comments   
Comment by yuki.moritani [ 13/Jun/23 ]

Comment by Didier Vibert on 2021-06-03 08:43:21:
voir aussi #6492-2

Comment by yuki.moritani [ 13/Jun/23 ]

Comment by Didier Vibert on 2021-06-07 07:25:18:
le problème se pose maintenant avec les scripts de test d'intégrations sur le cluster: le build plante pour cette raison (impossble donc de faire le test)

<pre>
./git-it/dataset-tools/scripts/build.sh fix_issue_6485 fix_issue_6485
</pre>

donne, après le build successfull de pylibamazed, à la fabrication du wheel:
<pre>
Building wheels for collected packages: pylibamazed
Building wheel for pylibamazed (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /net/CESAM/amazed/dvibert/venvs-it/test/fix_issue_6485/5c923bc/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-th9s6o2n/setup.py'"'"'; _file_='"'"'/tmp/pip-req-build-th9s6o2n/setup.p
y'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(_file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-jiuckyva
cwd: /tmp/pip-req-build-th9s6o2n/
Complete output (37 lines):
error: unknown option `sort=-version:refname'
usage: git tag [-a|-s|-u <key-id>] [-f] [-m <msg>|-F <file>] <tagname> [<head>]
or: git tag -d <tagname>...
or: git tag -l [-n[<num>]] [--contains <commit>] [--points-at <object>]
[<pattern>...]
or: git tag -v <tagname>...

-l, --list list tag names
-n[<n>] print <n> lines of each tag message
-d, --delete delete tags
-v, --verify verify tags

Tag creation options
-a, --annotate annotated tag, needs a message
-m, --message <message>
tag message
-F, --file <file> read message from file
-s, --sign annotated and GPG-signed tag
--cleanup <mode> how to strip spaces and #comments from message
-u, --local-user <key id>
use another key to sign the tag
-f, --force replace the tag if exists
--column[=<style>] show tag list in columns

Tag listing options
--contains <commit> print only tags that contain the commit
--points-at <object> print only tags of the object

/net/CESAM/amazed/dvibert/venvs-it/test/fix_issue_6485/5c923bc/lib/python3.6/site-packages/setuptools/dist.py:485: UserWarning: The version specified ('0.22.dev5c923bcd.dirty') is an invalid version, this may not work as expected with n
ewer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running bdist_wheel
running build
running build_ext
building 'pylibamazed/_redshift' extension
swigging RedshiftLibrary/RedshiftLibrary/redshift.i to RedshiftLibrary/RedshiftLibrary/redshift_wrap.cpp
swig -python -c++ -outdir pylibamazed/python/pylibamazed -o RedshiftLibrary/RedshiftLibrary/redshift_wrap.cpp RedshiftLibrary/RedshiftLibrary/redshift.i
error: command 'swig' terminated by signal 11
----------------------------------------
ERROR: Failed building wheel for pylibamazed
Running setup.py clean for pylibamazed
Failed to build pylibamazed

</pre>

rqm: j'ai essayé de descendre à la main (pip install -U) des versions plus anciennes de setuptools (je crois qu'Ali avait mentionné ça) dans le venv créé pour le buid:
$VENVS_DIR/test/fix_issue_6485/5c923bc
=> ça n'a pas marché...

Comment by yuki.moritani [ 13/Jun/23 ]

Comment by Pierre-yves Chabaud on 2021-06-09 14:03:02:
Merged into @develop@ : @561655e@

Generated at Sat Feb 10 15:28:21 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.