Skip to content

fix: NumPy 2.0 shim before spycy import in cypher tool - #28

Open
villelaitila wants to merge 1 commit into
softagram:mainfrom
villelaitila:fix/spycy-numpy2-shim
Open

villelaitila wants to merge 1 commit into
softagram:mainfrom
villelaitila:fix/spycy-numpy2-shim

Conversation

@villelaitila

Copy link
Copy Markdown
Contributor

Summary

Test Plan

  • Reproduced the crash via the tool's exact code path (SGraphCypherBackend/Executor) against a real model, verified the same path returns correct rows with the shim, using the installed unpatched spycy 0.0.3 + NumPy 2.2.5

spycy <= 0.0.3 references np.float_ (removed in NumPy 2.0), so
sgraph_cypher_query crashes on toInteger/toFloat/toString. Restore
the alias before importing sgraph.cypher/spycy; no-op on NumPy 1.x.
Remove once sgraph ships softagram/sgraph#191 or spycy releases
aneeshdurg/spycy#3.
@softagram-dev-dogfood

Copy link
Copy Markdown

Softagram Impact Report for pull/28 (head commit: 59d67a1)

TL;DR Arch. Impact: 📉 -2 | Changed code files: 1 | Directly impacted code files: 3

hide section button show section button give feedback button

New dependencies 😳

Kind User Used Dep. insights
🥶 Unseen external! src/profiles/claude_code.py External/Python/numpy

Regular new dependencies: 1 | Regular removed deps: 0

⭐ Change Overview

Showing the changed files, dependency changes and the impact - click for full size
(Open in Softagram Desktop for full details)

hide section button show section button give feedback button

🤖 AGENTS - machine-readable impact data (1 files changed, 3 impacted, +2/-0 deps)

Change overview

Head 59d67a116de1 vs base 439548f51abb. 1 code files changed. 3 unchanged files directly depend on the changed files (see Impacted files). Dependencies: 2 added, 0 removed. New external components: 1. Removed external components: 0.

Added dependencies (2)

from to type roles signal
sgraph-mcp-server/src/profiles/claude_code.py External/Python/numpy import prod→external new external component
sgraph-mcp-server/src/profiles/claude_code.py/ClaudeCodeProfile/register_tools sgraph-mcp-server/src/profiles/claude_code.py/ClaudeCodeProfile/var float_ var_ref prod→prod regular

Removed dependencies (0)

None.

Impacted files (3)

Unchanged files that directly depend on files changed in this PR - check them for behavioral impact. Grouped by changed file:

changed file directly impacted dependents
sgraph-mcp-server/src/profiles/claude_code.py 3: sgraph-mcp-server/tests/integration/test_include_descendants.py, sgraph-mcp-server/tests/integration/test_query_tools.py, sgraph-mcp-server/tests/unit/test_collect_deps.py

Complete data

[]

📄 Full report

Impact Report explained. Give feedback on this report to support@softagram.com

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

Successfully merging this pull request may close these issues.

1 participant