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

Question on Python version #1

Open
yangheeim opened this issue Jun 6, 2024 · 9 comments
Open

Question on Python version #1

yangheeim opened this issue Jun 6, 2024 · 9 comments

Comments

@yangheeim
Copy link

Hi! Thank you for sharing your code,
I would like to implement your code, but I've failed.

I've tried python3.7, 3.8, 3.9, 3.10
but every version results in errors..

I would really appreciate if you can give advice for this, Thanks!

@cemlyn007
Copy link
Contributor

Hi @yangheeim, I'll have a look tonight and see if I can update the branch. I suspect the problem is that dependencies have changed!

@yangheeim
Copy link
Author

Hi! Thank you for your response!
For your information, this is my trial log and environments!

Commands

conda create -n venv python=3.7 <3.8,3.9,3.10>
source activate venv
/anaconda_path/envs/venv/bin/pip install -r requirements1.txt -f https://download.pytorch.org/whl/torch_stable.html
/anaconda_path/envs/venv/bin/pip install -r requirements2.txt -f https://pytorch-geometric.com/whl/torch-1.5.0.html
/anaconda_path/envs/venv/bin/python3 -m scripts.segmentation.PointNet.run_pointnet_segmentation

Error

error mainly occured while importing torch_geometric saying 'No module something'

OS

cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Anaconda

conda -V
conda 23.5.2

@cemlyn007
Copy link
Contributor

I think I managed to have some luck after modifying the CPU requirements to pip install something! Would CPU requirements be enough for your exploration? I think I need some more time to get GPU requirements for CUDA 12!

@cemlyn007
Copy link
Contributor

@yangheeim please try the requirements in this fork. I was able to pip install them with Python 3.7 and was able to get past your torch_geometric missing import error however because I don't have any data to test on I can't properly test any further :(

@yangheeim
Copy link
Author

@cemlyn007 Hi! I will try implementing with CPU requirements then. thank you for your help! Also, are you or anyone in your group still working on the project related to this by any chances?

@cemlyn007
Copy link
Contributor

Maybe @amiralansary? Otherwise I don't think anyone else is working on applying deep learning (DL) to brains but most if not all of us are still working on DL applications

@yangheeim
Copy link
Author

I see thanks! :)

@yangheeim
Copy link
Author

@cemlyn007 Hi again! Sorry for bothering you again.
I tried the requirements in this fork as you said above with Python 3.7. However, I got the following error. Do you think it's negligible? Thanks so much!

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in jsmin setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@cemlyn007
Copy link
Contributor

Without more logging I can't see why jsmin had a problem on your machine, but since it's probably a dependency for the Django webserver, you could try removing it as a requirement?

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