apache / apache/ponymail-foal

migrate.py does not work on macos

Open
#158 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
45
Forks
23
PR merge metrics
No merged PRs in 30d

Description

The migrate script does not work on macos (Catalina, Python 3.9.7):

- os.sched_getaffinity() does not exist
- if that is commented out, it fails with:
File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'weakref' object

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading migrate.py and reproducing the failure on macOS Catalina with Python 3.9.7, checking the os.sched_getaffinity() call and the multiprocessing traceback reported here. Done means the migration script runs successfully on macOS without either reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.