airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Reda (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-344) ImportError: No module named lockfile.pidlockfile
Date Tue, 19 Jul 2016 16:36:20 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Greg Reda updated AIRFLOW-344:
------------------------------
    Description: 
When setting up a clean install of airflow on ubuntu 14.04, I ran into the following error:

{code}
vagrant@vagrant-ubuntu-trusty-64:~$ airflow
[2016-07-19 15:37:41,839] {__init__.py:36} INFO - Using executor SequentialExecutor
[2016-07-19 15:37:41,912] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2016-07-19 15:37:41,929] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 5, in <module>
    from airflow.bin.cli import CLIFactory
  File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 17, in <module>
    from daemon.pidfile import TimeoutPIDLockFile
  File "/usr/local/lib/python2.7/dist-packages/daemon/pidfile.py", line 18, in <module>
    from lockfile.pidlockfile import PIDLockFile
ImportError: No module named lockfile.pidlockfile
{code}

This seems to be because Airflow includes python-daemon >= 2.1.1 as a dependency, but not
lockfile. It seems that some time before 2.1.1 python-daemon removed TimeoutPIDLockFile and
instead decided just to use lockfile.

Uninstalling python-daemon and reinstalling seemed to fix the issue, as python-daemon included
a lockfile dependency.

Not sure why PyPi wouldn't have pulled this down when resolving Airflow's python-daemon dependency,
but figured I'd open this issue in case other run into it in the future. It might make sense
for Airflow to explicitly require lockfile.

  was:
When setting up a clean install of airflow on ubuntu 14.04, I ran into the following error:

{code}
vagrant@vagrant-ubuntu-trusty-64:~$ airflow
[2016-07-19 15:37:41,839] {__init__.py:36} INFO - Using executor SequentialExecutor
[2016-07-19 15:37:41,912] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2016-07-19 15:37:41,929] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 5, in <module>
    from airflow.bin.cli import CLIFactory
  File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 17, in <module>
    from daemon.pidfile import TimeoutPIDLockFile
  File "/usr/local/lib/python2.7/dist-packages/daemon/pidfile.py", line 18, in <module>
    from lockfile.pidlockfile import PIDLockFile
ImportError: No module named lockfile.pidlockfile
{code}

This seems to be because Airflow includes python-daemon >= 2.1.1 as a dependency, but not
lockfile. It seems that some time before 2.1.1 python-daemon removed TimeoutPIDLockFile.

Uninstalling python-daemon and reinstalling seemed to fix the issue, as python-daemon included
a lockfile dependency.

Not sure why PyPi wouldn't have pulled this down when resolving Airflow's python-daemon dependency,
but figured I'd open this issue in case other run into it in the future. It might make sense
for Airflow to explicitly require lockfile.


> ImportError: No module named lockfile.pidlockfile
> -------------------------------------------------
>
>                 Key: AIRFLOW-344
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-344
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Greg Reda
>
> When setting up a clean install of airflow on ubuntu 14.04, I ran into the following
error:
> {code}
> vagrant@vagrant-ubuntu-trusty-64:~$ airflow
> [2016-07-19 15:37:41,839] {__init__.py:36} INFO - Using executor SequentialExecutor
> [2016-07-19 15:37:41,912] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
> [2016-07-19 15:37:41,929] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
> Traceback (most recent call last):
>   File "/usr/local/bin/airflow", line 5, in <module>
>     from airflow.bin.cli import CLIFactory
>   File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 17, in <module>
>     from daemon.pidfile import TimeoutPIDLockFile
>   File "/usr/local/lib/python2.7/dist-packages/daemon/pidfile.py", line 18, in <module>
>     from lockfile.pidlockfile import PIDLockFile
> ImportError: No module named lockfile.pidlockfile
> {code}
> This seems to be because Airflow includes python-daemon >= 2.1.1 as a dependency,
but not lockfile. It seems that some time before 2.1.1 python-daemon removed TimeoutPIDLockFile
and instead decided just to use lockfile.
> Uninstalling python-daemon and reinstalling seemed to fix the issue, as python-daemon
included a lockfile dependency.
> Not sure why PyPi wouldn't have pulled this down when resolving Airflow's python-daemon
dependency, but figured I'd open this issue in case other run into it in the future. It might
make sense for Airflow to explicitly require lockfile.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message