duo-labs / markdown-to-confluence

Syncs Markdown files to Confluence
Apache License 2.0
308 stars 68 forks source link

PyYaml failing #36

Open twolf-adc opened 2 months ago

twolf-adc commented 2 months ago

PyYaml is failing for me:

1.651 Collecting PyYAML==5.4.1 (from -r requirements.txt (line 8))
1.662   Downloading PyYAML-5.4.1.tar.gz (175 kB)
1.746   Installing build dependencies: started
3.558   Installing build dependencies: finished with status 'done'
3.559   Getting requirements to build wheel: started
3.702   Getting requirements to build wheel: finished with status 'error'
3.705   error: subprocess-exited-with-error
3.705
3.705   × Getting requirements to build wheel did not run successfully.
3.705   │ exit code: 1
3.705   ╰─> [54 lines of output]
3.705       running egg_info
3.705       writing lib3/PyYAML.egg-info/PKG-INFO
3.705       writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
3.705       writing top-level names to lib3/PyYAML.egg-info/top_level.txt
3.705       Traceback (most recent call last):
3.705         File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
3.705           main()
3.705         File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
3.705           json_out['return_val'] = hook(**hook_input['kwargs'])
3.705                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3.705         File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
3.705           return hook(config_settings)
3.705                  ^^^^^^^^^^^^^^^^^^^^^
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
3.705           return self._get_build_requires(config_settings, requirements=[])
3.705                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
3.705           self.run_setup()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
3.705           exec(code, locals())
3.705         File "<string>", line 271, in <module>
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 111, in setup
3.705           return distutils.core.setup(**attrs)
3.705                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
3.705           return run_commands(dist)
3.705                  ^^^^^^^^^^^^^^^^^^
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
3.705           dist.run_commands()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 964, in run_commands
3.705           self.run_command(cmd)
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 948, in run_command
3.705           super().run_command(command)
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 983, in run_command
3.705           cmd_obj.run()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 311, in run
3.705           self.find_sources()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 319, in find_sources
3.705           mm.run()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 540, in run
3.705           self.add_defaults()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 578, in add_defaults
3.705           sdist.add_defaults(self)
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 105, in add_defaults
3.705           super().add_defaults()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaults
3.705           self._add_defaults_ext()
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
3.705           self.filelist.extend(build_ext.get_source_files())
3.705                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3.705         File "<string>", line 201, in get_source_files
3.705         File "/tmp/pip-build-env-ekbad_os/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
3.705           raise AttributeError(attr)
3.705       AttributeError: cython_sources
3.705       [end of output]
3.705
3.705   note: This error originates from a subprocess, and is likely not a problem with pip.
3.791 error: subprocess-exited-with-error
3.791
3.791 × Getting requirements to build wheel did not run successfully.
3.791 │ exit code: 1
3.791 ╰─> See above for output.
3.791
3.791 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:8
--------------------
   6 |
   7 |     COPY requirements.txt ./
   8 | >>> RUN pip install --no-cache-dir -r requirements.txt
   9 |
  10 |     COPY . .
--------------------

Fix: https://github.com/duo-labs/markdown-to-confluence/pull/35

obriat commented 2 months ago

fix 35 :

cat << EOF > constraint.txt
Cython < 3.0

EOF

PIP_CONSTRAINT=constraint.txt pip install -r requirements.txt