title: Pycharm error with easygui: No module named 'global_state'
body: <p>I am working on a script which calls easygui. This has been added to the virtual environment.</p>
  <p>The lines involving easygui are</p>
  <pre class="lang-py prettyprint-override"><code>#import module
  from easygui import *
  #set message and title
  msg=&quot;Hello World!&quot;
  title=&quot;Sample Program&quot;
  # a simple window showing a message, a title and a ‘Ok’ button
  msgbox(msg,title)
  </code></pre>
  <p>The script throws the error below. However, it runs perfectly when I call it from the command line. Why is pycharm throwing an error, but not the command line? Thanks.</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/nickriches/PycharmProjects/pythonProject3/main.py&quot;, line 12, in &lt;module&gt;
      from easygui import *
    File &quot;/Users/nickriches/PycharmProjects/pythonProject3/venv/lib/python3.7/site-packages/easygui/__init__.py&quot;, line 34, in &lt;module&gt;
      from .boxes.button_box import buttonbox
    File &quot;/Users/nickriches/PycharmProjects/pythonProject3/venv/lib/python3.7/site-packages/easygui/boxes/button_box.py&quot;, line 18, in &lt;module&gt;
      import global_state
  ModuleNotFoundError: No module named 'global_state'
  
  </code></pre>