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

NameError: name 'basestring' is not defined #141

Open
mayyphyokhaing opened this issue Apr 12, 2018 · 2 comments
Open

NameError: name 'basestring' is not defined #141

mayyphyokhaing opened this issue Apr 12, 2018 · 2 comments

Comments

@mayyphyokhaing
Copy link

When I run this ./run_toolbox.py, the following error is appeared:

Error importing settings.py. Check the error message below for more information.
If you haven't already, you'll want to copy one of the settings_local.template-*.py files
to settings_local.py and edit it to point to your caffe checkout. E.g. via:
$ cp models/caffenet-yos/settings_local.template-caffenet-yos.py settings_local.py
$ < edit settings_local.py >

Traceback (most recent call last):
File "./run_toolbox.py", line 7, in
import settings
File "/home/may/caffe/deep-visualization-toolbox/settings.py", line 218, in
if isinstance(caffevis_data_mean, basestring):
NameError: name 'basestring' is not defined

@armhzjz
Copy link

armhzjz commented Sep 9, 2018

Hello mayyphyokhaing,
I am having the same problem that you reported and unfortunatelly, I haven't been able to solve it.
Did you find a solution? If so, could you please post it here?

Thanks in advance!

@JemmyLuck
Copy link

basestring is not supported in python3,replace "basestring" with "str"

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