Skip to content

Using from tox #53

Description

@asmodehn

When using pyros-setup from some code running in tox (with site-packages), the following error happens :

     pyros_setup.configurable_import().configure().activate()
/usr/local/lib/python2.7/dist-packages/pyros_setup/__init__.py:92: in configure
    """)
/usr/local/lib/python2.7/dist-packages/pyros_config/confighandler.py:74: in configure_file
    os.makedirs(os.path.dirname(cfg_filename))
.tox/py27-indigo/lib/python2.7/os.py:157: in makedirs
    mkdir(name, mode)
E   OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/instance'

We need to investigate more deeply what is happening when a package under test in a tox venv tries to call pyros-setup, and how we should react...

Maybe it was just an issue of missing the pyros-setup dependency for tox usecase, but still we need to clarify the situation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions