Azure-Samples / azure-batch-samples

Azure Batch and HPC Code Samples
Other
261 stars 487 forks source link

python_tutorial_client.py won't run because of a ModuleNotFoundError #232

Closed sergei3000 closed 5 years ago

sergei3000 commented 6 years ago

I am trying to run python_tutorial_client.py and it says: ModuleNotFoundError: No module named 'common.helpers' I guess the problem is in this line: import common.helpers # noqa I tried installing the common module with pip install common, which didn't help although the library common got installed. It was confusing to find out that there is this library named common, but there's also azure.common from the Azure SDK. Anyways, the import in the python file did not start working even after installing azure.common and changing the non-working line to import azure.common.helpers or from azure.common import helpers (the last one gives ImportError: cannot import name 'helpers'). I am using Python 3.6.2 on Windows 10.

moonsooyoung commented 6 years ago

Hi Sergey,

have you checked if ../common/helpers.py exists?

Sooyoung

      1. 오후 10:49, Sergey Zakharov notifications@github.com 작성:

I am trying to run python_tutorial_client.py and it says: ModuleNotFoundError: No module named 'common.helpers' I guess the problem is in this line: import common.helpers # noqa I tried installing the common module with pip install common, which didn't help although the library common got installed. It was confusing to find out that there is this library named common, but there's also azure.common from the Azure SDK. Anyways, the import in the python file did not start working even after installing azure.common and changing the non-working line to import azure.common.helpers or from azure.common import helpers (the last one gives ImportError: cannot import name 'helpers').

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

sergei3000 commented 6 years ago

Yeas, it does exist

dbeaudoin60 commented 6 years ago

@sergei3000 , I have the same problem. Did you find a solution? Thx

sergei3000 commented 6 years ago

@dbeaudoin60 I just renamed the folder in the project from common to something else, and changed the corresponding references to it in the code accordingly.

dbeaudoin60 commented 6 years ago

Thank, I will try that.

dbeaudoin60 commented 6 years ago

@sergei3000 Thank you, I will try that.

alfpark commented 5 years ago

Closing as this issue is old and there's been no update. Please re-open if you continue to see issues.