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

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

Open
Son17 opened this issue May 5, 2021 · 3 comments

Comments

@Son17
Copy link

Son17 commented May 5, 2021

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!

@wiheto
Copy link
Owner

wiheto commented May 5, 2021

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.

@Son17
Copy link
Author

Son17 commented May 6, 2021

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.

@wiheto
Copy link
Owner

wiheto commented May 6, 2021

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.

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

No branches or pull requests

2 participants