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

ModuleNotFoundError: No module named 'resource #21

Open
owais3901 opened this issue Feb 20, 2023 · 5 comments
Open

ModuleNotFoundError: No module named 'resource #21

owais3901 opened this issue Feb 20, 2023 · 5 comments

Comments

@owais3901
Copy link

Hello Owais Here, i run the demo.py and getting the error ..

"ModuleNotFoundError: No module named 'resource'"

also when i run the virtual_measurements file i am getting this error

"ModuleNotFoundError: No module named 'body_measurements'"

Thanks in advance : - ))

@muelea
Copy link
Owner

muelea commented Feb 28, 2023

Hi, I reinstalled the repo from scratch, but didn't get this error when running the example commands, including the demo.py for the regressor and for virtual measurements. Can you please explain when this happens so that I can reproduce it? Did you install the body measurements module from the SHPAY repo?

cd $SHAPY/mesh-mesh-intersection
export CUDA_SAMPLES_INC=$(pwd)/include
pip install -r requirements.txt
python setup.py install

@owais3901
Copy link
Author

@muelea when i run the setup.py file i am getting this error in command prompt
fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe' failed with exit code 2

@Faithyf
Copy link

Faithyf commented Mar 13, 2023

Have you solved this problem please?

@muelea
Copy link
Owner

muelea commented Mar 20, 2023

I assume you are trying to install SHAPY on windows. The installation and demo code has been tested on Ubuntu only. You need to change the setup.py according to your system.

@owais3901
Copy link
Author

@muelea yeah i am running SHAPY on windows

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