Skip to content

Commit

Permalink
Fixes for Python 3.11 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool2u committed Jun 17, 2023
1 parent 9b172f8 commit bbc9d1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
14 changes: 2 additions & 12 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import dash
import dash_core_components as dcc
import dash_html_components as html
import logging
import os
import phonenumbers
from dash.dependencies import Input, Output, State
from dash import Dash, html, dcc, Output, Input, State
from dash.exceptions import PreventUpdate
from datetime import datetime as dt
from google.cloud import firestore
Expand All @@ -23,13 +20,6 @@


def gcp_support() -> dict:
try:
import googleclouddebugger

googleclouddebugger.enable()
except ImportError as e:
logging.error(f'Unable to import and enable stackdriver debugger: {str(e)}')
pass

try:
db = firestore.Client()
Expand All @@ -52,7 +42,7 @@ def gcp_support() -> dict:

external_css = ["https://fonts.googleapis.com/css?family=VT323&subset=latin-ext"]

app = dash.Dash(__name__, external_stylesheets=external_css)
app = Dash(__name__, external_stylesheets=external_css)
server = app.server

app.index_string = '''
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ email_validator
google-cloud-tasks
pandas
google-cloud-firestore
google-python-cloud-debugger
phonenumbers
2 changes: 1 addition & 1 deletion run_front_local_appengine.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
cd /home/theo/PycharmProjects/thems_facts/front_end_service/ || exit
dev_appserver.py --application=facts-sender front_end_app.yaml
python3 /usr/lib/google-cloud-sdk/bin/dev_appserver.py front_end_app.yaml

0 comments on commit bbc9d1c

Please sign in to comment.