title: AWS cluster import own modules Import error in python
body: <p>I want to run a python project on a remote server (AWS cluster).</p>
  
  <p>In the project, there is a model ("model") in path project/folder2/model, in model.py I have df.write.parquet(parquetFileName).</p>
  
  <p>In order for the salves to have that "model" from "folder2" I am using setup from setuptools.</p>
  
  <p>This is my setup.py (path project/setup.py):</p>
  
  <pre><code>setup(
      name='dataFrameFromSpark',
      version='',
      packages=['project/config', 'project/folder2', 'project/folder3'],
      py_modules=['project/model1'],
      url='',
      license='',
      author='....',
      author_email='',
      description=''
  )
  </code></pre>
  
  <p>Before running main.py I type this line on the remote server:</p>
  
  <pre><code>python project/setup.py build &amp;&amp; python project/setup.py sdist &amp;&amp; python project/setup.py bdist_egg
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>ImportError: No module named folder2.model
  </code></pre>
  
  <p>It seems the slaves don't get the folders when I run the  "write to parquet" code.</p>
  
  <p>what can I do?</p>