Skip to content
This repository was archived by the owner on Nov 1, 2026. It is now read-only.
This repository was archived by the owner on Nov 1, 2026. It is now read-only.

Package does not load when installed as a .sublime-package: config.json opened with open() inside the zip #3

Closed

Description

@dpc00

Claude reports: installed from Package Control (which installs it as a .sublime-package zip), BioPythonUtils fails to load. Console on Sublime Text 4 build 4215:

File ".../Installed Packages/BioPythonUtils.sublime-package/BioPythonUtils.py", line 19, in <module>
    blast_formats = json.load(open(os.path.join(os.path.dirname(__file__), "config.json")))['blast_formats']
FileNotFoundError: [Errno 2] No such file or directory: '.../Installed Packages/BioPythonUtils.sublime-package/config.json'

open() cannot read a file inside a zip, so config.json is not found and none of the package's commands become available. Reading the file with sublime.load_resource("Packages/BioPythonUtils/config.json") would work for both a zipped and an unpacked package.

The bundled Bio code also prints SyntaxWarning: invalid escape sequence (for example Bio/GenBank/__init__.py line 150) on Python 3.14.

Checked: installed through the Package Control picker, removed again afterwards.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions