I've hit a funny problem, I can't set/access my environment. I did a little research and found a similar problem (Not able to set workspace using standalone Python script for ArcGIS). I know that the script was working because it was it was fully functional for me on Friday, and today it can't find my workspace. I've gone ahead and included a shortened version of my script (and image of the notebook from Pro) that I was working with trying to troubleshoot this issue. It includes a commented out line, and some notes I added for clarity.
Thanks for any ideas, they are all welcome.
Import
import arcpy
from arcpy import env
from arcpy.sa import *
import os, numpy
import pandas as pd
Set environments - tried single and double backslashes, there are no spaces in my file name. Assigned file path to variable "w" just for troubleshooting this. That is not part of the code
w="C:\\GIS\\ArcHydro\\TBR\\AH_TBR\\AH_TBR.gdb"
arcpy.env.workspace="C:\\GIS\\ArcHydro\\TBR\\AH_TBR\\AH_TBR.gdb"
Confirmed that arcpy can read the chosen workspace - only from the filepath not from workspace
arcpy.Exists("C:\\GIS\\ArcHydro\\TBR\AH_TBR\\AH_TBR.gdb")
Confirm that I can print file path for my variable "w", yet workspace still doesn't exist.
print (w)
print (workspace)
Thank you!
Bleys