title: supervisord on python 3.5 and above
body: <p>I am trying to setup gunicorn+pythonflask+supervisord . i am new to this supervisord.i am running in python virtual environment. i ran the command sudo service supervisor restart after i ran sudo supervisorctl reread and i got the below error.</p>
  
  <p>I am using python 3.5.3 in linux debian. I installed supervisor using easy_install supervisor .
  the pip version is supervisor (4.0.4)</p>
  
  <p>this is my supervisor.service file</p>
  
  <pre><code>(poc) root@server1:/lib/systemd/system# cat supervisor.service
  [Unit]
  Description=Supervisor process control system for UNIX
  Documentation=http://supervisord.org
  After=network.target
  
  [Service]
  ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
  ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown
  ExecReload=/usr/bin/supervisorctl -c /etc/supervisor/supervisord.conf $OPTIONS reload
  KillMode=process
  Restart=on-failure
  RestartSec=50s
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>i ran supervisorectl reread i got the below error</p>
  
  <pre><code>  sudo supervisorctl reread
      Traceback (most recent call last):
        File "/usr/bin/supervisorctl", line 6, in &lt;module&gt;
          from pkg_resources import load_entry_point
        File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 3241, in &lt;module&gt;
          @_call_aside
        File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 3225, in _call_aside
          f(*args, **kwargs)
        File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
          working_set = WorkingSet._build_master()
        File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 583, in _build_master
          ws.require(__requires__)
        File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 900, in require
          needed = self.resolve(parse_requirements(requirements))
        File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 786, in resolve
          raise DistributionNotFound(req, requirers)
      pkg_resources.DistributionNotFound: The 'supervisor==3.3.1' distribution was not found and is required by the application
  </code></pre>
  
  <p>when i run /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf i got the same error as mentioned above.</p>
  
  <pre><code>cat /usr/bin/supervisorctl
  #!/usr/bin/python
  # EASY-INSTALL-ENTRY-SCRIPT: 'supervisor==3.3.1','console_scripts','supervisorctl'
  __requires__ = 'supervisor==3.3.1'
  import re
  import sys
  from pkg_resources import load_entry_point
  
  if __name__ == '__main__':
      sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
      sys.exit(
          load_entry_point('supervisor==3.3.1', 'console_scripts', 'supervisorctl')()
      )
  </code></pre>
  
  <p>please advise how to proceeds on this. is supervisor working on python 3.5 and above version
  I appreciate your suggestions</p>