0
이 특정 프로젝트에 JES를 사용하고 있는데 예, 눈에 찔 렸을 것입니다. 그 동안 JES에서 파이썬 패키지를로드 할 수없는이 흥미로운 문제가 붙어 있습니다. 이 전략이 효과가 있다고 전했습니다. 모든 JES 함수에 더미 정의를 제공 한 다음 Pycharm에서 프로젝트를 실행하면 모든 것이 "잘"작동합니다 (더미 함수의 예상되는 동작을 고려할 때). 나는 JES에서 어떤 일이 벌어지고 있는지 알 수 없다.오류가 발생했습니다 : non-function ('module'object)의 호출
JES에서 사용자 정의 파이썬 패키지를로드하는 데 경험이있는 사람이 있습니까?
프로젝트 구조
Project
main.py
MyPackage
__init__.py
allmygoodies
Main.py 위해서
""" getMediaPath() and setMediaPath() are built in JES functions """
import sys
setMediaPath() # Setting it to project root
sys.path.append(getMediaPath()) # Appending Project Root
sys.path.append(getMediaPath() + "MyPackage") # Also tried this
from MyPackage import * # Importing everything from package
myObject = MyObject()
오류
The error was:call of non-function ('module' object)
Inappropriate argument type.
An attempt was made to call a function with a parameter of an invalid type. This means that you did something such as trying to pass a string to a method that is expecting an integer.