# \#logfiles

**URL:** https://discourse.psychopy.org/tag/logfiles/2.md

[Latest](https://discourse.psychopy.org/latest.md) · [Categories](https://discourse.psychopy.org/categories.md) · [Tags](https://discourse.psychopy.org/tags.md)

---

## [Keypresses not properly registered in the experiment (appearing within the .log-file not the .csv)](https://discourse.psychopy.org/t/keypresses-not-properly-registered-in-the-experiment-appearing-within-the-log-file-not-the-csv/44777)

<div class="topic-metadata">

**Author:** [@lara\_k](https://discourse.psychopy.org/u/lara_k)\
**Replies:** 9\
**Last updated:** [August 4, 2025, 4:30pm UTC](https://discourse.psychopy.org/t/keypresses-not-properly-registered-in-the-experiment-appearing-within-the-log-file-not-the-csv/44777 "2025-08-04T16:30:50Z")

</div>

OS (e.g. Win10): Win10 PsychoPy version (e.g. 2024.2.4 Py 3.8): 2024.1.4 Standard Standalone Installation? (y) If not then what?: Do you want it to also run online? (n) What are you trying to achieve?: I am current…

---

## [Recover CSV file from log file](https://discourse.psychopy.org/t/recover-csv-file-from-log-file/43985)

<div class="topic-metadata">

**Author:** [@ali\_alsheikh](https://discourse.psychopy.org/u/ali_alsheikh)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 9:59am UTC](https://discourse.psychopy.org/t/recover-csv-file-from-log-file/43985 "2025-02-28T09:59:56Z")

</div>

Hello everyone, I noticed some previous posts on this topic, but I couldn’t find a solution to my specific issue. Due to a human error, the ESC key was pressed at the end of the experiment, resulting in a log (.log) fil…

---

## [No csv file saved - scrape log file](https://discourse.psychopy.org/t/no-csv-file-saved-scrape-log-file/1973)

<div class="topic-metadata">

**Author:** [@jon](https://discourse.psychopy.org/u/jon)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 9:27am UTC](https://discourse.psychopy.org/t/no-csv-file-saved-scrape-log-file/1973 "2025-02-27T09:27:57Z")

</div>

A few people have found csv files not saving, combined with corrupt psydat files; a nasty combination that was occurring for a while (mostly this was seen in version 1.84). For those that need a workaround to extract d…

---

## [Adaption of variables in output/log files](https://discourse.psychopy.org/t/adaption-of-variables-in-output-log-files/43420)

<div class="topic-metadata">

**Author:** [@epreu](https://discourse.psychopy.org/u/epreu)\
**Replies:** 2\
**Last updated:** [February 17, 2025, 11:16am UTC](https://discourse.psychopy.org/t/adaption-of-variables-in-output-log-files/43420 "2025-02-17T11:16:46Z")

</div>

OS (e.g. Win10): Win10 PsychoPy version (e.g. 1.84.x): PsychoPy 2024.2.1post4 What are you trying to achieve?: I only want to save specific variables from my condition file to the logfile instead of all of them. What …

---

## [No launch for PsyhoPy 2023.2.3 - logfile included](https://discourse.psychopy.org/t/no-launch-for-psyhopy-2023-2-3-logfile-included/41550)

<div class="topic-metadata">

**Author:** [@dagmar.fraser](https://discourse.psychopy.org/u/dagmar.fraser)\
**Replies:** 3\
**Last updated:** [September 26, 2024, 11:57am UTC](https://discourse.psychopy.org/t/no-launch-for-psyhopy-2023-2-3-logfile-included/41550 "2024-09-26T11:57:51Z")

</div>

Hey, Some users have been messing with a previously reliable install of 2023.2.3 - it failed ot launch so I reinstalled. However it stills fails to launch… looks like they tried and aborted a 2024 install, have install…

---

## [Logfile recreation](https://discourse.psychopy.org/t/logfile-recreation/38421)

<div class="topic-metadata">

**Author:** [@Reut\_Peled](https://discourse.psychopy.org/u/Reut_Peled)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 3:53pm UTC](https://discourse.psychopy.org/t/logfile-recreation/38421 "2024-01-29T15:53:23Z")

</div>

hi, In my experiment subjects need to remember words and in the test phase to write them down using the keyboard. they write every word in the relevant textbox. there are 6 textboxes and in order to decide which textbo…

---

## [Turn off logging in builder](https://discourse.psychopy.org/t/turn-off-logging-in-builder/38085)

<div class="topic-metadata">

**Author:** [@taicmac](https://discourse.psychopy.org/u/taicmac)\
**Replies:** 1\
**Last updated:** [January 8, 2024, 10:06am UTC](https://discourse.psychopy.org/t/turn-off-logging-in-builder/38085 "2024-01-08T10:06:32Z")

</div>

What are you trying to achieve?: I want to enable only warning and error logs in the runner, using builder. What did you try to make it work? and what went wrong: I tried adding this in the “Before experiment” tab of …

---

## [CSV and psydat files are not created if the experiment runs until the end](https://discourse.psychopy.org/t/csv-and-psydat-files-are-not-created-if-the-experiment-runs-until-the-end/32550)

<div class="topic-metadata">

**Author:** [@Rani\_Amit\_Bar-On](https://discourse.psychopy.org/u/Rani_Amit_Bar-On)\
**Replies:** 2\
**Last updated:** [January 10, 2023, 1:13pm UTC](https://discourse.psychopy.org/t/csv-and-psydat-files-are-not-created-if-the-experiment-runs-until-the-end/32550 "2023-01-10T13:13:55Z")

</div>

OS: Win10 PsychoPy version: 2022.2.4 What are you trying to achieve?: I’m trying to get the csv and psydat files at the end of the session What did you try to make it work?: Issue 1: I only get the files if “Esc” is …

---

## [Save custom variables to .log file](https://discourse.psychopy.org/t/save-custom-variables-to-log-file/30734)

<div class="topic-metadata">

**Author:** [@Chris2358](https://discourse.psychopy.org/u/Chris2358)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 3:43pm UTC](https://discourse.psychopy.org/t/save-custom-variables-to-log-file/30734 "2022-09-07T15:43:07Z")

</div>

OS (e.g. Win10): Win10 PsychoPy version (e.g. 1.84.x): v2022.2.3 Standard Standalone? (y/n) If not then what?: y What are you trying to achieve?: Hi to all of you :slight\_smile:, I am building my experiment using t…

---

## [Saving output files to capture all response and their times?](https://discourse.psychopy.org/t/saving-output-files-to-capture-all-response-and-their-times/29097)

<div class="topic-metadata">

**Author:** [@AdamCalderon](https://discourse.psychopy.org/u/AdamCalderon)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 11:22am UTC](https://discourse.psychopy.org/t/saving-output-files-to-capture-all-response-and-their-times/29097 "2022-05-12T11:22:27Z")

</div>

Hi all, I am currently running a neuroimaging study that contains three distinct experimental tasks, each with its own PsychoPy script. As you could imagine, this creates a variety of data points in which everything fro…

---

## [Syntax error in PsychoPy logging module](https://discourse.psychopy.org/t/syntax-error-in-psychopy-logging-module/27527)

<div class="topic-metadata">

**Author:** [@Merloch](https://discourse.psychopy.org/u/Merloch)\
**Replies:** 2\
**Last updated:** [February 19, 2022, 8:50am UTC](https://discourse.psychopy.org/t/syntax-error-in-psychopy-logging-module/27527 "2022-02-19T08:50:56Z")

</div>

I get a syntax error in PsychoPy’s PTB logging code. My code: from psychopy import logging log = logging.LogFile("WS\_Dev.log", level = logging.DEBUG, filemode = "w") logging.log(logging.DEBUG, "in getArguments()") and…

---

## [Logfile movie stimuli duration](https://discourse.psychopy.org/t/logfile-movie-stimuli-duration/26982)

<div class="topic-metadata">

**Author:** [@alicealbertinidrew](https://discourse.psychopy.org/u/alicealbertinidrew)\
**Replies:** 2\
**Last updated:** [February 2, 2022, 2:53pm UTC](https://discourse.psychopy.org/t/logfile-movie-stimuli-duration/26982 "2022-02-02T14:53:49Z")

</div>

PsychoPy version: latest Hi, When looking at the duration of my movie stimuli in the log file, I see two lines for the end of the movie but do not understand the difference between them. My movie stim is called Clip\_1,…

---

## [Log timestamp in Unix time](https://discourse.psychopy.org/t/log-timestamp-in-unix-time/27005)

<div class="topic-metadata">

**Author:** [@federico\_nemmi](https://discourse.psychopy.org/u/federico_nemmi)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 10:01am UTC](https://discourse.psychopy.org/t/log-timestamp-in-unix-time/27005 "2022-01-26T10:01:45Z")

</div>

If this template helps then use it. If not then just delete and start from scratch. OS : Windows 10 PsychoPy version : 2021.2.3 Standard Standalone? Yes What are you trying to achieve?: I would like to log the time …

---

## [Unable to Flush/Upload/Save/Compress logs. for experiment](https://discourse.psychopy.org/t/unable-to-flush-upload-save-compress-logs-for-experiment/26781)

<div class="topic-metadata">

**Author:** [@seline](https://discourse.psychopy.org/u/seline)\
**Replies:** 4\
**Last updated:** [January 14, 2022, 9:38am UTC](https://discourse.psychopy.org/t/unable-to-flush-upload-save-compress-logs-for-experiment/26781 "2022-01-14T09:38:19Z")

</div>

URL of experiment: https://run.pavlovia.org/Raqeeb/fert\_v1-3/ Description of the problem: After completion of the experiment the following error appears. The experiment is supposed to take the participant to another P…

---

## [Output - recover image or text set by variable](https://discourse.psychopy.org/t/output-recover-image-or-text-set-by-variable/25994)

<div class="topic-metadata">

**Author:** [@Joseph\_Orr](https://discourse.psychopy.org/u/Joseph_Orr)\
**Replies:** 0\
**Last updated:** [November 15, 2021, 4:30pm UTC](https://discourse.psychopy.org/t/output-recover-image-or-text-set-by-variable/25994 "2021-11-15T16:30:24Z")

</div>

If an Image or Text component is set by a variable and this information isn’t manually added to the output data is there any way to recover this information? The documentation makes it sound as if the psydat contains ext…

---

## [Psydat saveAsWideText no attribute 'appendFiles'](https://discourse.psychopy.org/t/psydat-saveaswidetext-no-attribute-appendfiles/25969)

<div class="topic-metadata">

**Author:** [@Joseph\_Orr](https://discourse.psychopy.org/u/Joseph_Orr)\
**Replies:** 1\
**Last updated:** [November 15, 2021, 3:58pm UTC](https://discourse.psychopy.org/t/psydat-saveaswidetext-no-attribute-appendfiles/25969 "2021-11-15T15:58:52Z")

</div>

I’m trying to examine some data from psychopy 3.1.2 and I’m running into a problem with saveAsWideText: In \[11\]: psydata.saveAsWideText('1001\_psydata.txt') ---------------------------------------------------------------…

---

## [Experiment works, UNABLE TO DOWNLOAD DATA IN EXCEL](https://discourse.psychopy.org/t/experiment-works-unable-to-download-data-in-excel/24483)

<div class="topic-metadata">

**Author:** [@Liam\_T](https://discourse.psychopy.org/u/Liam_T)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 12:24pm UTC](https://discourse.psychopy.org/t/experiment-works-unable-to-download-data-in-excel/24483 "2021-08-11T12:24:09Z")

</div>

URL of experiment: PJTExperiment X (LATEST VERSION) \[PsychoPy\] Description of the problem: Hi. I’m very sorry, I posted something similar to this around a month ago but thought I had solved it. Turns out, I haven’t. I …

---

## [Logging onset/offset of sound stimuli](https://discourse.psychopy.org/t/logging-onset-offset-of-sound-stimuli/7247)

<div class="topic-metadata">

**Author:** [@dyeo](https://discourse.psychopy.org/u/dyeo)\
**Replies:** 2\
**Last updated:** [September 29, 2020, 7:35pm UTC](https://discourse.psychopy.org/t/logging-onset-offset-of-sound-stimuli/7247 "2020-09-29T19:35:57Z")

</div>

Hi everyone, I have a cross-modal (visual-auditory) experiment that I built using Builder in version 3.0.6 (standalone) on a Windows machine (Windows 7 and 10). Sound files are in .wav format and each lasts for 500 ms. …

---

## [Experiment not Opening - RuntimeWarning: divide by zero paired with weird monitor callibration](https://discourse.psychopy.org/t/experiment-not-opening-runtimewarning-divide-by-zero-paired-with-weird-monitor-callibration/15399)

<div class="topic-metadata">

**Author:** [@Lmf](https://discourse.psychopy.org/u/Lmf)\
**Replies:** 0\
**Last updated:** [July 31, 2020, 3:19pm UTC](https://discourse.psychopy.org/t/experiment-not-opening-runtimewarning-divide-by-zero-paired-with-weird-monitor-callibration/15399 "2020-07-31T15:19:33Z")

</div>

Hey all, OS : Windows 10 BUT experiments built on Mac OS Mojave PsychoPy version : 2020.1.2 and 2020.1.3 Standard Standalone? : Yes What are you trying to achieve?: Literally any experiment - even a simple tests with…

---

## [Pavlovia: Session file variables not transferred to log file for last participants (first observed Sept, 2, 2019)](https://discourse.psychopy.org/t/pavlovia-session-file-variables-not-transferred-to-log-file-for-last-participants-first-observed-sept-2-2019/8990)

<div class="topic-metadata">

**Author:** [@frank.papenmeier](https://discourse.psychopy.org/u/frank.papenmeier)\
**Replies:** 25\
**Last updated:** [May 11, 2020, 5:01pm UTC](https://discourse.psychopy.org/t/pavlovia-session-file-variables-not-transferred-to-log-file-for-last-participants-first-observed-sept-2-2019/8990 "2020-05-11T17:01:48Z")

</div>

URL of experiment: https://run.pavlovia.org/kogpsy/dfg\_ens\_de\_003/html/ and https://run.pavlovia.org/kogpsy/dfg\_ens\_us\_001/html/ Description of the problem: The experiment was running perfectly and we collected vali…

---

## [Logging serial input in Logfile (Builder)](https://discourse.psychopy.org/t/logging-serial-input-in-logfile-builder/10350)

<div class="topic-metadata">

**Author:** [@PsychoStudentOL](https://discourse.psychopy.org/u/PsychoStudentOL)\
**Replies:** 0\
**Last updated:** [December 19, 2019, 12:52pm UTC](https://discourse.psychopy.org/t/logging-serial-input-in-logfile-builder/10350 "2019-12-19T12:52:22Z")

</div>

OS: Win 7 Version:3.24 Standalone What are you trying to achieve? I am programming an emotion recognition paradigm for fMRI. What did you try to make it work?: I used custom code to get a connection with a serial p…

---

## [Logging to external computer?](https://discourse.psychopy.org/t/logging-to-external-computer/10194)

<div class="topic-metadata">

**Author:** [@Jakub\_Szewczyk](https://discourse.psychopy.org/u/Jakub_Szewczyk)\
**Replies:** 1\
**Last updated:** [December 5, 2019, 8:48pm UTC](https://discourse.psychopy.org/t/logging-to-external-computer/10194 "2019-12-05T20:48:38Z")

</div>

Hi, I’d like to be able to see the procedure’s progress on an external computer. When the experiment is running, I can’t see the console so the local logfile are unavailable to me until the procedure ends. I am new to P…

---

## [Incomplete Log Files in Pavlovia](https://discourse.psychopy.org/t/incomplete-log-files-in-pavlovia/8994)

<div class="topic-metadata">

**Author:** [@tjl](https://discourse.psychopy.org/u/tjl)\
**Replies:** 4\
**Last updated:** [September 20, 2019, 7:59am UTC](https://discourse.psychopy.org/t/incomplete-log-files-in-pavlovia/8994 "2019-09-20T07:59:21Z")

</div>

URL of experiment: https://pavlovia.org/timlameris/como\_esta\_sua\_audicao\_linguistica\_12-07-2019 Description of the problem: I have been successfully running an online study and collecting data since July, but since Sep…

---

## [Delayed parallel port trigger for key response in logfile](https://discourse.psychopy.org/t/delayed-parallel-port-trigger-for-key-response-in-logfile/7174)

<div class="topic-metadata">

**Author:** [@Mica\_K](https://discourse.psychopy.org/u/Mica_K)\
**Replies:** 7\
**Last updated:** [April 16, 2019, 12:32am UTC](https://discourse.psychopy.org/t/delayed-parallel-port-trigger-for-key-response-in-logfile/7174 "2019-04-16T00:32:54Z")

</div>

I am using Psychopy version 1.90.1, standalone, running on Windows 10. I am using a parallel port to send event triggers to Brain Products Recorder. AIM: My aim is to send an event trigger every time the space bar is p…

---

## [Logging stimuls start and end (or onset and offset) with Builder](https://discourse.psychopy.org/t/logging-stimuls-start-and-end-or-onset-and-offset-with-builder/6196)

<div class="topic-metadata">

**Author:** [@njvack](https://discourse.psychopy.org/u/njvack)\
**Replies:** 3\
**Last updated:** [January 5, 2019, 1:19pm UTC](https://discourse.psychopy.org/t/logging-stimuls-start-and-end-or-onset-and-offset-with-builder/6196 "2019-01-05T13:19:35Z")

</div>

Hi folks, I’m trying to set up a task in Builder, and would like the start and end times of the stimuli (relative to the start of the task) in my CSV log; I want to make sure my timing is what I expect it to be. I feel…

---

## [Reaction times from logfiles - multiple keypresses in one frame](https://discourse.psychopy.org/t/reaction-times-from-logfiles-multiple-keypresses-in-one-frame/6175)

<div class="topic-metadata">

**Author:** [@reneeb](https://discourse.psychopy.org/u/reneeb)\
**Replies:** 3\
**Last updated:** [December 29, 2018, 1:28am UTC](https://discourse.psychopy.org/t/reaction-times-from-logfiles-multiple-keypresses-in-one-frame/6175 "2018-12-29T01:28:40Z")

</div>

I ran an experiment in which participants typed a word for each trial, with reaction times saved for each keypress. Reviewing the data, it seems that there’s an occasional issue with two keypresses occurring within the s…

---

## [Log file producing blendMode='avg' line every 10-50ms](https://discourse.psychopy.org/t/log-file-producing-blendmode-avg-line-every-10-50ms/3720)

<div class="topic-metadata">

**Author:** [@Mark\_Orloff](https://discourse.psychopy.org/u/Mark_Orloff)\
**Replies:** 3\
**Last updated:** [March 28, 2018, 1:25pm UTC](https://discourse.psychopy.org/t/log-file-producing-blendmode-avg-line-every-10-50ms/3720 "2018-03-28T13:25:12Z")

</div>

Hi, I am using the PsychoPy builder v1.85.4. This issue occurs whether I run it using mac or PC. The log file outputs “blendMode=‘avg’” about every 10-50ms. This is causing the logging flush to take a very long time. I h…

---

## [Replay experiment from log file?](https://discourse.psychopy.org/t/replay-experiment-from-log-file/3713)

<div class="topic-metadata">

**Author:** [@KirstenZ](https://discourse.psychopy.org/u/KirstenZ)\
**Replies:** 1\
**Last updated:** [January 14, 2018, 6:51am UTC](https://discourse.psychopy.org/t/replay-experiment-from-log-file/3713 "2018-01-14T06:51:06Z")

</div>

is there a simple way to replay the entire experiment as it appeared to the subject from the log file?

---

## [How to open .res files on Mac?](https://discourse.psychopy.org/t/how-to-open-res-files-on-mac/3667)

<div class="topic-metadata">

**Author:** [@Kate\_Kuzmina](https://discourse.psychopy.org/u/Kate_Kuzmina)\
**Replies:** 3\
**Last updated:** [January 5, 2018, 9:55am UTC](https://discourse.psychopy.org/t/how-to-open-res-files-on-mac/3667 "2018-01-05T09:55:26Z")

</div>

Hi guys, I am using the code for WCST from here and after completion of the experiment I get .res files. Do you know how I can either open these files on Mac or, probably, make changes in the code, so that answers are sa…

---

## [Log File timing](https://discourse.psychopy.org/t/log-file-timing/124)

<div class="topic-metadata">

**Author:** [@Prashant\_Patel](https://discourse.psychopy.org/u/Prashant_Patel)\
**Replies:** 4\
**Last updated:** [August 3, 2016, 1:17pm UTC](https://discourse.psychopy.org/t/log-file-timing/124 "2016-08-03T13:17:42Z")

</div>

Hello, I am trying to get the exact time that the fmri 'presses' the 5 key when a experiment is running. When I check the times on the LOG file, they seem to start at a random number and there is no header for the time…

[Next page](https://discourse.psychopy.org/tag/logfiles/2.md?match_all_tags=true&page=1&tags%5B%5D=logfiles)
