# Error Starting ioHub server

**URL:** <https://discourse.psychopy.org/t/error-starting-iohub-server/9923>\
**Category:** Other\
**Created:** [November 18, 2019, 6:30pm UTC](https://discourse.psychopy.org/t/error-starting-iohub-server/9923 "2019-11-18T18:30:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiara\_Semenzin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chiara_semenzin/32/6308_2.png) [@Chiara\_Semenzin](https://discourse.psychopy.org/u/Chiara_Semenzin)\
**Post date:** [November 18, 2019, 6:30pm UTC](https://discourse.psychopy.org/t/error-starting-iohub-server/9923/1 "2019-11-18T18:30:51Z")

</div>

Hi,  
I have issues setting up a simple eyetracker experiment as the ioHub Server won’t start. I am working on Windows 7, 64bit, with the latest version of Psychopy 3 and Python 3.6.  
When running the command:

`io=launchHubServer(**config_file)`  
(where `config_file` is a python dictionary with the config specifications)

the program crashes with the following error:

```auto
Traceback (most recent call last):
  File "C:\Users\lscpuser\Desktop\manybabies1-psychopy-master\manybabies1_et.py", line 216, in <module>
    io=launchHubServer(**io_config)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\iohub\lazy_import.py", line 278, in __call__
    return obj(*args, **kwargs)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\iohub\client\connect.py", line 262, in launchHubServer
    return ioHubConnection(iohub_config)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\iohub\client\ __init__.py", line 295, in __init__
    raise RuntimeError('Error starting ioHub server')
RuntimeError: Error starting ioHub server
ioHub Server Process Completed With Code: 1

```

I have tried to print `self.iohub_status`, which simply returns `ioHub startup failed.` with no further text: this does not correspond to any line within the **init**.py file, so I am not sure of where the error might be coming from.

On the other hand, this does not happen when instead the command is called without any keyword argument, as in:

`io=launchHubServer()`

But in this way, the configuration file is the default one, and thus I am unable to run my experiment:

`{'monitor_devices': [{'Display': {'override_using_psycho_settings': False}}, {'Experiment': {}}, {'Keyboard': {}}, {'Mouse': {}}], 'global_event_buffer': 2048, 'udp_port': 9034, 'windows_msgpump_interval': 0.001, 'data_store': {'enable': False, 'filename': 'events', 'multiple_experiments': False, 'flush_interval': 32}, 'log_raw_kb_mouse_events': False, 'coverage_env_var': 'None'}`

Any idea of how I could solve this?  
Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![lspieser](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lspieser/32/6357_2.png) [@lspieser](https://discourse.psychopy.org/u/lspieser)\
**Post date:** [November 25, 2019, 5:08pm UTC](https://discourse.psychopy.org/t/error-starting-iohub-server/9923/2 "2019-11-25T17:08:32Z")

</div>

Hi everyone,  
I am trying to code my first experiment using eyetracking and iohub, and I have a similar problem. I am using Eyelink 1000 plus and windows 10 (64bits), with psychopy v3.2.4 (standalone for windows).  
I have just tried with the simple code:

```auto
from psychopy.iohub import launchHubServer
from psychopy.core import getTime, wait

iohub_config = {'eyetracker.hw.sr_research.eyelink.EyeTracker':
    {'name':'tracker',
    'model_name':'EYELINK 1000 DESKTOP',
    'networks_settings': '100.1.1.2',
    'runtime_settings':{'sampling_rate':500,
                        'track_eyes':'right'}
                        }}
    
io = launchHubServer(**iohub_config)
tracker = io.devices.tracker
t=tracker.runSetupProcedure()

```

And I got the following error message:

```auto
##### Running: C:\Users\Laure\Dropbox\supportFed\Garance_Francoise_Raphael\test_iohub_connection.py #####
Traceback (most recent call last):
  File "C:\Users\Laure\Dropbox\supportFed\Garance_Francoise_Raphael\test_iohub_connection.py", line 13, in <module>
    io = launchHubServer(**iohub_config)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\contrib\lazy_import.py", line 120, in __call__
    return obj(*args, **kwargs)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\iohub\client\connect.py", line 262, in launchHubServer
    return ioHubConnection(iohub_config)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\iohub\client\ __init__.py", line 296, in __init__
    raise RuntimeError('Error starting ioHub server')
RuntimeError: Error starting ioHub server
ioHub Server Process Completed With Code: 1

```

I have the same error message when I run ioHub selectTracker demo. But iohub demos using keyboard works, and sr-research demo using pylink also works.

Any idea what is happening and how to fix it ?  
Many thx

---

<div class="post-metadata">

**Author:** ![lspieser](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lspieser/32/6357_2.png) [@lspieser](https://discourse.psychopy.org/u/lspieser)\
**Post date:** [January 13, 2020, 9:57am UTC](https://discourse.psychopy.org/t/error-starting-iohub-server/9923/3 "2020-01-13T09:57:30Z")

</div>

Dear Chiara,  
I don’t know if you still need help on that but just for you to know, I am talking with Sol regarding this issue here: [Nothing happens after calling runSetupProcedure()](https://discourse.psychopy.org/t/nothing-happens-after-calling-runsetupprocedure/9885/12)  
Laure
