title: Beta: Github Codespace, was getting SynatxError, now resolved; however now receiving ImportError
body: <p><strong>EDIT:</strong>
  After following xcodz-dot's suggestion, while it was helpful and I believed it has fixed one problem, I recieved an exception in <code>client.py</code>. Traceback:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/workspaces/[repo_name]/resource.py&quot;, line 5, in &lt;module&gt;
      from discord_components import DiscordComponents, ButtonStyle, Button
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord_components/__init__.py&quot;, line 1, in &lt;module&gt;
      from .client import *
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord_components/client.py&quot;, line 3, in &lt;module&gt;
      from discord import (
  ImportError: cannot import name 'Guild' from 'discord' (/opt/python/3.10.4/lib/python3.10/site-packages/discord/__init__.py)
  </code></pre>
  <p>Is this a seperate issue or is it in direct causation of changing <code>asyncio.async</code> to <code>getattr(asyncio, &quot;async&quot;)</code> in both compat.py and compatibility.py?</p>
  <p>Please help me, thx :)</p>
  <p>===============================================================</p>
  <p><strong>BELOW: OLD QUESTION, LIKELY RESOLVED</strong></p>
  <p>I am using Github Codespaces, and in the process of programming my bot, when trying to import discord_components, a SyntaxError is raised. Traceback (bash terminal, linux vm):</p>
  <pre><code>@[username]➜ /workspaces/[repo_name] (main ✗) $ /opt/python/latest/bin/python /workspaces/SineBot/resource.py
  Traceback (most recent call last):
    File &quot;/workspaces/[repo_name]/resource.py&quot;, line 4, in &lt;module&gt;
      from discord_components import DiscordComponents, ButtonStyle, Button
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord_components/__init__.py&quot;, line 1, in &lt;module&gt;
      from .client import *
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord_components/client.py&quot;, line 3, in &lt;module&gt;
      from discord import (
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord/__init__.py&quot;, line 20, in &lt;module&gt;
      from .client import Client, AppInfo, ChannelPermissions
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord/client.py&quot;, line 38, in &lt;module&gt;
      from .state import ConnectionState
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord/state.py&quot;, line 36, in &lt;module&gt;
      from . import utils, compat
    File &quot;/opt/python/3.10.4/lib/python3.10/site-packages/discord/compat.py&quot;, line 32
      create_task = asyncio.async
                            ^^^^^
  SyntaxError: invalid syntax
  </code></pre>
  <p>I have tried all soloutions in <a href="https://stackoverflow.com/questions/51196568/create-task-asyncio-async-syntaxerror-invalid-syntax">create_task = asyncio.async: SyntaxError: invalid syntax</a>, except for downgrading to Py3.5 and using <code>rewrite.zip</code> (because it doesn't even exist), but there are functionalities in Py3.10 that I need, and downgrading would be a nightmare, if not, impossible. Note that <code>discord.py</code> works on my local machine.</p>
  <p>Here is <code>combat.py</code> for reference:</p>
  <pre class="lang-py prettyprint-override"><code>...
  import concurrent.futures
  import asyncio
  
  try:
      create_task = asyncio.ensure_future
  except AttributeError:
      create_task = asyncio.async # -&gt; where the exception is happening
  
  
  try:
      run_coroutine_threadsafe = asyncio.run_coroutine_threadsafe
  except AttributeError:
  ...
  </code></pre>
  <p>The same exception is raised when <code>discord.py</code> is imported (before <code>discord_components</code>).</p>
  <p>Please help :)</p>