Failed to load error message: can not open a .psyexp file

107 views
Skip to first unread message

florian...@gmail.com

unread,
Jul 22, 2014, 3:58:35 AM7/22/14
to psychop...@googlegroups.com
Hello,

I saved and closed a psyexp file on which I'm working yesterday but today I get the following error message:

Failed to load T:\RSM6\int_staircase_TRY.psyexp. Please send the following to th
e PsychoPy user list
Traceback (most recent call last):
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.77.00-py2.
7.egg\psychopy\app\builder\builder.py", line 4057, in fileOpen
    self.exp.loadFromXML(filename)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.77.00-py2.
7.egg\psychopy\app\builder\experiment.py", line 337, in loadFromXML
    self._doc=etree.XML(f.read(),parser)
  File "lxml.etree.pyx", line 2733, in lxml.etree.XML (src/lxml\lxml.etree.c:544
27)
  File "parser.pxi", line 1578, in lxml.etree._parseMemoryDocument (src/lxml\lxm
l.etree.c:82764)
  File "parser.pxi", line 1457, in lxml.etree._parseDoc (src/lxml\lxml.etree.c:8
1562)
  File "parser.pxi", line 965, in lxml.etree._BaseParser._parseDoc (src/lxml\lxm
l.etree.c:78232)
  File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDo
c (src/lxml\lxml.etree.c:74488)
  File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml\lxml.e
tree.c:75379)
  File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml\lxml.etr
ee.c:74712)
XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1


I found in the psychopy users that this error message/problem appears when we try to read psyexp file with a lower version of python, but I didn't upgrade python in the interval. Furthermore, I can read other psyexp file on which I have worked yesterday (running on the same psychopy version : 1.80.06).

Do somebody have a solution to this problem?

Thanks for your help!


Jonathan Peirce

unread,
Jul 23, 2014, 4:42:38 AM7/23/14
to psychop...@googlegroups.com
Somehow the file itself has become corrupt (it isn't a valid xml format file any more). You'll have to send it to us to look at.
Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/9c0ecb40-1f15-4b7c-8f19-a7790ec854f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk

florian...@gmail.com

unread,
Jul 24, 2014, 5:27:54 AM7/24/14
to psychop...@googlegroups.com
Hi Jon,

Here is the file.

I worked sometimes in the builder and sometimes in the code. Is this possible that modifying one while the other is opened corrupt the file?

Many thanks!
int_staircase_TRY.psyexp

Michael MacAskill

unread,
Jul 24, 2014, 5:16:46 PM7/24/14
to psychop...@googlegroups.com
Hi Florian,

Have you actually inspected the file? It is only 24 bytes in size and contains just the following text content:

Title 1,Title 2,Title 3

Somehow the .psyexp file has been edited and its contents replaced with that stuff. I can't imagine how Builder could have done that itself. Is it possible that files have just been renamed wrongly (i.e. in Windows Explorer or the Mac Finder etc)? In which case, maybe your .psyexp file is still there, but itself has a different name/extension?

In answer to your question, working in the Builder and also editing the generated code doesn't lead to this sort of thing. The .psyexp file itself is a list of XML content rather than Python code (i.e. lots of stuff contained in <> brackets). Builder doesn't provide a way for you to edit that directly.

Regards,

Michael

florian...@gmail.com

unread,
Jul 30, 2014, 4:41:07 AM7/30/14
to psychop...@googlegroups.com
Hi Michael,

Thanks for your answer.
I didn't found my file under another name somewhere on my computer. I certainly made a wrong manipulation but I can't figure out which one. I will rewrite my programme and see whether this happen again.

Best.

Florian
Reply all
Reply to author
Forward
0 new messages