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

Builds failing due to old openssl version #242

Open
Simplemente3d opened this issue Dec 14, 2023 · 0 comments
Open

Builds failing due to old openssl version #242

Simplemente3d opened this issue Dec 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Simplemente3d
Copy link

Describe the bug
On May 2023 urllib3 stopped supporting OpenSSL versions older than 1.1.1.
The current test image is using
openssl version
OpenSSL 1.0.2g 1 Mar 2016

This causes build issues when initiating tests:

E
======================================================================
ERROR: continuousprint (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: continuousprint
Traceback (most recent call last):
  File "/opt/python/3.7.13/lib/python3.7/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/opt/python/3.7.13/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/smartin015/continuousprint/continuousprint/__init__.py", line 4, in <module>
    import octoprint.plugin
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/octoprint/plugin/__init__.py", line 22, in <module>
    from octoprint.plugin.core import Plugin, PluginInfo, PluginManager  # noqa: F401
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/octoprint/plugin/core.py", line 36, in <module>
    from octoprint.util import sv, time_this, to_unicode
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/octoprint/util/__init__.py", line 36, in <module>
    from octoprint.util.connectivity import ConnectivityChecker  # noqa: F401
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/octoprint/util/connectivity.py", line 9, in <module>
    from octoprint.util.net import resolve_host, server_reachable
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/octoprint/util/net.py", line 11, in <module>
    import requests
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/home/travis/virtualenv/python3.7.13/lib/python3.7/site-packages/urllib3/__init__.py", line 42, in <module>
    "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2g  1 Mar 2016'. See: https://github.com/urllib3/urllib3/issues/2168
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
The command "coverage run -m unittest discover -p "*_test.py"" exited with 1.
Done. Your build exited with 1.

Python or OpenSSL versions need to be bumped to fix the problem.

Browser logs:
Build log
https://app.travis-ci.com/github/smartin015/continuousprint/jobs/615061017

Additional context
Add any other context about the problem here.

@Simplemente3d Simplemente3d added the bug Something isn't working label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant