https://prefect.io logo
d

Deepak Pilligundla

11/25/2022, 5:25 PM
Hello All , I'm getting the following error while registering the flows ,the only change from the previous successful is we have installed the teradatasql connector on the docker image
Copy code
Traceback (most recent call last):
    File "/usr/local/lib/python3.7/site-packages/prefect/cli/build_register.py", line 134, in load_flows_from_script
    namespace = runpy.run_path(abs_path, run_name="<flow>")
    File "/usr/local/lib/python3.7/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
    File "/usr/local/lib/python3.7/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
    File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
    File "/repo/src/flows/4i_ssp_bene_data_shrng/4i_ssp_bene_data_shrng.py", line 14, in <module>
    import snowflake.connector as sf
    File "/usr/local/lib/python3.7/site-packages/snowflake/connector/__init__.py", line 16, in <module>
    from .connection import SnowflakeConnection
    File "/usr/local/lib/python3.7/site-packages/snowflake/connector/connection.py", line 25, in <module>
    from . import errors, proxy
    File "/usr/local/lib/python3.7/site-packages/snowflake/connector/errors.py", line 18, in <module>
    from .telemetry_oob import TelemetryService
    File "/usr/local/lib/python3.7/site-packages/snowflake/connector/telemetry_oob.py", line 20, in <module>
    from .vendored import requests
    File "/usr/local/lib/python3.7/site-packages/snowflake/connector/vendored/requests/__init__.py", line 119, in <module>
    from ..urllib3.contrib import pyopenssl
    File "/usr/local/lib/python3.7/site-packages/snowflake/connector/vendored/urllib3/contrib/pyopenssl.py", line 50, in <module>
    import OpenSSL.SSL
    File "/usr/local/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
    File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 19, in <module>
    from OpenSSL.crypto import (
    File "/usr/local/lib/python3.7/site-packages/OpenSSL/crypto.py", line 3232, in <module>
    name="load_pkcs7_data",
  TypeError: deprecated() got an unexpected keyword argument 'name'
a

Anna Geller

11/25/2022, 8:08 PM
could be a version issue - can you try with lower or higher version of open SSL?
d

Deepak Pilligundla

11/28/2022, 2:31 PM
@Anna Geller if it is a prefect why would all other flows failed with the same error message , i can try lower the teradata sql version and give it try
@here^^
a

Anna Geller

11/28/2022, 5:48 PM
we have a code of conduct that we don't allow tagging anyone, especially not all here, I'd appreciate that. I understand this seems to be an urgent issue, for that we have paid support cs@prefect.io - here we do our best to answer as soon as we can can you provide more info about your openssl version? did you try upgrading or downgrading this package as recommended? clearly the traceback shows that this is openssl, not a Prefect error:
Copy code
File "/usr/local/lib/python3.7/site-packages/OpenSSL/crypto.py", line 3232, in <module>
    name="load_pkcs7_data",
  TypeError: deprecated() got an unexpected keyword argument 'name'
d

Deepak Pilligundla

11/29/2022, 8:24 PM
thank you anna
🙌 1
4 Views