title: Error reading previous json file; "*.json was not found."
body: <p>Looking to resolve an issue with this basic BigQuery script run from local machine. The credentials line keeps looking for a previous json file that I deleted and created /inserted a new one. I wanted to get this script working before applying the connection to my other app. I have the bigquery user role and permissions set for the dataset. The json and requirements files are in the same directory as the script.</p>
  <pre><code>from google.cloud import bigquery
  from google.oauth2 import service_account
  
  credentials = service_account.Credentials.from_service_account_file(
  &quot;web-app-341703-b9f22cbc7c7e.json&quot;)
  
  client = bigquery.Client()
  
  QUERY = (
  'SELECT * FROM &quot;hosp_info.hospital_general_information&quot;'
  'FROM state = &quot;TX&quot;'
  'LIMIT 10')
  query_job = client.query(QUERY)
  rows = query_job.result()
  
  for row in rows:
    print(row.name)
  </code></pre>
  <p>requirements file (I believe I have all the necessary packages):</p>
  <pre><code>cachetools==5.0.0
  certifi==2021.10.8
  charset-normalizer==2.0.12
  google-api-core==2.5.0
  google-api-python-client==2.37.0
  google-auth==2.6.0
  google-auth-httplib2==0.1.0
  googleapis-common-protos==1.54.0
  httplib2==0.20.4
  idna==3.3
  oauth2-client==1.2.1
  protobuf==3.19.4
  pyasn1==0.4.8
  pyasn1-modules==0.2.8
  pyparsing==3.0.7
  requests==2.27.1
  rsa==4.8
  six==1.16.0
  uritemplate==4.1.1
  urllib3==1.26.8
  </code></pre>
  <p>I tried just the filename and the full path to the file but still the same error message:</p>
  <p>google.auth.exceptions.DefaultCredentialsError: File db-web-app-324216-59de47eb637a.json was not found.</p>
  <p>I've searched for answers and found none. Any help would be appreciated.</p>