2017-09-13 74 views
-1

代碼工作到昨天。突然有一個功能沒有被調用。python:函數未調用

所有腳本位於相同的文件夾中,調用腳本和調用腳本。

我已經把幾個打印語句放在_fbbqinsert中,並嘗試單獨運行_fbbqinsert,它工作正常。

該功能調用不正確。

enter image description here

腳本名稱:fbutils

import json 
import os, sys 
import pandas as pd 
import errno 
import time 
import glob 
import datetime 
import requests 
import fbbqfuns 

def _callXML(): 
    try: 
    print "Calling fbbqinsert" 
    fbbqfuns._fbbqinsert(report_run_id,cfg,file_name,0) 

    except: 
    exc_type, exc_value, exc_traceback = sys.exc_info() 
+0

你能提供堆棧跟蹤嗎? – AK47

回答

0

嘗試刪除*.pyc文件。

是的,這將是很高興看到堆棧跟蹤。