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

No module named removebg even if installed. #2

Closed
tanjh opened this issue Aug 7, 2019 · 1 comment · Fixed by #3
Closed

No module named removebg even if installed. #2

tanjh opened this issue Aug 7, 2019 · 1 comment · Fixed by #3
Labels
bug Something isn't working

Comments

@tanjh
Copy link

tanjh commented Aug 7, 2019

File "C:\Theodore\programFiles\Python27\Lib\site-packages\removebg_init_.py", line 1, in
from removebg.removebg import RemoveBg
ImportError: No module named removebg

【Solution】
change the package path in init.py can correct it.
from removebg.removebg import RemoveBg =>
from .removebg import RemoveBg

@theunkn0wn1
Copy link
Contributor

This is actually caused by a change in Python Interpreter's behavior between python2 and 3 where the behavior of import changed.

The simpler fix is to use the corresponding __future__ import to ensure the newer python3 behavior is used. This will work for versions 2.5 and onward.

I will submit a PR for this shortly.

@brilam brilam added the bug Something isn't working label Aug 20, 2019
@brilam brilam closed this as completed in #3 Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants