Skip to content

New to these APIs cannot run because of missing VERSION package #77

@CAP-JForlow

Description

@CAP-JForlow

Hi --
New to Python, been programming in other languages for years...
I am trying to run the Python script to move workbooks. I have Python 3.10, but I am getting a message about VERSION not being defined (see below).
I tried doing a Pip install VERSION but that did not work.

Any ideas on how I can fix this?
Thanks
John

  1. Signing in to both sites to obtain authentication tokens
    Traceback (most recent call last):
    File "D:\TOL - Scripts\Data Sources\move_datasource_server.py", line 415, in
    main()
    File "D:\TOL - Scripts\Data Sources\move_datasource_server.py", line 382, in main
    source_auth_token, source_site_id, source_user_id = sign_in(source_server, source_username, source_password, source_site)
    File "D:\TOL - Scripts\Data Sources\move_datasource_server.py", line 138, in sign_in
    url = server + "/api/{0}/auth/signin".format(VERSION)
    NameError: name 'VERSION' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions