# Open file-\>preference report error

**URL:** <https://discourse.psychopy.org/t/open-file-preference-report-error/21492>\
**Category:** Development\
**Tags:** ubuntu\
**Created:** [March 19, 2021, 10:02am UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492 "2021-03-19T10:02:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![disadone](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/disadone/32/14946_2.png) [@disadone](https://discourse.psychopy.org/u/disadone)\
**Post date:** [March 19, 2021, 10:02am UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492/1 "2021-03-19T10:02:17Z")

</div>

psychopy2021.1.3 installed by pip3  
Bug report while I open preference

Traceback (most recent call last):  
File “/usr/local/lib/python3.8/dist-packages/psychopy/app/themes/\_themes.py”, line 813, in \_loadBitmap  
im = wx.Image(filename)  
TypeError: Image(): arguments did not match any overloaded call:  
overload 1: too many arguments  
overload 2: argument 1 has unexpected type ‘NoneType’  
overload 3: argument 1 has unexpected type ‘NoneType’  
overload 4: argument 1 has unexpected type ‘NoneType’  
overload 5: argument 1 has unexpected type ‘NoneType’  
overload 6: argument 1 has unexpected type ‘NoneType’  
overload 7: argument 1 has unexpected type ‘NoneType’  
overload 8: argument 1 has unexpected type ‘NoneType’  
overload 9: argument 1 has unexpected type ‘NoneType’  
overload 10: argument 1 has unexpected type ‘NoneType’  
overload 11: argument 1 has unexpected type ‘NoneType’  
overload 12: argument 1 has unexpected type ‘NoneType’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/usr/local/lib/python3.8/dist-packages/psychopy/app/\_psychopyApp.py”, line 754, in showPrefs  
prefsDlg = PreferencesDlg(app=self)  
File “/usr/local/lib/python3.8/dist-packages/psychopy/app/preferencesDlg.py”, line 557, in **init**  
self.populatePrefs()  
File “/usr/local/lib/python3.8/dist-packages/psychopy/app/preferencesDlg.py”, line 733, in populatePrefs  
icon = self.app.iconCache.getBitmap(choice.Text)  
File “/usr/local/lib/python3.8/dist-packages/psychopy/app/themes/\_themes.py”, line 840, in getBitmap  
self.\_loadBitmap(name, theme, emblem=emblem, size=size)  
File “/usr/local/lib/python3.8/dist-packages/psychopy/app/themes/\_themes.py”, line 815, in \_loadBitmap  
raise FileNotFoundError("Failed to find icon name={}, theme={}, "  
FileNotFoundError: Failed to find icon name=FlowTop\_CompRight, theme=light, size=48, emblem=None

---

<div class="post-metadata">

**Author:** ![TParsons](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tparsons/32/8301_2.png) [@TParsons](https://discourse.psychopy.org/u/TParsons)\
**Post date:** [March 19, 2021, 3:40pm UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492/2 "2021-03-19T15:40:40Z")

</div>

I can see what the problem _might_ be, but what’s interesting is that it doesn’t cause any error for me. The icon it’s looking for is called `flowtop_compright.png` in the actual folder - so I’m guessing it’s because it’s looking for it with capital letters and therefore not finding it.

If you navigate to this location:  
`/usr/local/lib/python3.8/dist-packages/psychopy/app/Resources/light`  
and change the filename to match what’s in the error (`FlowTop_CompRight`), does it fix the problem? If so I’ll just rename the files for each theme in the repo and that should solve it for other `pip` users!

---

<div class="post-metadata">

**Author:** ![disadone](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/disadone/32/14946_2.png) [@disadone](https://discourse.psychopy.org/u/disadone)\
**Post date:** [March 21, 2021, 5:20am UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492/3 "2021-03-21T05:20:18Z")

</div>

Thank you! I made it !

---

<div class="post-metadata">

**Author:** ![itsdfish](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/itsdfish/32/43960_2.png) [@itsdfish](https://discourse.psychopy.org/u/itsdfish)\
**Post date:** [May 26, 2021, 4:41pm UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492/4 "2021-05-26T16:41:07Z")

</div>

I encountered this same problem. Capitalizing the names of the files fixed the problem. Given that his has happened at least twice, should an issue be submitted on GitHub?

Edit:

See also this [issue](https://discourse.psychopy.org/t/cant-access-preferences-or-run-experiments-on-ubuntu-20-04/22137/7)

---

<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:** [May 26, 2021, 4:56pm UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492/5 "2021-05-26T16:56:15Z")

</div>

The issue is fixed on GitHub since this commit: [BF Case Sensitivity on Linux · psychopy/psychopy@b52ba31 · GitHub](https://github.com/psychopy/psychopy/commit/b52ba31e0c9dbc187a2d2b7a932607884324b766#diff-f7e54a3a183cc568c4175c7382604d6631c1733e169593939943e44c025980f1)  
but that was 10 days after the most recent release. It will be included in 2021.2.0 in a few weeks time

---

<div class="post-metadata">

**Author:** ![itsdfish](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/itsdfish/32/43960_2.png) [@itsdfish](https://discourse.psychopy.org/u/itsdfish)\
**Post date:** [May 26, 2021, 4:56pm UTC](https://discourse.psychopy.org/t/open-file-preference-report-error/21492/6 "2021-05-26T16:56:56Z")

</div>

Much appreciated. Thanks for the update!
