<p dir="auto">Installing versions &gt; 1.3.13 is failing for us, it appears due to an integrated <code class="notranslate">enum</code> dependency.</p>
<p dir="auto">When using 1.3.13 this was not an issue. Builds with 1.3.14 and 1.3.15 fail in this way.</p>
<p dir="auto">Error:<br>
<code class="notranslate">AttributeError: module 'enum' has no attribute 'IntFlag'</code></p>
<p dir="auto">Stack:</p>
<ul dir="auto">
<li>Python 3.7.4</li>
<li>pipenv for dependency management</li>
<li><code class="notranslate">sqlalchemy = "*"</code> dependency line</li>
</ul>
<p dir="auto">Output during <code class="notranslate">pipenv install</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An error occurred while installing sqlalchemy==1.3.14 --hash=sha256:b92d2de62e43499d85b1780274d1b562e5159c7996f6f04a9bb46cf681ced45f! Will try again.
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]:   File &quot;/usr/local/lib/python3.7/site-packages/pipenv/core.py&quot;, line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File &quot;/usr/local/lib/python3.7/site-packages/pipenv/core.py&quot;, line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File &quot;/usr/local/lib/python3.7/site-packages/pipenv/core.py&quot;, line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File &quot;/usr/local/lib/python3.7/site-packages/pipenv/core.py&quot;, line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File &quot;/usr/local/lib/python3.7/site-packages/pipenv/core.py&quot;, line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting sqlalchemy==1.3.14', '  Using cached SQLAlchemy-1.3.14.tar.gz (6.1 MB)', '  Installing build dependencies: started', &quot;  Installing build dependencies: finished with status 'error'&quot;]
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', &quot;   command: /root/.local/share/virtualenvs/ks-nQj0AsbL/bin/python /root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-daar_xok/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel&quot;, '       cwd: None', '  Complete output (14 lines):', '  Traceback (most recent call last):', '    File &quot;/usr/local/lib/python3.7/runpy.py&quot;, line 193, in _run_module_as_main', '      &quot;__main__&quot;, mod_spec)', '    File &quot;/usr/local/lib/python3.7/runpy.py&quot;, line 85, in _run_code', '      exec(code, run_globals)', '    File &quot;/root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip/__main__.py&quot;, line 16, in &lt;module&gt;', '      from pip._internal.cli.main import main as _main  # isort:skip # noqa', '    File &quot;/root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip/_internal/cli/main.py&quot;, line 5, in &lt;module&gt;', '      import locale', '    File &quot;/usr/local/lib/python3.7/locale.py&quot;, line 16, in &lt;module&gt;', '      import re', '    File &quot;/usr/local/lib/python3.7/re.py&quot;, line 143, in &lt;module&gt;', '      class RegexFlag(enum.IntFlag):', &quot;  AttributeError: module 'enum' has no attribute 'IntFlag'&quot;, '  ----------------------------------------', &quot;ERROR: Command errored out with exit status 1: /root/.local/share/virtualenvs/ks-nQj0AsbL/bin/python /root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-daar_xok/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel Check the logs for full command output.&quot;]"><pre class="notranslate"><code class="notranslate">An error occurred while installing sqlalchemy==1.3.14 --hash=sha256:b92d2de62e43499d85b1780274d1b562e5159c7996f6f04a9bb46cf681ced45f! Will try again.
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting sqlalchemy==1.3.14', '  Using cached SQLAlchemy-1.3.14.tar.gz (6.1 MB)', '  Installing build dependencies: started', "  Installing build dependencies: finished with status 'error'"]
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', "   command: /root/.local/share/virtualenvs/ks-nQj0AsbL/bin/python /root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-daar_xok/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel", '       cwd: None', '  Complete output (14 lines):', '  Traceback (most recent call last):', '    File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main', '      "__main__", mod_spec)', '    File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code', '      exec(code, run_globals)', '    File "/root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip/__main__.py", line 16, in &lt;module&gt;', '      from pip._internal.cli.main import main as _main  # isort:skip # noqa', '    File "/root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 5, in &lt;module&gt;', '      import locale', '    File "/usr/local/lib/python3.7/locale.py", line 16, in &lt;module&gt;', '      import re', '    File "/usr/local/lib/python3.7/re.py", line 143, in &lt;module&gt;', '      class RegexFlag(enum.IntFlag):', "  AttributeError: module 'enum' has no attribute 'IntFlag'", '  ----------------------------------------', "ERROR: Command errored out with exit status 1: /root/.local/share/virtualenvs/ks-nQj0AsbL/bin/python /root/.local/share/virtualenvs/ks-nQj0AsbL/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-daar_xok/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel Check the logs for full command output."]
</code></pre></div>
<p dir="auto">python 3.7<br>
sqlalchemy 1.3.14</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'ERROR: Command errored out with exit status 1:',
&quot;   command: /root/projects/py/custom-api/.venv/bin/python /root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-8yd681ix/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel&quot;,
'       cwd: None',
'  Complete output (14 lines):',
'  Traceback (most recent call last):',
'    File &quot;/usr/lib/python3.7/runpy.py&quot;, line 193, in _run_module_as_main',
'      &quot;__main__&quot;, mod_spec)',
'    File &quot;/usr/lib/python3.7/runpy.py&quot;, line 85, in _run_code',
'      exec(code, run_globals)',
'    File &quot;/root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip/__main__.py&quot;, line 16, in &lt;module&gt;',
'      from pip._internal.cli.main import main as _main  # isort:skip # noqa',
'    File &quot;/root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip/_internal/cli/main.py&quot;, line 5, in &lt;module&gt;',
'      import locale',
'    File &quot;/usr/lib/python3.7/locale.py&quot;, line 16, in &lt;module&gt;',
'      import re',
'    File &quot;/usr/lib/python3.7/re.py&quot;, line 143, in &lt;module&gt;',
'      class RegexFlag(enum.IntFlag):',
&quot;  AttributeError: module 'enum' has no attribute 'IntFlag'&quot;,
'  ----------------------------------------',
&quot;ERROR: Command errored out with exit status 1: /root/projects/py/custom-api/.venv/bin/python /root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-8yd681ix/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel Check the logs for full command output.&quot;"><pre class="notranslate"><code class="notranslate">'ERROR: Command errored out with exit status 1:',
"   command: /root/projects/py/custom-api/.venv/bin/python /root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-8yd681ix/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel",
'       cwd: None',
'  Complete output (14 lines):',
'  Traceback (most recent call last):',
'    File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main',
'      "__main__", mod_spec)',
'    File "/usr/lib/python3.7/runpy.py", line 85, in _run_code',
'      exec(code, run_globals)',
'    File "/root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip/__main__.py", line 16, in &lt;module&gt;',
'      from pip._internal.cli.main import main as _main  # isort:skip # noqa',
'    File "/root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 5, in &lt;module&gt;',
'      import locale',
'    File "/usr/lib/python3.7/locale.py", line 16, in &lt;module&gt;',
'      import re',
'    File "/usr/lib/python3.7/re.py", line 143, in &lt;module&gt;',
'      class RegexFlag(enum.IntFlag):',
"  AttributeError: module 'enum' has no attribute 'IntFlag'",
'  ----------------------------------------',
"ERROR: Command errored out with exit status 1: /root/projects/py/custom-api/.venv/bin/python /root/projects/py/custom-api/.venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-8yd681ix/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools&gt;=40.8.0' wheel Check the logs for full command output."
</code></pre></div>