Error AttributeError


I’ve a issue with function import, someone know why when I try to import a function def customized in code editor get as error

    _pyease_string_types = (str,)
  File "workspace://Python4Capella/utilities/", line 50, in getAbsolutePath
    except ImportError:
AttributeError: 'NoneType' object has no attribute 'getLocation'
\anaconda3\lib\site-packages\pandas\core\strings\", line 236, in _validate
    raise AttributeError("Can only use .str accessor with string values!")
AttributeError: Can only use .str accessor with string values!

Thanks in advance

I think you are tying to concatenate something that is not a str to a str. For instance:

a = 1
print('value ' + a)

it should be:

a = 1
print('value ' + str(a))
1 Like