clb6 / jarvis-cli

Jarvis command-line interface
Apache License 2.0
0 stars 0 forks source link

Getting weird warning when upgraded dateparser lib #3

Open mikehwang opened 7 years ago

mikehwang commented 7 years ago

Going from dateparser 0.4.0 to 0.5.0 forced a transient update on ruamel.yaml from 0.13.4 to 0.11.14. However, now I get this giant warning:

/home/dawd13r/anaconda3/lib/python3.5/site-packages/dateparser/conf.py:47: UnsafeLoaderWarning: 
The default 'Loader' for 'load(stream)' without further arguments can be unsafe.
Use 'load(stream, Loader=ruamel.yaml.Loader)' explicitly if that is OK.
Alternatively include the following in your code:

  import warnings
  warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)

In most other cases you should consider using 'safe_load(stream)'
  cls._yaml_data = load_yaml(data).pop('settings', {})
/home/dawd13r/anaconda3/lib/python3.5/site-packages/dateparser/languages/loader.py:46: UnsafeLoaderWarning: 
The default 'Loader' for 'load(stream)' without further arguments can be unsafe.
Use 'load(stream, Loader=ruamel.yaml.Loader)' explicitly if that is OK.
Alternatively include the following in your code:

  import warnings
  warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)

In most other cases you should consider using 'safe_load(stream)'
  data = yaml.load(data)

Rolling back ruamel.yaml to 0.11.14 seems to have fixed it.

mikehwang commented 7 years ago

Upgrade deatils going from 0.18.1 to 0.19.0 for jarvis-cli:

dawd13r@beast-one:~/oz/workspace/jarvis-cli$ pip install --upgrade jarvis-cli
Collecting jarvis-cli
  Downloading jarvis_cli-0.19.0-py3-none-any.whl
Requirement already up-to-date: click<7.0 in /home/dawd13r/anaconda3/lib/python3.5/site-packages (from jarvis-cli)
Collecting tabulate (from jarvis-cli)
  Using cached tabulate-0.7.7-py2.py3-none-any.whl
Requirement already up-to-date: validators<1.0.0 in /home/dawd13r/anaconda3/lib/python3.5/site-packages (from jarvis-cli)
Collecting requests (from jarvis-cli)
  Downloading requests-2.12.3-py2.py3-none-any.whl (575kB)
    100% |████████████████████████████████| 583kB 1.3MB/s 
Collecting dateparser<1.0.0 (from jarvis-cli)
  Using cached dateparser-0.5.0-py2.py3-none-any.whl
Requirement already up-to-date: decorator>=3.4.0 in /home/dawd13r/anaconda3/lib/python3.5/site-packages (from validators<1.0.0->jarvis-cli)
Requirement already up-to-date: six>=1.4.0 in /home/dawd13r/anaconda3/lib/python3.5/site-packages (from validators<1.0.0->jarvis-cli)
Requirement already up-to-date: jdatetime in /home/dawd13r/anaconda3/lib/python3.5/site-packages (from dateparser<1.0.0->jarvis-cli)
Collecting pytz (from dateparser<1.0.0->jarvis-cli)
  Downloading pytz-2016.10-py2.py3-none-any.whl (483kB)
    100% |████████████████████████████████| 491kB 1.3MB/s 
Collecting python-dateutil (from dateparser<1.0.0->jarvis-cli)
  Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Collecting regex (from dateparser<1.0.0->jarvis-cli)
Requirement already up-to-date: umalqurra in /home/dawd13r/anaconda3/lib/python3.5/site-packages (from dateparser<1.0.0->jarvis-cli)
Collecting tzlocal (from dateparser<1.0.0->jarvis-cli)
Collecting ruamel.yaml (from dateparser<1.0.0->jarvis-cli)
  Downloading ruamel.yaml-0.13.4-cp35-cp35m-manylinux1_x86_64.whl (534kB)
    100% |████████████████████████████████| 542kB 1.5MB/s 

Installing collected packages: tabulate, requests, pytz, python-dateutil, regex, tzlocal, ruamel.yaml, dateparser, jarvis-cli
  Found existing installation: tabulate 0.7.5
    Uninstalling tabulate-0.7.5:
      Successfully uninstalled tabulate-0.7.5
  Found existing installation: requests 2.11.1
    Uninstalling requests-2.11.1:
      Successfully uninstalled requests-2.11.1
  Found existing installation: pytz 2016.4
    DEPRECATION: Uninstalling a distutils installed project (pytz) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only part
ially uninstall the project.
    Uninstalling pytz-2016.4:
      Successfully uninstalled pytz-2016.4
  Found existing installation: python-dateutil 2.5.3
    Uninstalling python-dateutil-2.5.3:
      Successfully uninstalled python-dateutil-2.5.3
  Found existing installation: regex 2016.7.14
    Uninstalling regex-2016.7.14:
      Successfully uninstalled regex-2016.7.14
  Found existing installation: ruamel.yaml 0.11.14
    Uninstalling ruamel.yaml-0.11.14:
      Successfully uninstalled ruamel.yaml-0.11.14
  Found existing installation: dateparser 0.4.0
    Uninstalling dateparser-0.4.0:
      Successfully uninstalled dateparser-0.4.0
  Found existing installation: jarvis-cli 0.18.1
    Uninstalling jarvis-cli-0.18.1:
      Successfully uninstalled jarvis-cli-0.18.1
Successfully installed dateparser-0.5.0 jarvis-cli-0.19.0 python-dateutil-2.6.0 pytz-2016.10 regex-2016.11.21 requests-2.12.3 ruamel.yaml-0.13.4 tabulate-0.7.7 tzlocal-1.3