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

Import Error #1

Open
shawn0wang opened this issue Oct 19, 2023 · 6 comments
Open

Import Error #1

shawn0wang opened this issue Oct 19, 2023 · 6 comments

Comments

@shawn0wang
Copy link

Hi

when I run README demo, it shows error

from ._racplusplus import rac, test_rac, simple_pybind_io_test, _pairwise_euclidean_distance, _pairwise_cosine_distance
ImportError: dlopen(python3.8/site-packages/racplusplus/_racplusplus.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '___kmpc_fork_call'

Do you know how to fix it?
thanks

@shawn0wang
Copy link
Author

and when I run demo it show second error:
TypeError: rac(): incompatible function arguments. The following argument types are supported:
1. (arg0: numpy.ndarray[numpy.float64[m, n]], arg1: float, arg2: object, arg3: int, arg4: int, arg5: str) -> numpy.ndarray

dont know why

@porterehunley
Copy link
Owner

Hey thanks for bringing this to our attention. Do you mind sharing what architecture you're running on?

@shawn0wang
Copy link
Author

Sure
1、the first question I ran it on MacBook Pro M2

2、And second question about demo cant run, if I del param_name it will work, like:

not work

import racplusplus
X = np.random.random((10000, dim))
labels = racplusplus.rac(
X, max_merge_distance=.24, connectivity=None, batch_size=1000, no_processors=8, distance_metric="cosine"
)

work

import racplusplus
X = np.random.random((10000, dim))
labels = racplusplus.rac(
X, max_merge_distance=.24, None, 1000, 8, "cosine"
)
running on Linux

@porterehunley
Copy link
Owner

I think there might be some system conflicts with OpenMP, or maybe that wasn't packaged correctly. Looking into it!

@porterehunley
Copy link
Owner

In the meantime, can you try using this within a conda environment with openMP installed? I think that might be a temporary fix for you

@shawn0wang
Copy link
Author

shawn0wang commented Oct 24, 2023

I think I have openMP, maybe it's not the problem here ^-^:
image
image

and this is error log
image

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