Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new deploy problem #421

Open
Alpha-Dan opened this issue Nov 20, 2024 · 1 comment
Open

new deploy problem #421

Alpha-Dan opened this issue Nov 20, 2024 · 1 comment

Comments

@Alpha-Dan
Copy link

Alpha-Dan commented Nov 20, 2024

Hi,

I deploy a custom snappass (just html and css refresh) in 1.5.1 snappass version in docker.
But now when I want to redeploy my docker I have a lot of error bevause I think the new deploy use 1.6.1 dependency and some package are not compatible with the 1.5.1 version.

I don't find the project on dockerhub.
How I can fix that ?

`9.598 Installed /usr/local/lib/python3.8/site-packages/zipp-3.21.0-py3.8.egg
9.606 Searching for MarkupSafe>=2.1.1
9.606 Reading https://pypi.org/simple/MarkupSafe/
10.29 Downloading https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz#sha256=ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0
10.41 Best match: markupsafe 3.0.2
10.41 Processing markupsafe-3.0.2.tar.gz
10.42 Writing /tmp/easy_install-hhjh5icu/markupsafe-3.0.2/setup.cfg
10.42 Running markupsafe-3.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-hhjh5icu/markupsafe-3.0.2/egg-dist-tmp-5_s430f6
10.47 Traceback (most recent call last):
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 152, in save_modules
10.47     yield saved
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 193, in setup_context
10.47     yield
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 254, in run_setup
10.47     _execfile(setup_script, ns)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 43, in _execfile
10.47     exec(code, globals, locals)
10.47   File "/tmp/easy_install-hhjh5icu/markupsafe-3.0.2/setup.py", line 8, in <module>
10.47     open('AUTHORS.rst').read()),
10.47 ImportError: cannot import name 'CCompilerError' from 'setuptools.errors' (/usr/local/lib/python3.8/site-packages/setuptools/errors.py)
10.47
10.47 During handling of the above exception, another exception occurred:
10.47
10.47 Traceback (most recent call last):
10.47   File "setup.py", line 3, in <module>
10.47     setup(
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
10.47     return distutils.core.setup(**attrs)
10.47   File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
10.47     dist.run_commands()
10.47   File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
10.47     self.run_command(cmd)
10.47   File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
10.47     cmd_obj.run()
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/install.py", line 67, in run
10.47     self.do_egg_install()
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/install.py", line 117, in do_egg_install
10.47     cmd.run(show_deprecation=False)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 408, in run
10.47     self.easy_install(spec, not self.no_deps)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 650, in easy_install
10.47     return self.install_item(None, spec, tmpdir, deps, True)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 697, in install_item
10.47     self.process_distribution(spec, dist, deps)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 744, in process_distribution
10.47     distros = WorkingSet([]).resolve(
10.47   File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 766, in resolve
10.47     dist = best[req.key] = env.best_match(
10.47   File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1051, in best_match
10.47     return self.obtain(req, installer)
10.47   File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1063, in obtain
10.47     return installer(requirement)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 669, in easy_install
10.47     return self.install_item(spec, dist.location, tmpdir, deps)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 695, in install_item
10.47     dists = self.install_eggs(spec, download, tmpdir)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
10.47     return self.build_and_install(setup_script, setup_base)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1162, in build_and_install
10.47     self.run_setup(setup_script, setup_base, args)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
10.47     run_setup(setup_script, args)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 257, in run_setup
10.47     raise
10.47   File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
10.47     self.gen.throw(type, value, traceback)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 193, in setup_context
10.47     yield
10.47   File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
10.47     self.gen.throw(type, value, traceback)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 164, in save_modules
10.47     saved_exc.resume()
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 139, in resume
10.47     raise exc.with_traceback(self._tb)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 152, in save_modules
10.47     yield saved
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 193, in setup_context
10.47     yield
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 254, in run_setup
10.47     _execfile(setup_script, ns)
10.47   File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 43, in _execfile
10.47     exec(code, globals, locals)
10.47   File "/tmp/easy_install-hhjh5icu/markupsafe-3.0.2/setup.py", line 8, in <module>
10.47     open('AUTHORS.rst').read()),
10.47 ImportError: cannot import name 'CCompilerError' from 'setuptools.errors' (/usr/local/lib/python3.8/site-packages/setuptools/errors.py)
------
failed to solve: process "/bin/sh -c python setup.py install &&     chown -R snappass $APP_DIR &&     chgrp -R snappass $APP_DIR" did not complete successfully: exit code: 1`
@atalakey4work
Copy link

@yurushao can you please help with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants