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

getting ImportError: attempted relative import with no known parent package #75

Closed
devsrm opened this issue May 9, 2019 · 3 comments
Closed

Comments

@devsrm
Copy link

devsrm commented May 9, 2019

[root@abc cvpysdk]# python
Python 3.7.3 (default, May 8 2019, 06:21:13)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.

from cvpysdk.commcell import Commcell
Traceback (most recent call last):
File "", line 1, in
File "/fisc/backup/python/lib/python3.7/site-packages/cvpysdk-11.17-py3.7.egg/cvpysdk/cvpysdk.py", line 66, in
from .exception import SDKException
ImportError: attempted relative import with no known parent package

@spakhare
Copy link
Member

spakhare commented May 9, 2019

Hi @devsrm,

Can you please try to launch python shell from a different directory (different from python install path)? This might be because of the way python imports the libraries.

Thanks,
Sachin

@GoelJatin
Copy link
Contributor

Hi @devsrm ,

Is this issue resolved?

Please let us know if you need any help.

Regards,
Jatin

@devsrm
Copy link
Author

devsrm commented May 17, 2019 via email

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

3 participants