Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • sch sch
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bram Daams
  • schsch
  • Issues
  • #19
Closed
Open
Issue created Feb 10, 2020 by Bram Daams@bramOwner

request error on ubuntu 14 machines

Ubuntu 14.04 comes with Python 3.4.3 and gives the following error when a check is to be created:

Traceback (most recent call last):
  File "/usr/local/bin/sch", line 9, in <module>
    load_entry_point('SmartCronHelper==0.1', 'console_scripts', 'sch')()
  File "/usr/local/lib/python3.4/dist-packages/sch.py", line 157, in run
    check = health_checks.new_check(job)
  File "/usr/local/lib/python3.4/dist-packages/hc.py", line 388, in new_check
    json=data
  File "/usr/lib/python3/dist-packages/requests/api.py", line 88, in post
    return request('post', url, data=data, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'
Assignee
Assign to
Time tracking