# Failure to create a new monitor in the Monitor Center on a French computer

**URL:** <https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693>\
**Category:** Builder\
**Created:** [October 31, 2018, 10:28am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693 "2018-10-31T10:28:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [October 31, 2018, 10:28am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/1 "2018-10-31T10:28:11Z")

</div>

**OS** (e.g. Win10):  
**PsychoPy version** (e.g. 1.85.0):  
**Standard Standalone? (yes)**  
\*\*What are you trying to achieve?: Create a new monitor from monitor center

\*\*What did you try to make it work?: I opened the monitor center, created a new monitor called Mat, changed Screen Distance to 60 and saved it. Note that I have a French computer (looks like it is the problem).

**What specifically went wrong when you tried that?:**  
I got the following error message:

> Traceback (most recent call last):  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 566, in onChangeMonSelection  
> self.loadMonitor(self.currentMonName)  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 490, in loadMonitor  
> self.updateCalibList()  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 524, in updateCalibList  
> self.onChangeCalibSelection(event=-1)  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 587, in onChangeCalibSelection  
> self.ctrlScrPixHoriz.SetValue(locale.str(\_sizePix[0]))  
> File “C:\Program Files (x86)\PsychoPy2\lib\locale.py”, line 303, in str  
> return format(“%.12g”, val)  
> File “C:\Program Files (x86)\PsychoPy2\lib\locale.py”, line 196, in format  
> return \_format(percent, value, grouping, monetary, \*additional)  
> File “C:\Program Files (x86)\PsychoPy2\lib\locale.py”, line 202, in \_format  
> formatted = percent % value  
> TypeError: float argument required, not NoneType

\*\*UPDATE

I then restarted Psychopy and tried to open the Monitor Center again. It failed to open, I got this error message:

> v1.85.0  
> Traceback (most recent call last):  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\app\_psychopyApp.py”, line 518, in openMonitorCenter  
> None, ‘PsychoPy2 Monitor Center’)  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 210, in **init**  
> self.updateMonList()  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 503, in updateMonList  
> self.onChangeMonSelection(event=-1)  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 566, in onChangeMonSelection  
> self.loadMonitor(self.currentMonName)  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 490, in loadMonitor  
> self.updateCalibList()  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 524, in updateCalibList  
> self.onChangeCalibSelection(event=-1)  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 587, in onChangeCalibSelection  
> self.ctrlScrPixHoriz.SetValue(locale.str(\_sizePix[0]))  
> File “C:\Program Files (x86)\PsychoPy2\lib\locale.py”, line 303, in str  
> return format(“%.12g”, val)  
> File “C:\Program Files (x86)\PsychoPy2\lib\locale.py”, line 196, in format  
> return \_format(percent, value, grouping, monetary, \*additional)  
> File “C:\Program Files (x86)\PsychoPy2\lib\locale.py”, line 202, in \_format  
> formatted = percent % value  
> TypeError: float argument required, not NoneType

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [October 31, 2018, 2:42pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/2 "2018-10-31T14:42:58Z")

</div>

I found a workaround by creating a monitor in command line:

```auto
my_monitor = monitors.Monitor(name='mat_scaled')
my_monitor.setSizePix((1536,864))
my_monitor.setWidth(30)
my_monitor.setDistance(60)
my_monitor.saveMon()

```

I can now open the monitor center and see my newly created monitor with proper settings. However, Psychopy outputs the following error:

> Traceback (most recent call last):  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 745, in onChangeScrPixHoriz  
> self.currentMon.currentCalib[‘sizePix’][0] = newVal  
> TypeError: ‘tuple’ object does not support item assignment  
> Traceback (most recent call last):  
> File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 752, in onChangeScrPixVert  
> self.currentMon.currentCalib[‘sizePix’][1] = newVal  
> TypeError: ‘tuple’ object does not support item assignment

@jon Looks like there’s a bug in MonitorCenter.py. Happy to hear your thoughts!

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [October 31, 2018, 10:44pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/3 "2018-10-31T22:44:46Z")

</div>

> [@](#):
>
> > TypeError: ‘tuple’ object does not support item assignment

What happens if you provide a mutable list rather than an immutable tuple:

```
my_monitor.setSizePix([1536, 864])

```

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [November 1, 2018, 11:04am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/4 "2018-11-01T11:04:39Z")

</div>

I provided a mutable list and that solved the issue. Nevertheless, I still don’t understand why I can’t create a monitor from the Monitor Center. One thing I have noticed is that setting

`my_monitor.setWidth(34.7)`

generates 34,7 in the monitor center. I suspect the bug is due to a ‘.’ versus ‘,’ decimal problem. When I change my locale into English US, I don’t have any issue with the Monitor Center.

Any idea how to definitively solve this problem without using the above workarounds?  
Thank you so much for your help. Very much appreciated.

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [November 1, 2018, 10:41pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/5 "2018-11-01T22:41:25Z")

</div>

Ah! That second piece of info, that this is only am issue in some locales, is interesting. I guess this is caused by the loading of the JSON file (which is text) by the Monitor class. We used to use binary pickle files. These jsons are nicer for being more human readable but, like csv files, I guess they can be misinterpreted in the wrong locale

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [November 2, 2018, 7:34am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/6 "2018-11-02T07:34:19Z")

</div>

@jon what’s the lastest Psychopy release that used binary pickle files? My students are struggling with Psychopy at the moment because of this bug (I suspect it’s on every french computer given the locale thing)…  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [November 20, 2018, 4:08pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/7 "2018-11-20T16:08:52Z")

</div>

Sorry it took me a while to get to this one. The first problem looks like an issue with trying to format something into French numbering when it doesn’t yet have a number (None can’t be a French float).

The second issue turns wasn’t a locale problem but a genuine bug that we’ve apparently had for a while but I haven’t typed a number into that box for some time! It turns out that we now have these sizes in “tuples” instead of “lists” and they behave very slightly different (they aren’t mutable). So rather than  
`this[‘sizePix’][1] = newVal`  
we’ll need to do  
`this['sizePix'] = (this['sizePix'][0], newVal)`

A bit annoying but I believe I’ll be able to get a bug-fix release out with these soon.

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [November 22, 2018, 3:36pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/9 "2018-11-22T15:36:00Z")

</div>

@jon Great catch ! Let me know if you want me to test the bug fix on my (french) computer.

---

<div class="post-metadata">

**Author:** ![CoralieCreupelandt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/coraliecreupelandt/32/6954_2.png) [@CoralieCreupelandt](https://discourse.psychopy.org/u/CoralieCreupelandt)\
**Post date:** [November 29, 2018, 5:15pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/10 "2018-11-29T17:15:33Z")

</div>

Hi to both of you,

I have been experiencing similar problems with the Monitor Center and I am using a French computer too.  
My concern is that I cannot seem to be able to save a screen no matter how, even if I create a monitor in command line.  
Since I am kinda new to PsychoPy, I am not yet able to understand every detail of your discussion regarding “tuples” and “lists”.  
I did change the local on my computer in order to solve the “,” versus “.” issue but I don’t know if there is anything I can do right now besides waiting for the new bug-fix release?  
I need to calibrate my computer screen but I am a bit stuck if I cannot save any monitor to beggin with.

When I type the following code:

my\_monitor = monitors.Monitor(name=‘DellM783p’)  
my\_monitor.setSizePix((1200,1600))  
my\_monitor.setWidth(32.5)  
my\_monitor.setDistance(57)  
my\_monitor.saveMon()

I get this error message:

wx.\_core.wxAssertionError: C++ assertion “m\_count \> 0” failed at …\src\common\object.cpp(352) in wxRefCounter::DecRef(): invalid ref data count  
The above exception was the direct cause of the following exception:  
SystemError: \<class ‘wx.\_core.IdleEvent’\> returned a result with an error set

I really don’t know what to do…

Many thanks in advance for your answers!

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [November 29, 2018, 5:27pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/11 "2018-11-29T17:27:32Z")

</div>

I wonder if (either of) you could test the new 3.0.0b12 release? It will install alongside your older (PsychoPy2) versions. [https://github.com/psychopy/psychopy/releases/tag/3.0.0b12](https://github.com/psychopy/psychopy/releases/tag/3.0.0b12)

I’m fairly certain I’ve fixed the 2nd problem you were having, and the first one I can’t reproduce (maybe already fixed in previous version?)

thanks,  
Jon

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [November 30, 2018, 8:14am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/12 "2018-11-30T08:14:13Z")

</div>

@jon Ok so I’ve just tested the new release. Unfortunately, the first problem is not solved.  
I first opened the monitor center and created a new monitor called Test\_Jon and got the following error message:

 ![Spec_monitor](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/3/7/3763b0460666a2991bfeeda80519c6ff3fcadcc1.png)

And then ran this simple script :

> from **future** import division  
> from psychopy import core, data, event, visual, gui  
> import numpy as np  
> import os  
> from psychopy import logging
> 
> win = visual.Window([800,600], fullscr=False,  
> monitor=‘Test\_Jon’, color=[128,128,128], colorSpace=‘rgb255’, units=‘deg’)
> 
> Test = visual.TextStim(win=win, ori=0,  
> text=u’Test monitor center’,  
> pos=[0, 0],  
> color=[0,0,0], colorSpace=u’rgb255’, height = 1.)
> 
> Test.draw()  
> win.flip()  
> core.wait(1.)
> 
> #Shutting down:  
> win.close()  
> core.quit()

and got the following error message :

 ![run_script](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/9/e95762f8ccf280702210475c13298c4618cc2305.png)

I then opened the monitor center again and discovered that my monitor info has not been saved (see screen capture).

I then tried to replicate the bug on another french computer running windows 10. I opened the monitor center, created a new monitor and saved it. Same error message, and this time I couldn’t open the monitor center anymore (I had to delete the .json and .calib files).

If you want I can give you access to a french computer via TeamViewer or VPN. I have tried to solve the issue myself but I can’t find the bug.

---

<div class="post-metadata">

**Author:** ![CoralieCreupelandt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/coraliecreupelandt/32/6954_2.png) [@CoralieCreupelandt](https://discourse.psychopy.org/u/CoralieCreupelandt)\
**Post date:** [December 4, 2018, 10:01am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/13 "2018-12-04T10:01:55Z")

</div>

Hi,

Sorry for the delay!

I’ve just tested the 3.0.0b12 release on my Dell computer and I have been able to properly add and save new monitors direcly from the monitor center. It seems to be working fine for me. I don’t get any error message regarding the monitor center. It also saves the “.” decimal format correctly, even when I no longer switch my locale to the english format. Thank you very much @jon.

I don’t know why it still isn’t working for you @Servant_Mathieu.  
Just let me know if I can help but I don’t know what might differ between our computers.

I have also tested the v1.90.1 version on my personnal Mac computer instead of my professional Dell one (I did not have the chance to do it sooner) and it actually works fine.

The only thing with the 3.0.0b12 version that I have noticed so far by running my pretty basic scripts, is that there is a problem with some specific characters such as the right single quotation mark " ’ " or apostrophe, and letters with accent marks which are massively used in French.

Do you know how I could easily solve this problem?

Here is the exact error message:

> Traceback (most recent call last):  
> File “C:\Users\creupelandt\Documents\PokornyTask\Contrast\AvecCroix\Pokorny\_Delta\_Cross\_Clean.py”, line 214, in   
> consigne = visual.TextStim(w, height=30, font=“Arial”, color=“White”, text=“Vous allez participer à une tâche durant laquelle vous allez voir 4 carrés.\n\nDurant chaque essai, un des 4 quatre carré va brièvement changer de luminosité.\n\nNous vous demandons d’appuyer sur le clavier numérique (touches 1, 2, 4, 5) pour indiquer quel carré parmi les 4 a effectivement changé. \n\nAppuyez sur la barre d’espace pour commencer.”)  
> File “C:\Program Files (x86)\PsychoPy3\_PY2\lib\site-packages\psychopy\visual\text.py”, line 209, in **init**  
> self.setText(text, log=False)  
> File “C:\Program Files (x86)\PsychoPy3\_PY2\lib\site-packages\psychopy\visual\text.py”, line 354, in setText  
> setAttribute(self, ‘text’, text, log)  
> File “C:\Program Files (x86)\PsychoPy3\_PY2\lib\site-packages\psychopy\tools\attributetools.py”, line 141, in setAttribute  
> setattr(self, attrib, value)  
> File “C:\Program Files (x86)\PsychoPy3\_PY2\lib\site-packages\psychopy\tools\attributetools.py”, line 32, in **set**  
> newValue = self.func(obj, value)  
> File “C:\Program Files (x86)\PsychoPy3\_PY2\lib\site-packages\psychopy\visual\text.py”, line 327, in text  
> text = str(text) # make sure we have unicode object to render  
> File “C:\Program Files (x86)\PsychoPy3\_PY2\lib\site-packages\future\types\newstr.py”, line 102, in **new**  
> return super(newstr, cls). **new** (cls, value)  
> UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 22: ordinal not in range(128)

Thanks!

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [December 10, 2018, 5:34pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/14 "2018-12-10T17:34:46Z")

</div>

@CoralieCreupelandt Could detail the steps you followed to save new monitors directly from the monitor center? Did you try to call the newly created monitor from a script (this is actually where the bug happens most of the time). Did you use the PY2 or PY3 version?  
I have tested the new Psychopy (PY2) version on 3 computers (with a french locale and windows 10), and also asked my french colleagues to conduct this test on their computers. None of us could use the monitor center (there was either a bug when saving the monitor from the monitor center, or a bug when calling the newly created monitor in a script).  
Regarding your character problem, try adding u right before a string object (exemple: u"problème")

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [December 27, 2018, 10:47am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/15 "2018-12-27T10:47:04Z")

</div>

@jon Coralie tested the new release with an english locale. The monitor center cannot be used with a french locale (see bugs that I reported previously).

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [December 28, 2018, 12:28pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/16 "2018-12-28T12:28:34Z")

</div>

OK, Mathieu, I managed to recreate this by switching to French on a windows box on Py2. (Mac in French was fine and I think Py3 on win10 was also fine - were you using PsychoPy3 on Python2 version?).

Looks like something broken in an upstream function to do the conversion (something in wx.locale) but I’ve inserted some extra checks to correct when the bug occurs. Anyway, I think that should fix it in next release.

You could test by replacing your calibTools.py file with this one:  
[https://raw.githubusercontent.com/peircej/psychopy/b623e1e95a285f8f36686dcbe0f313934964d2bf/psychopy/monitors/calibTools.py](https://raw.githubusercontent.com/peircej/psychopy/b623e1e95a285f8f36686dcbe0f313934964d2bf/psychopy/monitors/calibTools.py)

The full commit, with some other tweaks is at:  
[https://github.com/peircej/psychopy/commit/b623e1e95a285f8f36686dcbe0f313934964d2bf](https://github.com/peircej/psychopy/commit/b623e1e95a285f8f36686dcbe0f313934964d2bf)

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [December 29, 2018, 11:03am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/17 "2018-12-29T11:03:22Z")

</div>

Hi Jon, thanks for the help. I tried to replace calibTools in PsychoPy 1.85.6 and PsychoPy3 PY2 (you are right, I was using the PY2 version), but that didn’t solve the issue.

For example, when I started PsychoPy3 PY2, I got this error message:

 ![Captureinit](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/2/620616e7b535421362ba39e3cdbbbd014878023c.png)

I then created a monitor named Jon and saved it:

 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/7/d/7d6e313375340257f965f962f337a07313d8dac8.png)

When I opened again the monitor center, the newly created monitor is there but specifications have disappeared:

 ![Capture1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/0/600d91b94f3f81864635d6b1f2c81e80e5a71a85.png)

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [December 29, 2018, 2:15pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/18 "2018-12-29T14:15:12Z")

</div>

Don’t worry about those deprecation warnings for tooltipstring - they’re not a problem right now. The error has obviously disappeared, so that’s a good thing, but I’ll look again at what else could be wrong

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [January 2, 2019, 11:53am UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/19 "2019-01-02T11:53:09Z")

</div>

OK, I tracked that further bug down and I’m confident this is now fixed.

> <https://github.com/psychopy/psychopy/pull/2174/commits/0100d22f082abeef7d6003e0fb131c0c70e51c9f>

---

<div class="post-metadata">

**Author:** ![Servant\_Mathieu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/servant_mathieu/32/4637_2.png) [@Servant\_Mathieu](https://discourse.psychopy.org/u/Servant_Mathieu)\
**Post date:** [January 2, 2019, 12:47pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/20 "2019-01-02T12:47:28Z")

</div>

> [@jon](#):
>
> 2.7 the locale string to float conversion requires bytes not unicode, so screen info wasn’t saving correctly from thes

Champagne, the bug is fixed! Thank you so much Jon!

---

<div class="post-metadata">

**Author:** ![CoralieCreupelandt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/coraliecreupelandt/32/6954_2.png) [@CoralieCreupelandt](https://discourse.psychopy.org/u/CoralieCreupelandt)\
**Post date:** [January 22, 2019, 3:59pm UTC](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693/21 "2019-01-22T15:59:13Z")

</div>

Hi to both of you,

Unfortunatly, my own bug seems to persist 🙁

Whatever the local I used (before with PsychoPy2 version) or whatever I try with the new PyschoPy3 release, the gamma correction is not working properly for me.

Everytime I try to save the recorded luminance values after using the semi-auto mode, the values are not saved in the monitor center. Hence, I do not get any gamma function at all. I actually get the following error message:

```auto
Traceback (most recent call last):			
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\monitors\MonitorCenter.py", line 835, in onCalibGammaBtn			
    self.onCopyCalib(1) # create a new dated calibration			
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\monitors\MonitorCenter.py", line 659, in onCopyCalib			
    caption=_translate('Input text'))			
TypeError: TextEntryDialog(): arguments did not match any overloaded call:			
  overload 1: too many arguments			
  overload 2: 'defaultValue' is not a valid keyword argument			
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed			
			
The above exception was the direct cause of the following exception:			
			
SystemError: <class 'wx._core.IdleEvent'> returned a result with an error set			

```

Do you have any idea how I could fix this?  
It might be a stupid problem I could not figure out on my own. But I am really stuck without any gamma correction. Alternatively, I have been trying to figure out how to enter the values manually but have not been able to suceed so far. I might, again be missing something.

Could someone help me out?

Many many thanks,

Coralie

[Next page](https://discourse.psychopy.org/t/failure-to-create-a-new-monitor-in-the-monitor-center-on-a-french-computer/5693.md?page=2)
