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 #209

Open
ERICPENGZ opened this issue Mar 9, 2020 · 1 comment
Open

ModuleNotFoundError #209

ERICPENGZ opened this issue Mar 9, 2020 · 1 comment

Comments

@ERICPENGZ
Copy link

ERICPENGZ commented Mar 9, 2020

Thank you for reporting an issue.

  • A description of the bug

    I can't import python file . But I have put them in hadoop hdfs.

  • Steps to reproduce

    This is my spec.yaml file .

name: ParameterServerForFL
queue: default
master:
files:
ApplicationMaster.py: ApplicationMaster.py
m_cnn: m_cnn.py
resources:
vcores: 1
memory: 512 MiB
script: |
python3 ApplicationMaster.py

When I run ApplicationMaster.py. I got ModuleNotFoundError problem. It 'cant import m_cnn

- Python 3.7.3
- Hadoop 2.7.3
- Skein latest version
@jcrist
Copy link
Owner

jcrist commented Mar 16, 2020

You're missing the .py suffix on m_cnn in the list of files. Try:

name: ParameterServerForFL
queue: default
master:
  files:
    ApplicationMaster.py: ApplicationMaster.py
    m_cnn.py: m_cnn.py
  resources:
    vcores: 1
    memory: 512 MiB
  script: |
    python3 ApplicationMaster.py

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