prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  networkx compatibility issue with python3.9
  There's a networkx>=2.5 dependency to run pandapower under python3.9 as gcd has to be imported from math instead of fractions.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 
  3 # Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics
  4 # and Energy System Technology (IEE), Kassel. All rights reserved.
  5 
  6 from setuptools import setup, find_packages
  7 import re
  8 
  9 with open('README.rst', 'rb') as f:
  10     install = f.read().decode('utf-8')
  11 
  12 with open('CHANGELOG.rst', 'rb') as f:
  13     changelog = f.read().decode('utf-8')
  14 
  15 classifiers = [
  16     'Development Status :: 5 - Production/Stable',
  17     'Environment :: Console',
  18     'Intended Audience :: Developers',
  19     'Intended Audience :: Education',
  20     'Intended Audience :: Science/Research',
  21     'License :: OSI Approved :: BSD License',
  22     'Natural Language :: English',
  23     'Operating System :: OS Independent',
  24     'Programming Language :: Python',
  25     'Programming Language :: Python :: 3']
  26 
  27 with open('.github/workflows/github_test_action.yml', 'rb') as f:
  28     lines = f.read().decode('utf-8')
  29     versions = set(re.findall('3.[0-9]', lines))
  30     for version in versions:
  31         classifiers.append('Programming Language :: Python :: 3.%s' % version[-1])
  32 
  33 long_description = '\n\n'.join((install, changelog))
  34 
  35 setup(
  36     name='pandapower',
  37     version='2.6.0',
  38     author='Leon Thurner, Alexander Scheidler',
  39     author_email='leon.thurner@iee.fraunhofer.de, alexander.scheidler@iee.fraunhofer.de',
  40     description='An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation.',
  41     long_description=long_description,
  42 	long_description_content_type='text/x-rst',
  43     url='http://www.pandapower.org',
  44     license='BSD',
  45     install_requires=["pandas>=0.17",
  46                       "networkx",
  47                       "scipy<=1.6.0",
  48                       "numpy>=0.11",
  49                       "packaging",
  50                       "xlsxwriter",
  51                       "xlrd",
  52                       "openpyxl",
  53                       "cryptography"],
  54     extras_require={
  55         "docs": ["numpydoc", "sphinx", "sphinx_rtd_theme"],
  56         "plotting": ["plotly", "matplotlib", "python-igraph"],
  57         "test": ["pytest", "pytest-xdist"],
  58         "performance": ["ortools"]},
  59     packages=find_packages(),
  60     include_package_data=True,
  61     classifiers=classifiers
  62 )
  63
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -43,7 +43,7 @@
       url='http://www.pandapower.org',
       license='BSD',
       install_requires=["pandas>=0.17",
  -                      "networkx",
  +                      "networkx>=2.5",
                         "scipy<=1.6.0",
                         "numpy>=0.11",
                         "packaging",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -43,7 +43,7 @@\n     url='http://www.pandapower.org',\n     license='BSD',\n     install_requires=[\"pandas>=0.17\",\n-                      \"networkx\",\n+                      \"networkx>=2.5\",\n                       \"scipy<=1.6.0\",\n                       \"numpy>=0.11\",\n                       \"packaging\",\n", "issue": "networkx compatibility issue with python3.9\nThere's a networkx>=2.5 dependency to run pandapower under python3.9 as gcd has to be imported from math instead of fractions.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\nfrom setuptools import setup, find_packages\nimport re\n\nwith open('README.rst', 'rb') as f:\n    install = f.read().decode('utf-8')\n\nwith open('CHANGELOG.rst', 'rb') as f:\n    changelog = f.read().decode('utf-8')\n\nclassifiers = [\n    'Development Status :: 5 - Production/Stable',\n    'Environment :: Console',\n    'Intended Audience :: Developers',\n    'Intended Audience :: Education',\n    'Intended Audience :: Science/Research',\n    'License :: OSI Approved :: BSD License',\n    'Natural Language :: English',\n    'Operating System :: OS Independent',\n    'Programming Language :: Python',\n    'Programming Language :: Python :: 3']\n\nwith open('.github/workflows/github_test_action.yml', 'rb') as f:\n    lines = f.read().decode('utf-8')\n    versions = set(re.findall('3.[0-9]', lines))\n    for version in versions:\n        classifiers.append('Programming Language :: Python :: 3.%s' % version[-1])\n\nlong_description = '\\n\\n'.join((install, changelog))\n\nsetup(\n    name='pandapower',\n    version='2.6.0',\n    author='Leon Thurner, Alexander Scheidler',\n    author_email='leon.thurner@iee.fraunhofer.de, alexander.scheidler@iee.fraunhofer.de',\n    description='An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation.',\n    long_description=long_description,\n\tlong_description_content_type='text/x-rst',\n    url='http://www.pandapower.org',\n    license='BSD',\n    install_requires=[\"pandas>=0.17\",\n                      \"networkx\",\n                      \"scipy<=1.6.0\",\n                      \"numpy>=0.11\",\n                      \"packaging\",\n                      \"xlsxwriter\",\n                      \"xlrd\",\n                      \"openpyxl\",\n                      \"cryptography\"],\n    extras_require={\n        \"docs\": [\"numpydoc\", \"sphinx\", \"sphinx_rtd_theme\"],\n        \"plotting\": [\"plotly\", \"matplotlib\", \"python-igraph\"],\n        \"test\": [\"pytest\", \"pytest-xdist\"],\n        \"performance\": [\"ortools\"]},\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=classifiers\n)\n", "path": "setup.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\nfrom setuptools import setup, find_packages\nimport re\n\nwith open('README.rst', 'rb') as f:\n    install = f.read().decode('utf-8')\n\nwith open('CHANGELOG.rst', 'rb') as f:\n    changelog = f.read().decode('utf-8')\n\nclassifiers = [\n    'Development Status :: 5 - Production/Stable',\n    'Environment :: Console',\n    'Intended Audience :: Developers',\n    'Intended Audience :: Education',\n    'Intended Audience :: Science/Research',\n    'License :: OSI Approved :: BSD License',\n    'Natural Language :: English',\n    'Operating System :: OS Independent',\n    'Programming Language :: Python',\n    'Programming Language :: Python :: 3']\n\nwith open('.github/workflows/github_test_action.yml', 'rb') as f:\n    lines = f.read().decode('utf-8')\n    versions = set(re.findall('3.[0-9]', lines))\n    for version in versions:\n        classifiers.append('Programming Language :: Python :: 3.%s' % version[-1])\n\nlong_description = '\\n\\n'.join((install, changelog))\n\nsetup(\n    name='pandapower',\n    version='2.6.0',\n    author='Leon Thurner, Alexander Scheidler',\n    author_email='leon.thurner@iee.fraunhofer.de, alexander.scheidler@iee.fraunhofer.de',\n    description='An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation.',\n    long_description=long_description,\n\tlong_description_content_type='text/x-rst',\n    url='http://www.pandapower.org',\n    license='BSD',\n    install_requires=[\"pandas>=0.17\",\n                      \"networkx>=2.5\",\n                      \"scipy<=1.6.0\",\n                      \"numpy>=0.11\",\n                      \"packaging\",\n                      \"xlsxwriter\",\n                      \"xlrd\",\n                      \"openpyxl\",\n                      \"cryptography\"],\n    extras_require={\n        \"docs\": [\"numpydoc\", \"sphinx\", \"sphinx_rtd_theme\"],\n        \"plotting\": [\"plotly\", \"matplotlib\", \"python-igraph\"],\n        \"test\": [\"pytest\", \"pytest-xdist\"],\n        \"performance\": [\"ortools\"]},\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=classifiers\n)\n", "path": "setup.py"}]}