8e26ba52245b12b2cc7e5d2f569ba346bfa59625 max Thu Nov 7 09:38:53 2024 -0800 fixing hubtools error, chmalee zoom diff --git src/utils/hubtools/hubtools src/utils/hubtools/hubtools index b6a9b93..8b82d03 100755 --- src/utils/hubtools/hubtools +++ src/utils/hubtools/hubtools @@ -670,31 +670,31 @@ logging.debug("Loading "+fname) return json.load(open(fname)) def cacheWrite(uploadCache, fname): logging.debug("Writing "+fname) json.dump(uploadCache, open(fname, "w"), indent=4) def uploadFiles(tdbDir, hubName): "upload files to hubspace. Server name and token can come from ~/.hubtools.conf " try: from tusclient import client except ModuleNotFoundError: installModule("tuspy") from tusclient import client - serverUrls = cfgOption("tusUrl", "https://hubspace.gi.ucsc.edu/files") + serverUrl = cfgOption("tusUrl", "https://hubspace.gi.ucsc.edu/files") cookies = {} cookieNameUser = cfgOption("wiki.userNameCookie", "wikidb_mw1_UserName") cookieNameId = cfgOption("wiki.loggedInCookie", "wikidb_mw1_UserID") apiKey = cfgOption("apiKey") if apiKey is None: errAbort("To upload files, the file ~/.hubtools.conf must contain a line like apiKey='xxx@yyy').\n" "Go to https://genome.ucsc.edu/cgi-bin/hgHubConnect#dev to get your apiKey value.") if not "@" in apiKey: errAbort("The apiKey value in ~/.hubtools.conf must contain an @ character.") cookieUser, cookieId = apiKey.split("@")