I have a strange issue that I have a folder causes errors in my python code. If I run python and import torch
from the terminal then I get this error
AttributeError: module 'torch' has no attribute 'Tensor'
If I open python in the terminal and import torch
from any other folder then there is no error. I did get this file directly from a drive that I was using for a backup. Could this be causing the issue. I know before it was a read only folder, but I fixed that.
The folder I am trying to use is located in the Desktop. I can run everything completely fine in the Desktop folder, but as soon as I enter this one, I get the error. I have looked at pytorch, AttributeError: module 'torch' has no attribute 'Tensor' but dont think it is the same error. Since I also get an error with other packages such as ctypes which gives me this error.
AttributeError: module 'ctypes' has no attribute 'WinDLL'
This error has the same property as the previous one, that it only happens when the terminal is running python from this folder. It is able to import ctypes completely fine outside of this folder.
Folder:
->check.py
->createVoice.py
->final.wav
->hi.py
->struct.py
->test.wav
->welcome.wav