Hi, Sorry if this is not a real Pyramid topic, but I'm looking for a few advices...
I'm using zc.buildout for a very long time, with zc.recipe.egg, to build all my Python packages and also to handle all my deployment environments, and I've always been very happy with it! :) But since a few days, I can't install zc.recipe.egg with any Python 3.6 or higher version, only with Python 3.5! Here is a traceback from a Gitlab-CI job with Python 3.7: 52 <https://gitlab.onf.fr/onf/support/python/pyramid/pyams-v2/pyams-security/-/jobs/3138#L53>$ ./bin/buildout 65 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L65>Setting socket time out to 3 seconds. 66 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L66>Develop: '/builds/pyams/pyams-security/.' 67 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L67>warning: no files found matching '*.txt' 68 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L68>warning: no previously-included files matching '*.pyc' found anywhere in distribution 69 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L69>warning: no previously-included files matching '*.*~' found anywhere in distribution 70 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L70>Couldn't develop '/builds/pyams/pyams-security/../ext/lingua' (not found) 71 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L71>Couldn't develop '/builds/pyams/pyams-security/../pyams_catalog' (not found) 72 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L72>Couldn't develop '/builds/pyams/pyams-security/../pyams_file' (not found) 73 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L73>Couldn't develop '/builds/pyams/pyams-security/../pyams_i18n' (not found) 74 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L74>Couldn't develop '/builds/pyams/pyams-security/../pyams_mail' (not found) 75 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L75>Couldn't develop '/builds/pyams/pyams-security/../pyams_site' (not found) 76 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L76>Couldn't develop '/builds/pyams/pyams-security/../pyams_utils' (not found) 77 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L77>Getting distribution for 'zc.recipe.egg==2.0.7'. 78 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L78>Traceback (most recent call last): 79 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L79> File "<string>", line 1, in <module> 80 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L80>ImportError: cannot import name 'main' from 'setuptools.command.easy_install' (/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py) 81 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L81>An error occurred when trying to install /tmp/tmpfpwsm7_5get_dist/zc.recipe.egg-2.0.7.tar.gz. Look above this message for any errors that were output by easy_install. 82 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L82>While: 83 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L83> Installing. 84 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L84> Getting section package. 85 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L85> Initializing section package. 86 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L86> Installing recipe zc.recipe.egg. 87 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L87> Getting distribution for 'zc.recipe.egg==2.0.7'. 88 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L88>An internal error occurred due to a bug in either zc.buildout or in a 89 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L89>recipe being used: 90 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L90>Traceback (most recent call last): 91 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L91> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 2174, in main 92 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L92> getattr(buildout, command)(args) 93 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L93> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 701, in install 94 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L94> [self[part]['recipe'] for part in install_parts] 95 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L95> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 701, in <listcomp> 96 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L96> [self[part]['recipe'] for part in install_parts] 97 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L97> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 1324, in __getitem__ 98 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L98> options._initialize() 99 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L99> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 1432, in _initialize 100 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L100> self.initialize() 101 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L101> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 1438, in initialize 102 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L102> recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout) 103 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L103> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py", line 1388, in _install_and_load 104 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L104> allow_hosts=buildout._allow_hosts 105 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L105> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/easy_install.py", line 957, in install 106 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L106> return installer.install(specs, working_set) 107 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L107> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/easy_install.py", line 682, in install 108 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L108> for dist in self._get_dist(requirement, ws): 109 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L109> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/easy_install.py", line 574, in _get_dist 110 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L110> dists = [_move_to_eggs_dir_and_compile(dist, self._dest)] 111 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L111> File "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/easy_install.py", line 1745, in _move_to_eggs_dir_and_compile 112 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L112> [tmp_loc] = glob.glob(os.path.join(tmp_dest, '*')) 113 <https://gitlab.com/pyams/pyams-security/-/jobs/986279809#L113>ValueError: not enough values to unpack (expected 1, got 0) I have tried many things, but I actually can't make this work anymore! So I'd like to find a solution for this problem, but if I can't, my question is just: what is actually a "good" way to handle building and deployment of Python packages, in a controlled and "reproducible" manner, for development as for production environments (for packages from Python 3.5 to 3.9)? Very best regards for any advice! Thierry -- https://www.ulthar.net -- http://pyams.readthedocs.io -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWA1kNdWXpRqyCrAz3fAWaub8AoAQz%3DuDjYtoKzC9h7HKA%40mail.gmail.com.
