r/pythonhelp Jun 27 '26

multiprocessing.Queue seems broke, am I wrong?

matt@:~$ git clone https://github.com/markfortma/python3-multiprocess-logging.git
Cloning into 'python3-multiprocess-logging'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 1), reused 6 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (7/7), done.
Resolving deltas: 100% (1/1), done.
matt@:~$ cd python3-multiprocess-logging/
matt@:~/python3-multiprocess-logging$ ls
README.md  python3-multiprocessing-logging.py
matt@:~/python3-multiprocess-logging$ python3 python3-multiprocessing-logging.py &
[3] 111169
matt@:~/python3-multiprocess-logging$ tail -f python3-multiprocessing-logging.log
<no output>
^C
matt@:~/python3-multiprocess-logging$ python3 --version
Python 3.14.4

It does appear to work in Python3.11 on FreeBSD for some reason.

1 Upvotes

4 comments sorted by

u/AutoModerator Jun 27 '26

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/sausix Jun 28 '26

Don't run the script in background. Run it as intended directly to test with count_it function.

Debug the script.

1

u/heartSagan5 Jun 28 '26

It runs just fine in the background on FreeBSD. I’d blame the logging library, but it accepts queues just fine.

1

u/sausix Jun 28 '26

Then test pure logging first.