-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SetuptoolsDeprecationWarning: Invalid version" error #2413
Comments
The version number is generated by a call of the git command that is installed on your host.
Related: |
Here are the command outputs:
I also tried to following command:
|
Wow thats wired, your version is newer but did not support the minus
Sadly pip versioning scheme does not allow leading zeros in the version numbers .. we fixed this by adding the minus Last year we had fixed a incompatibility with older git versions Now we have a incompatibility with newer versions :-( This needs to be fixed! We need an implementation that deals better with various git versions: Lines 61 to 62 in 0aade75
One solution could be: we use |
Newer versions of git [1] do no longer support a format string that includes a minus to remove leading zeros [2]. The format string '%Y.%m.%d' is more version rod. stable [1] searxng#2413 (comment) [2] https://github.com/searxng/searxng/pull/2122/files Closes: searxng#2413 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Newer versions of git [1] do no longer support a format string that includes a minus to remove leading zeros [2]. The format string '%Y.%m.%d' is more version rod. [1] searxng#2413 (comment) [2] https://github.com/searxng/searxng/pull/2122/files Closes: searxng#2413 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
I send PR can you test it / thanks 👍 |
I have done the whole process of "git clone" + building from scratch and now it works! |
Hello,
I'm compiling searxng, from this repo, using the master branch.
I do it on OpenBSD if that matters.
I'm following the directions from https://docs.searxng.org/admin/installation-searxng.html.
At the "$ pip install -U -e ." step, I get loads of following errors:
If I do the same steps using the master.zip archive, it compiles properly.
After a bunch of trial&errors and readings of bug reports, I identified a string format in searx/version.py that seem to be the root cause. If I modify the file as such
the compilation proceeds properly and
python ~/searxng-src/searx/webapp.py
runs properly.I have very little knowledge in git and python so I'm not sure whether this is the proper way to correct the issue or not.
The text was updated successfully, but these errors were encountered: