Skip to content

Fix resource file loading and update Python compatibility - #2

Open
sbwiecko wants to merge 1 commit into
kimlab-cnu:mainfrom
sbwiecko:main
Open

Fix resource file loading and update Python compatibility#2
sbwiecko wants to merge 1 commit into
kimlab-cnu:mainfrom
sbwiecko:main

Conversation

@sbwiecko

Copy link
Copy Markdown

Overview

This PR fixes an out-of-the-box crash caused by the folder structure and updates the documentation to prevent installation headaches for new users.

Changes Made

  • Flattened Directory Structure: Moved all .xlsx, .ui, and .jpg files out of the Python subdirectory so they sit directly next to ImapDB_GUI.py. Because the script uses BASE = os.path.dirname(os.path.abspath(__file__)) to locate resources, this structural change allows the script to find its necessary files without requiring any code modifications.
  • Updated README.md: Changed the Python requirement from "3.9 and above" to "3.9 to 3.12". Attempting to install the environment on Python 3.13 currently fails due to a NumPy dependency error, so this note will save future users time when setting up their environment.

Next Steps

(Note: I am also planning to open a separate Issue to discuss a UX improvement for the FACS dropdown menu and ask a few questions about how the Total panels are aggregated!)

- Flattened the directory structure by moving UI, Excel, and image files out of the 'Python' subfolder. This allows ImapDB_GUI.py to find its dependencies using its native BASE path logic.
- Updated README.md to clarify that Python 3.13 is not supported due to NumPy compatibility issues, capping the recommended version at 3.12.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant