Hello,
thank you so much for your help.
I had install --update setuptools
which raised the version from 39.2.0 to 58.0.4
here is the complete error message:
Collecting FormEncode<1.4,>=1.3.1
Downloading FormEncode-1.3.1.tar.gz (197 kB)
ERROR: Command errored out with exit status 1:
command: /opt/kallithea/venv/bin/python3 -c 'import io, os, sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-v81k9zcv/formencode_835feceb887f4a1989cbd3d85d056740/setup.py'"'"';
__file__='"'"'/tmp/pip-install-v81k9zcv/formencode_835feceb887f4a1989cbd3d85d056740/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'"'"'))'
egg_info --egg-base /tmp/pip-pip-egg-info-b2h_0m66
cwd:
/tmp/pip-install-v81k9zcv/formencode_835feceb887f4a1989cbd3d85d056740/
Complete output (3 lines):
/usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown
distribution option: 'convert_2to3_doctests'
warnings.warn(msg)
error in FormEncode setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding
https://files.pythonhosted.org/packages/2f/53/707c2b9b65ea6bedde67c21cbf7c71394f4a198620d4e9c1771214b91dcc/FormEncode-1.3.1.tar.gz#sha256=ada2f51792b1b484e5bb7b6cc14acfc1bc11fafc967cf015cd57e856053ca7f6
(from https://pypi.org/simple/formencode/). Command errored out with
exit status 1: python setup.py egg_info Check the logs for full
command output.
ERROR: Could not find a version that satisfies the requirement
FormEncode<1.4,>=1.3.1 (from kallithea) (from versions: 0.2, 0.2.1,
0.2.2, 0.3, 0.4, 0.5, 0.5.1, 0.6, 0.7, 0.7.1, 0.9, 1.0, 1.0.1, 1.1,
1.2, 1.2.1, 1.2.2, 1.2.3.dev0, 1.2.4, 1.2.5, 1.2.6, 1.3.0a1, 1.3.0,
1.3.1, 2.0.0a1, 2.0.0)
The solution is to fix the setuptools version < 58.0.0, >=36
https://setuptools.readthedocs.io/en/latest/history.html
v58.0.0 04 Sep 2021 Breaking Changes¶
<https://setuptools.readthedocs.io/en/latest/history.html#breaking-changes>
*
#2086 <https://github.com/pypa/setuptools/issues/2086>:Removed
support for 2to3 during builds. Projects should port to a unified
codebase or pin to an older version of Setuptools usingPEP 518
<https://www.python.org/dev/peps/pep-0518/>build-requires."
On 15.09.2021 14:18, toras wrote:
Hello
I'm not familiar with this issue, but I'm posting this for your
information.
I encountered a similar problem with docker ubuntu image (Install pip
with get-pip.py).
In the error log,
"Unknown distribution option: 'convert_2to3_doctests'"
and
"error in FormEncode setup command: use_2to3 is invalid."
message is included.
Maybe this has something to do with it.
https://github.com/pypa/setuptools/issues/1120
Apparently, it means that 2to3 is no longer available in setuptools 58?
----
On 2021/09/15 18:23, Thomas De Schampheleire wrote:
Hello,
El mié, 15 sept 2021 a las 10:57, Tom Gelsthorpe
(<[email protected]>) escribió:
Hi,
please have a look at this, it was working until about 10 days ago
pip install --upgrade kallithea==0.7.0
but now I get
ERROR: Could not find a version that satisfies the requirement
FormEncode<1.4,>=1.3.1 (from kallithea) (from versions: 0.2, 0.2.1,
0.2.2, 0.3, 0.4, 0.5, 0.5.1, 0.6, 0.7, 0.7.1, 0.9, 1.0, 1.0.1, 1.1,
1.2,
1.2.1, 1.2.2, 1.2.3.dev0, 1.2.4, 1.2.5, 1.2.6, 1.3.0a1, 1.3.0, 1.3.1,
2.0.0a1, 2.0.0)
ERROR: No matching distribution found for FormEncode<1.4,>=1.3.1
so FormEncode went from 1.3.1 to 2.0.0
the version check in setup.py at line 53 fails:
"FormEncode >= 1.3.1, < 1.4",
I don't see this problem.
I created a fresh virtualenv and ran the command you showed.
I get following set of packages:
pip freeze
alembic==1.4.3
amqp==5.0.6
Babel==2.8.1
backlash==0.3.1
bcrypt==3.1.7
Beaker==1.11.0
billiard==3.6.4.0
bleach==3.1.3
celery==5.0.5
certifi==2021.5.30
cffi==1.14.6
chardet==4.0.0
click==7.1.2
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
crank==0.8.1
decorator==4.4.2
docutils==0.16
dulwich==0.19.16
FormEncode==1.3.1
gearbox==0.2.1
hupper==1.10.3
ipaddr==2.2.0
Kallithea==0.7.0
kombu==5.1.0
Mako==1.1.5
Markdown==3.1.1
MarkupSafe==2.0.1
mercurial==5.8.1
paginate==0.5.6
paginate-sqlalchemy==0.3.1
Paste==3.4.6
PasteDeploy==2.1.1
prompt-toolkit==3.0.20
pycparser==2.20
Pygments==2.6.1
python-dateutil==2.8.2
python-editor==1.0.4
pytz==2021.1
repoze.lru==0.7
Routes==2.4.1
six==1.16.0
SQLAlchemy==1.3.24
Tempita==0.5.2
tgext.routes==0.2.1
TurboGears2==2.4.3
urllib3==1.26.6
URLObject==2.4.3
vine==5.0.0
waitress==1.4.4
wcwidth==0.2.5
webencodings==0.5.1
WebHelpers2==2.0
WebOb==1.8.7
Whoosh==2.7.4
Note that in the list in your output, FormEncode 1.3.1 is still
present and is the intended version.
It looks to me as if there is another package in your virtualenv that
explicitly expects another version.
Do you get the same problem from a fresh virtualenv?
I think it must be possible to let pip give more verbose output about
why it did not consider FormEncode 1.3.1.
Best regards,
Thomas
_______________________________________________
kallithea-general mailing list
[email protected]
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
_______________________________________________
kallithea-general mailing list
[email protected]
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
--
Tom Gelsthorpe
Technical Support Analyst
2e Systems
Tel: +49 6196 - 950 58 28
Fax: +49 6196 - 950 58 94
E-mail: [email protected]
Address: 2e Systems GmbH, Koenigsteiner Str. 107, 65812 Bad Soden am Taunus
Company registration: Amtsgericht Koenigstein (Germany), HRB 7303
Director: Philip Douglas
http://www.2e-systems.com - making your business fly!
_______________________________________________
kallithea-general mailing list
[email protected]
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general