Skip to content

Fix for UnicodeDecodeError on Macbook - #2

Merged
smittix merged 1 commit into
smittix:mainfrom
unipheas:main
Jan 1, 2026
Merged

Fix for UnicodeDecodeError on Macbook#2
smittix merged 1 commit into
smittix:mainfrom
unipheas:main

Conversation

@unipheas

@unipheas unipheas commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

On first install using a MacBook M1 Max running Tahoe 26.3, after installing all dependencies through brew, I got this error when running sudo python3 intercept.py

Traceback (most recent call last):
  File "/Users/unipheas/Developer/intercept/intercept.py", line 28, in <module>
    main()
  File "/Users/unipheas/Developer/intercept/app.py", line 352, in main
    app.run(host=args.host, port=args.port, debug=args.debug, threaded=True)
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/flask/app.py", line 624, in run
    cli.load_dotenv()
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/flask/cli.py", line 760, in load_dotenv
    data |= dotenv.dotenv_values(default_path, encoding="utf-8")
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/main.py", line 393, in dotenv_values
    return DotEnv(
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/main.py", line 76, in dict
    resolve_variables(raw_values, override=self.override)
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/main.py", line 239, in resolve_variables
    for name, value in values:
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/main.py", line 85, in parse
    for mapping in with_warn_for_invalid_lines(parse_stream(stream)):
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/main.py", line 25, in with_warn_for_invalid_lines
    for mapping in mappings:
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/parser.py", line 173, in parse_stream
    reader = Reader(stream)
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/site-packages/dotenv/parser.py", line 64, in __init__
    self.string = stream.read()
  File "/Users/unipheas/.pyenv/versions/3.9.19/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 0: invalid start byte

This PR is adding load_dotenv=False to app.run to resolve UnicodeDecodeError

added `load_dotenv=False` to app.run to resolve UnicodeDecodeError
@smittix
smittix merged commit 0c67886 into smittix:main Jan 1, 2026
smittix pushed a commit that referenced this pull request Feb 10, 2026
…r-satellite

[WIP] Add test coverage for weather satellite decoder modules
crystalheeler added a commit to themuseum1960/intercept-test that referenced this pull request May 30, 2026
1. Strip dead code proactively when the trigger goes away (e.g. when we
   swap a bundled binary, remove the now-unused detection helpers/branches
   in the same change). Keep historical comments and CHANGELOG entries —
   those are documentation, not dead code.

2. Never tag or publish a release without explicit user confirmation. Push
   to main freely; the release tag is the explicit gate.

Both surfaced this session — smittix#1 needed a reminder during the gvanem→
MalcolmRobb swap; smittix#2 is to prevent future surprise releases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
smittix added a commit that referenced this pull request Jul 5, 2026
smittix pushed a commit that referenced this pull request Jul 5, 2026
…r-satellite

[WIP] Add test coverage for weather satellite decoder modules
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.

2 participants