Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log csv error if running C-PAC for a second time with same working dir #1300

Closed
XinhuiLi opened this issue Jun 11, 2020 · 2 comments
Closed

Comments

@XinhuiLi
Copy link
Collaborator

Since C-PAC 1.6.2, users and I have observed an error caused by csv file in log folder if C-PAC was run for a second time based on same working dir. This issue is probably due to py3 upgrade and one of temporary solutions is to remove previous log folder. However, running C-PAC multiple times with same working dir should be handled gracefully.

Traceback (most recent call last):
File "/code/CPAC/pipeline/cpac_pipeline.py", line 539, in run_workflow
for line in timeReader:
File "/usr/local/miniconda/lib/python3.7/csv.py", line 111, in next
self.fieldnames
File "/usr/local/miniconda/lib/python3.7/csv.py", line 98, in fieldnames
self._fieldnames = next(self.reader)
_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

@sgiavasis
Copy link
Collaborator

What is the CSV file? It might be deprecated anyway.

@XinhuiLi
Copy link
Collaborator Author

The CSV is cpac_individual_timing_{c.pipelineName}.csv in log folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants