[英]Cloning github repositories and importing them to a file throws an decoding error
[英]Importing github repositories on travis
我正在尝试在travis构建中导入github存储库。 我是通过打电话来做的
install:
- pip install -r requirements.txt
在.travis.yml
。 我的需求文件如下所示:
git+ssh://git@github.com/my_account/repository_test.git@development
git+ssh://git@github.com/my_account/repository_test_ii.git@development
这似乎行得通,因为当我将pip freeze
调用时,两个存储库都被列出。 但是,当我这样做时:
import repository_test
import repository_test_ii
第二次导入失败。 两个github仓库都有一个正确的setup.py文件,我可以在本地安装所有文件而不会出现任何问题。 我用尽了一些东西来检查。
我认为问题可能在于我的github存储库,我怀疑该模块可能是以略微不同的名称导入的。 我怎么检查这个? 我还能检查什么?
问题是我在我的github存储库中缺少__init__.py文件,因此无法导入它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.