typedb-bio icon indicating copy to clipboard operation
typedb-bio copied to clipboard

File Error When Opening HPA Dataset with migrator.py on Windows 10

Open jackn11 opened this issue 2 years ago • 1 comments

Opening HPA dataset...

  Downloading protein atlas data
100% [..........................................................................] 5596382 / 5596382  Finished downloading
Traceback (most recent call last):
  File "C:\Users\jackn\TypeDBBio\typedb-bio\migrator.py", line 61, in <module>
    migrate_protein_atlas(session, NUM_PA, args.num_threads, args.commit_batch)
  File "C:\Users\jackn\TypeDBBio\typedb-bio\Migrators\HumanProteinAtlas\HumanProteinAtlasMigrator.py", line 20, in migrate_protein_atlas
    tissue, raw_data = get_tissue_data(num)
  File "C:\Users\jackn\TypeDBBio\typedb-bio\Migrators\HumanProteinAtlas\HumanProteinAtlasMigrator.py", line 53, in get_tissue_data
    os.remove('Dataset/HumanProteinAtlas/normal_tissue.tsv')
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'Dataset/HumanProteinAtlas/normal_tissue.tsv'

jackn11 avatar Jul 19 '22 00:07 jackn11

This run only in Linux for Windows use wsl2

estkae avatar Oct 01 '23 07:10 estkae