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

Issue with parallelization #2

Open
drewhogg opened this issue Nov 17, 2021 · 1 comment
Open

Issue with parallelization #2

drewhogg opened this issue Nov 17, 2021 · 1 comment

Comments

@drewhogg
Copy link

Hello. I'm trying to use LUDA on a set of URLs. Due to environmental/ use case constraints, I am running the code as a package rather than with Docker. I'm running into this:

AttributeError: 'DistanceMatrix' object has no attribute '__create_matrix_distance'

I can remove the multiprocessing part and the code will run. Any insight?

Thanks!

@JordanGarzon
Copy link
Contributor

Hi,

Sorry for the late answer. Yes you can run the code without the multiprocessing part. It should work.

Abou the issue, you're trying to access a private method. Python is doing name mangling
( read more here https://www.afternerd.com/blog/python-private-methods/)

If you really want to access it just do:

your_obj._DistanceMatrix__get_argument_create_matrix(a,b)

Hope it helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants