2016-07-22 3 views
0

내 자신의 Conda 패키지를 만들려고하지만 "테스트"단계에서 패키지를 "빌드"할 때 문제가 있습니다. 아래에 링크 된 튜토리얼을 따라 왔으며 각 파트가 무엇을하고 있는지 설명하는 데 매우 도움이되었습니다.Conda 빌드를 사용할 때 가져 오기 테스트가 실패했습니다.

http://kylepurdon.com/blog/packaging-python-basics-with-continuum-analytics-conda.html

모든 실패 때 테스트 단계에 도달 할 때까지 잘 구축 할 것으로 보인다.

===== testing package: py_tools-0.0.1-py27_0 ===== 
import: u'twitter_functions' 
Traceback (most recent call last): 
    File "/home/curtis/miniconda2/conda-bld/test-tmp_dir/run_test.py", line 26, in <module> 
    import twitter_functions 
ImportError: No module named twitter_functions 
TESTS FAILED: py_tools-0.0.1-py27_0 

다음은 빌드하려는 My Conda 패키지가있는 디렉토리가 포함 된 내 Github에 대한 링크입니다.

https://github.com/CurtLH/py_tools/tree/develop

당신은 내가 할 때 다른 곳에서 내 meta.yaml 파일 중 하나 또는 잘못된 뭘하는지 알아?

+0

링크를 추가하지 않았습니다. –

+0

죄송합니다. 방금 GitHub에 대한 링크를 포함하도록 편집했습니다. –

답변

2

패키지 디렉토리 이름을 src으로 지정 했으므로 올바른 가져 오기 테스트는 src.twitter_tools이됩니다. https://python-packaging.readthedocs.io/en/latest/index.html conda 패키지를 만들기 전에 python setup.py develop을 실행할 때 모든 것이 제대로 작동하는지 확인하는 것이 좋습니다.