Hi,
I have been working on a script for a personal project and I have reached a point in which I would like to experiment with incorporating noise. I have been able to execute all of the previous versions of my script without issue importing the ‘random’, ‘math’, ‘json’ modules without issues.
I have looked at a few previous forum posts as to how to install the ‘noise’ module but I have not had success on my end following those discussions. I cannot seem to get past this error:
Traceback (most recent call last):
File "<macro panel>", line 1
ModuleNotFoundError: No module named 'noise'
For context, my currently Glyphs 3 (3.3.1) is using the 3.11.9 (Glyphs) Python version on macOS 15.3.2. Perhaps unrelated but my system version of Python is 3.12.2, it was installed using Homebrew and for whatever reason I cannot seem to update any modules, let alone pip with receiving this error in my terminal:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
If you wish to install a non-brew-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-brew packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
[notice] A new release of pip is available: 24.0 -> 25.0.1
[notice] To update, run: python3.12 -m pip install --upgrade pip
Thank you in advance for any help and I apologize if this is a simple fix!