[jira] [Commented] (AIRFLOW-916) Fix ConfigParser deprecation warning

2017-03-01 Thread Arthur Wiedmer (JIRA)

[ 
https://issues.apache.org/jira/browse/AIRFLOW-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15891058#comment-15891058
 ] 

Arthur Wiedmer commented on AIRFLOW-916:


This was breaking things for me on 2.7.13 on a local fresh install.

Let's revert.

> Fix ConfigParser deprecation warning 
> -
>
> Key: AIRFLOW-916
> URL: https://issues.apache.org/jira/browse/AIRFLOW-916
> Project: Apache Airflow
>  Issue Type: Improvement
>Affects Versions: 1.8.0
>Reporter: Jeremiah Lowin
>Assignee: Jeremiah Lowin
>Priority: Trivial
> Fix For: 1.9.0
>
>
> ConfigParser.readfp() is deprecated in favor of ConfigParser.read_file(), 
> according to warning messages



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (AIRFLOW-916) Fix ConfigParser deprecation warning

2017-03-01 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/AIRFLOW-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15891045#comment-15891045
 ] 

ASF subversion and git services commented on AIRFLOW-916:
-

Commit 7d95a0dca06505a224e43aa8f767ce8b7d15e99e in incubator-airflow's branch 
refs/heads/master from [~aoen]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=7d95a0d ]

Revert "[AIRFLOW-916] Remove deprecated readfp function"

This reverts commit ef6dd1b29b794c5e0fd4f2bc8422a386395950f5 which
broke webservers.


> Fix ConfigParser deprecation warning 
> -
>
> Key: AIRFLOW-916
> URL: https://issues.apache.org/jira/browse/AIRFLOW-916
> Project: Apache Airflow
>  Issue Type: Improvement
>Affects Versions: 1.8.0
>Reporter: Jeremiah Lowin
>Assignee: Jeremiah Lowin
>Priority: Trivial
> Fix For: 1.9.0
>
>
> ConfigParser.readfp() is deprecated in favor of ConfigParser.read_file(), 
> according to warning messages



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (AIRFLOW-916) Fix ConfigParser deprecation warning

2017-03-01 Thread Vijay Krishna Ramesh (JIRA)

[ 
https://issues.apache.org/jira/browse/AIRFLOW-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15890739#comment-15890739
 ] 

Vijay Krishna Ramesh commented on AIRFLOW-916:
--

this breaks things on python 2.7.10 for me:

{code}
Traceback (most recent call last):
  File 
"/Users/vijay/.pyenv/versions/2.7.10/lib/python2.7/site-packages/nose/loader.py",
 line 418, in loadTestsFromName
addr.filename, addr.module)
  File 
"/Users/vijay/.pyenv/versions/2.7.10/lib/python2.7/site-packages/nose/importer.py",
 line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
  File 
"/Users/vijay/.pyenv/versions/2.7.10/lib/python2.7/site-packages/nose/importer.py",
 line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/vijay/oss/incubator-airflow/tests/__init__.py", line 18, in 

from .configuration import *
  File "/Users/vijay/oss/incubator-airflow/tests/configuration.py", line 19, in 

from airflow import configuration
  File "/Users/vijay/oss/incubator-airflow/airflow/__init__.py", line 29, in 

from airflow import configuration as conf
  File "/Users/vijay/oss/incubator-airflow/airflow/configuration.py", line 792, 
in 
conf = AirflowConfigParser()
  File "/Users/vijay/oss/incubator-airflow/airflow/configuration.py", line 532, 
in __init__
self.read_string(parameterized_config(DEFAULT_CONFIG))
  File "/Users/vijay/oss/incubator-airflow/airflow/configuration.py", line 549, 
in read_string
self.read_file(StringIO.StringIO(string))
AttributeError: AirflowConfigParser instance has no attribute 'read_file'
{code}

> Fix ConfigParser deprecation warning 
> -
>
> Key: AIRFLOW-916
> URL: https://issues.apache.org/jira/browse/AIRFLOW-916
> Project: Apache Airflow
>  Issue Type: Improvement
>Affects Versions: 1.8.0
>Reporter: Jeremiah Lowin
>Assignee: Jeremiah Lowin
>Priority: Trivial
> Fix For: 1.9.0
>
>
> ConfigParser.readfp() is deprecated in favor of ConfigParser.read_file(), 
> according to warning messages



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (AIRFLOW-916) Fix ConfigParser deprecation warning

2017-02-26 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/AIRFLOW-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15884937#comment-15884937
 ] 

ASF subversion and git services commented on AIRFLOW-916:
-

Commit ef6dd1b29b794c5e0fd4f2bc8422a386395950f5 in incubator-airflow's branch 
refs/heads/master from [~jlowin]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=ef6dd1b ]

[AIRFLOW-916] Remove deprecated readfp function

ConfigParser.readfp() is deprecated in favor of
read_file()

Closes #2108 from jlowin/parser-deprecation


> Fix ConfigParser deprecation warning 
> -
>
> Key: AIRFLOW-916
> URL: https://issues.apache.org/jira/browse/AIRFLOW-916
> Project: Apache Airflow
>  Issue Type: Improvement
>Affects Versions: 1.8.0
>Reporter: Jeremiah Lowin
>Assignee: Jeremiah Lowin
>Priority: Trivial
> Fix For: 1.9.0
>
>
> ConfigParser.readfp() is deprecated in favor of ConfigParser.read_file(), 
> according to warning messages



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)