Problem to run Service catalog Factory in Python 3.10
faritvidalGL opened this issue · 0 comments
faritvidalGL commented
Please ensure you are using the latest version and have tried to run a validate command on your source files
I tried to run Service Catalg Factory version 0.101.1 with python version 3.10 and this was the error it gave
Steps to reproduce
-
use Image "aws/codebuild/standard:6.0" in environment
-
First Execution Fail
Buildspec=
version: 0.2
phases:
install:
runtime-versions:
python: 3.10
commands:
- pip install aws-service-catalog-factory==0.101.1
build:
commands:
- servicecatalog-factory --info generate .
artifacts:
files:
- '*'
- '**/*'
name: BuildOutput
- Adding upgrade in commands
version: 0.2
phases:
install:
runtime-versions:
python: 3.10
commands:
- pip install --upgrade pip
- pip install aws-service-catalog-factory==0.101.1
build:
commands:
- servicecatalog-factory --info generate .
artifacts:
files:
- '*'
- '**/*'
name: BuildOutput
Expected results
OUTPUT STEP 2
note: This error originates from a subprocess, and is likely not a problem with pip
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
[Container] 2023/09/27 14:07:53 Command did not exit successfully pip install aws-service-catalog-factory==0.101.1 exit status 1
[Container] 2023/09/27 14:07:53 Phase complete: INSTALL State: FAILED
[Container] 2023/09/27 14:07:53 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: pip install aws-service-catalog-factory==0.101.1. Reason: exit status 1
Actual results
OUTPUT STEP 3
[Container] 2023/09/27 14:10:19 Running command pip install --upgrade pip
Requirement already satisfied: pip in /root/.pyenv/versions/3.10.12/lib/python3.10/site-packages (22.3.1)
Collecting pip
Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 28.6 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Successfully installed pip-23.2.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[Container] 2023/09/27 14:10:42 Running command pip install aws-service-catalog-factory==0.101.1
Collecting aws-service-catalog-factory==0.101.1
Downloading aws_service_catalog_factory-0.101.1.tar.gz (81 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.8/81.8 kB 1.3 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting PyYAML==5.4 (from aws-service-catalog-factory==0.101.1)
Downloading PyYAML-5.4.tar.gz (174 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.8/174.8 kB 5.4 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.12/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/root/.pyenv/versions/3.10.12/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/root/.pyenv/versions/3.10.12/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 318, in run
self.find_sources()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 326, in find_sources
mm.run()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run
self.add_defaults()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 586, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 113, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-848dql_2/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[Container] 2023/09/27 14:10:53 Command did not exit successfully pip install aws-service-catalog-factory==0.101.1 exit status 1
[Container] 2023/09/27 14:10:53 Phase complete: INSTALL State: FAILED
[Container] 2023/09/27 14:10:53 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: pip install aws-service-catalog-factory==0.101.1. Reason: exit status 1