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

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it #60

Open
RoyAmoyal opened this issue Dec 27, 2022 · 1 comment

Comments

@RoyAmoyal
Copy link

Hey, I am trying to use


v = pptk.viewer(points)

for i in range (100):
    points = updates_points(points)
    v.clear()
    v.load(points)
...

but I am getting the next error ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it.

I already disabled my firewall but it doesn't help.

I installed the package with pip install on anaconda env.

what can I do?

@SuaveFool
Copy link

SuaveFool commented Jan 12, 2023

This is definitely no longer supported, hence no updates in 4 years. This seems to be an issue with the socket communication getting locked up somewhere. This seems to be independent of the number of points or size of data, it seems to happen after about 25 loads, but goes down to 14 if you have a wait() step as well.
For me the following will print to 25 every time before the viewer hangs:

import pptk
import numpy as np

points = np.zeros((1,3),np.float32)
v = pptk.viewer(points)

for i in range(50):
    print(i)
    v.clear()
    v.load(points)

You could try spawning a new instance every 10-20 loads, and use v.close() to clean up the previous one...

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