Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running xfuse #56

Open
archieenninful opened this issue Oct 8, 2022 · 1 comment
Open

Error running xfuse #56

archieenninful opened this issue Oct 8, 2022 · 1 comment

Comments

@archieenninful
Copy link

When I run the xfuse run my-config.toml --save-path my-run line, I ran into an error:

[2022-10-07 21:59:44,127] ℹ : Running xfuse version 0.2.1
[2022-10-07 21:59:44,146] ℹ : Using the following design table:
[2022-10-07 21:59:44,146] ℹ :
[2022-10-07 21:59:44,147] ℹ : | | section {1,2,3,4} |
[2022-10-07 21:59:44,147] ℹ : |----------+---------------------|
[2022-10-07 21:59:44,147] ℹ : | section1 | 1 |
[2022-10-07 21:59:44,147] ℹ : | section2 | 2 |
[2022-10-07 21:59:44,147] ℹ : | section3 | 3 |
[2022-10-07 21:59:44,147] ℹ : | section4 | 4 |
[2022-10-07 21:59:44,147] ℹ :
[2022-10-07 21:59:44,149] 🚨 ERROR : AttributeError: module 'os' has no attribute 'sched_getaffinity'
Traceback (most recent call last):
File "/Users/name/xfusestuff/xfusevenv/lib/python3.8/site-packages/xfuse/main.py", line 585, in run
_run(
File "/Users/name/xfusestuff/xfusevenv/lib/python3.8/site-packages/xfuse/run.py", line 64, in run
if (available_cores := len(os.sched_getaffinity(0))) < num_data_workers:
AttributeError: module 'os' has no attribute 'sched_getaffinity'

I searched this problem on stack overflow but it I didn't find a solution to it. Is there an alternative function to use in place of os.sched_getaffinity. I am using an M1 Macbook Air 2020, 16GB Ram.

@ludvb
Copy link
Owner

ludvb commented Oct 10, 2022

Hi, Can you try the fixes proposed in #51?

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

No branches or pull requests

2 participants