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

Install and import #2

Closed
Yuxin-Cui opened this issue Jun 17, 2022 · 3 comments
Closed

Install and import #2

Yuxin-Cui opened this issue Jun 17, 2022 · 3 comments

Comments

@Yuxin-Cui
Copy link

Dear there,

I have tried to test it, but was stuck at the import step. After run import portal under Jupyter lab. The following error message developed:


ModuleNotFoundError Traceback (most recent call last)
Input In [15], in <cell line: 1>()
----> 1 import portal

File C:\jlab_server\lib\site-packages\portal_init_.py:3, in
1 from future import absolute_import
----> 3 from .api import API, APIException
4 from ._version import version
6 all = ['API', 'APIException']

File C:\jlab_server\lib\site-packages\portal\api.py:4, in
1 #!/usr/bin/env python
2 from functools import wraps
----> 4 import cookielib
5 import HTMLParser
6 import json

ModuleNotFoundError: No module named 'cookielib'

I hav tried to fix it, by running:

import http.cookiejar
cookielib = http.cookiejar

But this issue remains the same.

I wonder whether you could help to fix it.

Thanks

@jiazhao97
Copy link
Collaborator

Hi there,

Thank you for your interest in our Portal package!

I wonder did you install our package with the command pip install portal? If so, the package you installed is https://github.com/jlopez/portal, instead of ours. If you want to try our package, please follow https://github.com/YangLabHKUST/Portal#installation to install our package.

Best,
Jia

@Yuxin-Cui
Copy link
Author

Thanks! I tried again using pip install portal-sc. The error message was:
image

@jiazhao97
Copy link
Collaborator

This error occurred during installing louvain package. The reason may be that setuptools>=58 does not support use_2to3 (see this link). Can you try pip install setuptools==57.5.0? Alternatively, you can try the following command to install Portal package:

git clone https://github.com/YangLabHKUST/Portal.git
cd Portal
conda env update --f environment.yml
conda activate portal

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

3 participants