Code Monkey home page Code Monkey logo

Comments (2)

stefanzarembinski avatar stefanzarembinski commented on July 20, 2024

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.

from eosfactory.

stefanzarembinski avatar stefanzarembinski commented on July 20, 2024

The new edition v.3.1.0 fixes the issue, hopefully.

from eosfactory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.