You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I usually use conda for python package management, and was unable to get past this error
With Conda
which python returns: /home/sam/anaconda3/envs/python352/bin/python
which clarifai returns: home/sam/anaconda3/envs/python352/bin/clarifai
python version 3.5.2
clarifai verison 2.0.29
Traceback (most recent call last):
File "clarifai.py", line 2, in <module>
from clarifai import rest
File "/home/sam/Code/barnes-staff-backend/clarifai.py", line 2, in <module>
from clarifai import rest
ImportError: cannot import name 'rest'
I switched to VirtualEnv and followed instructions that @robertwenquan gave on #66 exactly
With VirtualEnv
I get a slightly different but very similar error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sam/Code/barnes-staff-backend/clarifai.py", line 2, in <module>
from clarifai import rest
ImportError: cannot import name 'rest'
which python returns: /home/sam/Code/barnes-staff-backend/bb/bin/python which clarifai return: /home/sam/Code/barnes-staff-backend/bb/bin/clarifai
python version 3.5.2
clarifai verison 2.0.29
I have tried different versions of clarifai, and using different python executables and I am having no luck at all.
The text was updated successfully, but these errors were encountered:
please rename your filename from clarifai.py to something else. Your filename clarifai overrides the library name clarifai which breaks the clarifai.rest. That's why it couldn't find rest
I usually use conda for python package management, and was unable to get past this error
With Conda
which python
returns:/home/sam/anaconda3/envs/python352/bin/python
which clarifai
returns:home/sam/anaconda3/envs/python352/bin/clarifai
python version 3.5.2
clarifai verison 2.0.29
I switched to VirtualEnv and followed instructions that @robertwenquan gave on #66 exactly
With VirtualEnv
I get a slightly different but very similar error
which python
returns:/home/sam/Code/barnes-staff-backend/bb/bin/python
which clarifai
return:/home/sam/Code/barnes-staff-backend/bb/bin/clarifai
python version 3.5.2
clarifai verison 2.0.29
I have tried different versions of clarifai, and using different python executables and I am having no luck at all.
The text was updated successfully, but these errors were encountered: