teneto icon indicating copy to clipboard operation
teneto copied to clipboard

AttributeError: module 'sqlalchemy.util' has no attribute 'dependencies' after importing TemporalNetworks()

Open Son17 opened this issue 3 years ago • 3 comments

Hi,

I am getting the below error when running the following:

!pip install teneto (on Google Cloud Platform JupyterLab in a Python 3 environment) from teneto import TemporalNetwork tnet = TemporalNetwork()

image

Any idea how to resolve this? Many thanks!

Son17 avatar May 05 '21 14:05 Son17

This related to us wanting to remove the neuroimaging dependencies but havn't done so yet.

For now, if you install pybids, i.e. pip install pybids this should go away. Let me know if it does not.

wiheto avatar May 05 '21 15:05 wiheto

Thank you for the fast response. Unfortunately, I continue to get the same error, even after installing pybids. I should also add that this only happens in JupyterLabs on GCP. It does not happen in Google Colab or on my local machine (all Python 3 environments), and for the latter two, I do not need to install pybids for teneto to work.

I was hoping to make teneto work on JupyterLabs as I need a high-RAM machine.

Is there anything else I could try? Many thanks.

Son17 avatar May 06 '21 10:05 Son17

You'll have to look up configuring sqlalchemy on GCP, as the issue is there.

However, if you are not using the neuroimaging functions, you can remove the importing of TenetoBIDS in the relevant places.

#74 Also please note that there is currently a big speed problem with teneto that I am trying to solve. This is about any function that uses the shortest paths especially (and will be even with high ram).

And fixing the importing structure to not import bids is on the todo list.

wiheto avatar May 06 '21 12:05 wiheto