Closed ryanleecode closed 5 years ago
It is the same strange condition as reported in the issue #148 I am fighting it for weeks now.
Will you, please, replace the function definition 'def get_app_data_dir()` in the file 'eosfactory/core/config.py' with the following version involving debugging information:
def get_app_data_dir():
if APP_DATA_DIR_SUDO[1] in __file__:
app_data_dir = APP_DATA_DIR_SUDO[0]
elif APP_DATA_DIR_USER[1] in __file__:
app_data_dir = APP_DATA_DIR_USER[0]
else:
app_data_dir = eosf_dir() + "/"
if app_data_dir and os.path.exists(app_data_dir):
return app_data_dir
msg = '''
__file__: {}
APP_DATA_DIR_SUDO[0]: {}
APP_DATA_DIR_SUDO[1]: {}
APP_DATA_DIR_USER[0]: {}
APP_DATA_DIR_USER[1]: {}
eosf_dir(): {}
'''.format(
__file__,
APP_DATA_DIR_SUDO[0], APP_DATA_DIR_SUDO[1],
APP_DATA_DIR_USER[0], APP_DATA_DIR_USER[1],
eosf_dir())
raise errors.Error( msg + '''
Cannot determine the directory of application data. Tried:
'{}',
'{}',
'{}'.
The chosen path is
'{}',
but it does not exist, seemingly.
'''.format(
APP_DATA_DIR_SUDO[0], APP_DATA_DIR_USER[0], eosf_dir() + "/",
app_data_dir),
translate=False)
Run python3 -m eosfactory.config.
The new edition v.3.1.0 fixes the issue, hopefully.
Trying to install the latest master branch on Linux, having issues, see below.