Python 3.7 Virtual Environment corrupted filesystem

0

Weird issue and hard to explain, but maybe anyone has a clue: I work on a python tensorflow application. My setup is:

  • Python 3.7.8
  • PIP 20.2
  • Windows 10
  • PyCharm 2020.1.3
  • CUDA 10.1

I created a venv using standard built-in functionality of PyCharm. Everything was running fine. Suddenly, when I started my programm, it gave my a weird error message like:

ImportError: cannot import name 'deprecation' from 'tensorflow.python.util' (G:\Workspace\DSM2\venv\lib\site-packages\tensorflow\python\util\__init__.py)

(Seconds ago, the identical code ran fine!) After some attempts I wanted to setup my venv from scratch, so I tried to delete my old venv folder in the windows explorer. It failed with error 0x80070570 "File / Folder damaged...". After I ran chkdsk on drive G:, I was able to delete the folder. So I installed a brand new venv with all of my requirements. And my application ran fine.

BUT after a few days I ran into the same issue again (this time, a different module, but samesame). I did the above 2-3 times after I gave up. Last attempt: I installed everything on my C:\ drive (which is an SSD, opposing to the G:\ HDD). Running fine now for weeks! Easy answer would be: Dude, your G:\ drive is broken! But it is quite new (few months) and all other programms/games/partitions on that drive are fine.

Is there a know issue with venv/tensorflow/PyCharm/python/windows/NTFS/...?

python
pycharm
virtualenv
asked on Stack Overflow Aug 2, 2020 by Sauer

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0