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

[ALZ-179] Use CSV-based table insertion #149

Closed
wants to merge 1 commit into from
Closed

[ALZ-179] Use CSV-based table insertion #149

wants to merge 1 commit into from

Conversation

erichare
Copy link
Contributor

The root issue appears to be a failure to import Pandas - because Pandas can't be imported, the dictionary representing the new row can't get imported either.

I believe this has something to do with numpy / pandas and the respective 2.0 variations - i think synapseclient in Python depends on Pandas 2.0+, but Numpy 1.24.x... and there's an import failure.

Fixing the above would be the ideal solution - but until then, if we create a temp CSV on disk with the row to be inserted, we can pass a string filepath to it, and the synapse$Table method handles it!

@erichare erichare requested a review from JessterB July 24, 2024 21:50
@thomasyu888
Copy link
Member

See this Sage-Bionetworks/synapser#334. We are currently working on a new release

@erichare
Copy link
Contributor Author

See this Sage-Bionetworks/synapser#334. We are currently working on a new release

Fantastic. Thanks for the heads up. I'll keep this PR open as a possible workaround for the app in the meantime, but when the new release is ready we should be able to close this. CC @JessterB .

@erichare erichare marked this pull request as draft July 26, 2024 17:02
@erichare
Copy link
Contributor Author

Converting to draft as we wait for the fix on the backend CC @JessterB

@erichare
Copy link
Contributor Author

@JessterB i've verified the new release of synapser works (its only in staging right now), so we won't need this PR. code is here if for whatever reason we decide to come back to it, but ill close the PR for now.

@erichare erichare closed this Aug 19, 2024
@erichare erichare deleted the ALZ-179 branch August 19, 2024 19:58
@erichare erichare restored the ALZ-179 branch August 23, 2024 18:14
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.

2 participants