Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'region' from partially initialized module 'toolkit.utils' (most likely due to a circular import) #47

Closed
izhimahu opened this issue Aug 26, 2021 · 3 comments

Comments

@izhimahu
Copy link

image
请问有人能帮忙解决一下这个问题吗

@EavanLi
Copy link

EavanLi commented Sep 1, 2021

我也是。(在对updatenet进行my_test.py时出现的该问题)
我的解决办法是:
先cd ./toolkit/utils/
然后执行python setup.py build_ext --inplace这一步。
但是我看toolkit/utils/中没有setup.py文件,我是将pysot中的setup.py拷贝过来然后执行的python setup.py build_ext --inplace。

@HonglinChu
Copy link
Owner

https://github.com/STVIR/pysot ,如果有region的报错,是因为没有成功编译setup.py,具体可以参考pysot的的 Getting Help部分

@Whyrailgun
Copy link

image
请问我在编译setup.py后依然会有region的报错是为什么啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants