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

TypeError: sum() takes no keyword arguments #5

Closed
Heinz-Loepmeier opened this issue May 11, 2021 · 2 comments
Closed

TypeError: sum() takes no keyword arguments #5

Heinz-Loepmeier opened this issue May 11, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@Heinz-Loepmeier
Copy link

Hi Lukas,
I created a boundary vertex groups (with a selection of boundary vertices) and hit 'Geodesic distance'
and get the following error.

Computing Geodesic Distance using scipy
Python: Traceback (most recent call last):
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\operator.py", line 184, in execute
    heat_map_gen.generate(boundary_reader, obstacle_reader, heat_writer, distance_writer, self.heat_time_scale)
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\heat_map.py", line 304, in generate
    M, S, G, D = self.compute_laplacian(vertex_stiffness)
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\heat_map.py", line 171, in compute_laplacian
    A = np.fromiter(A_values(), dtype=float, count=numverts * numverts).reshape(numverts, numverts)
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\heat_map.py", line 170, in A_values
    yield 2.0 * sum((np.dot(Cnext[j, k, :] - C[j, k, :], Cnext[i, k, :] - C[i, k, :]) for k in range(numverts)), start=0.0)
TypeError: sum() takes no keyword arguments

location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\operator.py", line 184, in execute
    heat_map_gen.generate(boundary_reader, obstacle_reader, heat_writer, distance_writer, self.heat_time_scale)
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\heat_map.py", line 304, in generate
    M, S, G, D = self.compute_laplacian(vertex_stiffness)
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\heat_map.py", line 171, in compute_laplacian
    A = np.fromiter(A_values(), dtype=float, count=numverts * numverts).reshape(numverts, numverts)
  File "C:\Users\h\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\geodoodle-main\heat_map.py", line 170, in A_values
    yield 2.0 * sum((np.dot(Cnext[j, k, :] - C[j, k, :], Cnext[i, k, :] - C[i, k, :]) for k in range(numverts)), start=0.0)
TypeError: sum() takes no keyword arguments

location: <unknown location>:-1

No Complains or bug fixing request here, just curios and wanted to play around.
Is this on my side?

@lukas-toenne lukas-toenne added the duplicate This issue or pull request already exists label May 11, 2021
@lukas-toenne
Copy link
Owner

This is a problem with the python 3.7.7 version in Blender 2.92. I'm targeting 2.93, which uses python 3.9, so i recommend using the beta for testing.

@lukas-toenne
Copy link
Owner

I have removed the offending keyword and it should now work in Blender 2.92 again. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants