You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm that this question/issue does not fall under any of the existing three issue types currently available.
General question or description
Hello,
I have recently started using Pycytominer for my image-based profiling experiments. While following the Pycytominer tutorial from the pipeline-examples https://github.com/cytomining/pipeline-examples#readme , I encountered an issue when running the profile.ipynb file.
Specifically, I am experiencing an AttributeError during the single-cell aggregation step. After executing the corresponding code block, I receive the following error message:
AttributeError: 'Connection' object has no attribute 'cursor'
I would appreciate any guidance or suggestions you might have to resolve this issue. The screenshots are attched below.
Thank you for your time and assistance.
Best regards,
Arka
The text was updated successfully, but these errors were encountered:
Thanks for bringing this up @arka2696 ! I was able to reproduce the error you're seeing and did some investigation here to determine what was happening. It seems that Pandas functionality has changed with pd.DataFrame.read_sql.
We should address this within Pycytominer in order to make sure it is compatible with the latest versions of Pandas. The following SO post illustrates possible ways to address this in addition to discussing why it happens generally: https://stackoverflow.com/a/77949093 .
That said, I believe this could be one possible workaround for you in the meantime:
d33bs
changed the title
Question: Regarding AttributeError: 'Connection' object has no attribute 'cursor'SingleCells parameter sqlite_file string results in AttributeError: 'Connection' object has no attribute 'cursor' with updated Pandas versions
Sep 16, 2024
Confirming this is still not working with later revisions of Pandas (specifically just tested Pandas 2.2.3). It may be worth exploring this solution within Pycytominer to gain compatibility https://stackoverflow.com/a/38333100 .
Confirmation
General question or description
Hello,
I have recently started using Pycytominer for my image-based profiling experiments. While following the Pycytominer tutorial from the pipeline-examples https://github.com/cytomining/pipeline-examples#readme , I encountered an issue when running the
profile.ipynb
file.Specifically, I am experiencing an
AttributeError
during the single-cell aggregation step. After executing the corresponding code block, I receive the following error message:I would appreciate any guidance or suggestions you might have to resolve this issue. The screenshots are attched below.
Thank you for your time and assistance.
Best regards,
Arka
The text was updated successfully, but these errors were encountered: