Skip to content

Badfish fails with ModuleNotFoundError: No module named 'src' #480

Description

@jmencak

Your System Details
Fedora 43

  • Python Version:
    3.14.2

  • Operating System:
    Linux

Describe the bug

$ python-3.14 -m venv venv
$ . bin/activate
(vend) $ pip install badfish

(venv) $ badfish
Traceback (most recent call last):
  File "/tmp/d/venv/bin/badfish", line 5, in <module>
    from badfish.main import main
  File "/tmp/d/venv/lib64/python3.14/site-packages/badfish/main.py", line 16, in <module>
    from src.badfish.helpers import get_now
ModuleNotFoundError: No module named 'src'
(venv) $ pip list|grep badfi
badfish          1.0.6

Changing "from src." to "from" in main.py and http_client.py fixes the issue, but gives me:

(venv) $ ./servers.sh
Traceback (most recent call last):
  File "/tmp/d/venv/bin/badfish", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/tmp/d/venv/lib64/python3.14/site-packages/badfish/main.py", line 2677, in main
    loop = asyncio.get_event_loop()
  File "/usr/lib64/python3.14/asyncio/events.py", line 715, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

Similar issues seen on Fedora 43 when using the copr badfish package or self-packaged rpm.

Currently, what works for me on Fedora 43 is badfish 1.0.5 with python 3.9 and "from src." removals as shown above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions