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 2021/02/08 14:37:32 UTC

[GitHub] [airflow] nttdriva opened a new issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

nttdriva opened a new issue #14134:
URL: https://github.com/apache/airflow/issues/14134


   **Apache Airflow version**: 2.0.0
   
   **Environment**: Python 3.7
   
   **What happened**: 
   
   ```
   Something bad has happened.
   Please consider letting us know by creating a bug report using GitHub.
    
   Python version: 3.7.9
   Airflow version: 2.0.0
   Node: 0f52efb20ebe
   -------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/auth.py", line 34, in decorated
       return func(*args, **kwargs)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/decorators.py", line 97, in view_func
       return f(*args, **kwargs)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/decorators.py", line 60, in wrapper
       return f(*args, **kwargs)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/views.py", line 1887, in tree
       .limit(num_runs)
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3373, in all
       return list(self)
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
       cursor.close()
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
       with_traceback=exc_tb,
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
       raise exception
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
       rows = [proc(row) for row in fetch]
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
       rows = [proc(row) for row in fetch]
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 588, in _instance
       populators,
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
       dict_[key] = getter(row)
     File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1723, in process
       return loads(value)
   ValueError: unsupported pickle protocol: 5
   ```
   
   **How to reproduce it**:
   
   It happened moving from Python 3.8 to Python 3.7
   
   
   **Anything else we need to know**:
   
   We are using Nomad + Docker to run Airflow
   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

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


   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.

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



[GitHub] [airflow] kaxil closed issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #14134:
URL: https://github.com/apache/airflow/issues/14134


   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] borismo edited a comment on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
borismo edited a comment on issue #14134:
URL: https://github.com/apache/airflow/issues/14134#issuecomment-1029966223


   > clear the `dag_pickle` table
   
   Do you mean truncate the whole table @kaxil ?
   > sometime even `conf` column in `dag_run` table needs to be cleared
   
   Meaning:
   ```sql
   UPDATE dag_run
   SET conf = NULL
   ```
   ?
   
   Edit: by the way, I am getting the same error without changing the Python version.


-- 
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] borismo commented on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
borismo commented on issue #14134:
URL: https://github.com/apache/airflow/issues/14134#issuecomment-1029966223


   > clear the `dag_pickle` table
   
   Do you mean truncate the whole table @kaxil ?
   > sometime even `conf` column in `dag_run` table needs to be cleared
   
   Meaning:
   ```sql
   UPDATE dag_run
   SET conf = NULL
   ```
   ?


-- 
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] borismo edited a comment on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
borismo edited a comment on issue #14134:
URL: https://github.com/apache/airflow/issues/14134#issuecomment-1029966223


   > clear the `dag_pickle` table
   
   Do you mean truncate the whole table @kaxil ?
   > sometime even `conf` column in `dag_run` table needs to be cleared
   
   Meaning:
   ```sql
   UPDATE dag_run
   SET conf = NULL
   ```
   ?
   
   Edit: by the way, I am getting this error without changing the Python version.


-- 
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] atejano commented on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
atejano commented on issue #14134:
URL: https://github.com/apache/airflow/issues/14134#issuecomment-1029133058


   > You need to find all the Columns in all tables that store a Pickled value and clear them.
   > 
   > Example: clear the `dag_pickle` table, sometime even `conf` column in `dag_run` table needs to be cleared
   
   How do I find the Columns in the airflow tables that store a Pickled value?


-- 
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] kaxil commented on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #14134:
URL: https://github.com/apache/airflow/issues/14134#issuecomment-775330084


   You need to find all the Columns in all tables that store a Pickled value and clear them.
   
   Example: clear the `dag_pickle` table, sometime even `conf` column in `dag_run` table needs to be cleared


----------------------------------------------------------------
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.

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



[GitHub] [airflow] nttdriva commented on issue #14134: Airflow unsupported pickle protocol while moving from Python 3.8 to Python 3.7

Posted by GitBox <gi...@apache.org>.
nttdriva commented on issue #14134:
URL: https://github.com/apache/airflow/issues/14134#issuecomment-775261734


   Update: destroying the Postgres db seems to fix the issue. Is there a way to migrate without dropping the entire DB?


----------------------------------------------------------------
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.

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