You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/15 14:30:08 UTC

[GitHub] [airflow] bab014 opened a new issue #22287: SFTP provider throwing import error for nacl

bab014 opened a new issue #22287:
URL: https://github.com/apache/airflow/issues/22287


   ### Apache Airflow Provider(s)
   
   sftp
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-sftp==2.5.0
   
   ### Apache Airflow version
   
   2.2.4 (latest released)
   
   ### Operating System
   
   Amazon Linux AMI (rhel fedora)
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   Just a basic install onto an Ec2 instance
   
   ### What happened
   
   Tried using the SFTPSensor. DAG was unable to import 
   ```python
   Broken DAG: [/rhome/bab084/airflow/dags/grab_files.py] Traceback (most recent call last):
     File "/rhome/bab084/.local/lib/python3.7/site-packages/nacl/bindings/__init__.py", line 16, in <module>
       from nacl.bindings.crypto_aead import (
     File "/rhome/bab084/.local/lib/python3.7/site-packages/nacl/bindings/crypto_aead.py", line 17, in <module>
       from nacl._sodium import ffi, lib
   ImportError: /rhome/bab084/.local/lib/python3.7/site-packages/nacl/_sodium.abi3.so: undefined symbol: crypto_core_ed25519_nonreducedscalarbytes
   ```
   
   ### What you think should happen instead
   
   I should be able to import the DAG without the error occuring
   
   ### How to reproduce
   
   simply
   ```python
   from airflow import DAG
   from airflow.providers.sftp.sensors.sftp import SFTPSensor
   
   from datetime import datetime
   
   
   default_args = {
       'depends_on_past': False,
       'start_date': datetime(2022,3,8)
   }
   
   with DAG(
       'quad_graphics_file_transfer',
       default_args=default_args,
       catchup=False,
       schedule_interval='@weekly',
   ) as dag:
   
       # checking if files exist
       connect_to_server = SFTPSensor(
           task_id='check-server-conn',
           sftp_conn_id='connection',
           path='/mft_prd/QuadGraphics/Atlas/incoming'
       )
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #22287: SFTP provider throwing import error for nacl

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #22287:
URL: https://github.com/apache/airflow/issues/22287#issuecomment-1068054121


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org