Skip to content

Issues with hard-coded .cache location #113

Description

@JonoYang

I've created an AppImage of scancode.io and I run into the following error when I try to run it:

  File "/tmp/.mount_scancoM6DHdp/usr/share/scancodeio/scanpipe/pipes/resolve.py", line 32, in <module>
    from python_inspector.resolve_cli import resolver_api
  File "/tmp/.mount_scancoM6DHdp/usr/lib/python3.8/dist-packages/python_inspector/resolve_cli.py", line 16, in <module>
    from python_inspector import utils_pypi
  File "/tmp/.mount_scancoM6DHdp/usr/lib/python3.8/dist-packages/python_inspector/utils_pypi.py", line 1649, in <module>
    CACHE = Cache()
  File "<attrs generated init python_inspector.utils_pypi.Cache>", line 3, in __init__
  File "/tmp/.mount_scancoM6DHdp/usr/lib/python3.8/dist-packages/python_inspector/utils_pypi.py", line 1609, in __attrs_post_init__
    os.makedirs(self.directory, exist_ok=True)
  File "/tmp/.mount_scancoM6DHdp/usr/lib/python3.8/os.py", line 213, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/tmp/.mount_scancoM6DHdp/usr/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '.cache'

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