0

I have a python file that does something. It calls into methods from a .pyc file as follows.

someFile.py

# do something 

from EvaluateT.read_input_data import *
print "imported"

# do something 

inputData = ReadInputData(someInputFile)
print "read"

# do something 

When I call the interpreter and type the following statements,

import read_input_data
help (read_input_data)

I see the following output:

CLASSES
     ReadInputData

class ReadInputData
 |  Methods defined here:
 |  
 |  __init__(self, inputFile)
 |  
 |  read_input_data(self)

But, when I run someFile.py, the output prints 'imported' and ignores everything after the 'inputData = ReadInputData(someInputFile)' statement. Why is this statement failing? What am I doing wrong?

4

1 回答 1

0

我安装了uncompyle2以将我的 .pyc 文件反编译为 .py 文件。它正在使用未正确安装的 numpy 和 scipy。我重新安装了所需的软件包,现在可以正常工作了!

于 2015-05-01T16:28:42.960 回答