title: Allure ModuleNotFoundError but only on certain functions of the package
body: <p>I am starting to work with Allure to make reports for my test automation team. My goal is to attach screenshots but I run into an error. The lines of code that prompt this error are:</p>
  
  <pre><code>import allure #This line runs fine
  from allure.constants import AttachmentType #This one throws the error
  </code></pre>
  
  <p>Which throws: <code>ModuleNotFoundError: No module named 'allure.constants'; 'allure' is not a package</code></p>
  
  <p>I am using allure throughout different parts of the code without running into errors, for example I use the decorator:</p>
  
  <pre><code>@allure.step("Description of a step")
  </code></pre>
  
  <p>So the module is being correctly loaded. Upon further inspection on the internet I found links stating that I should uninstall previous packages such as <strong>pytest-allure-adaptor</strong> as seen in <a href="https://stackoverflow.com/questions/50934480/error-after-installation-of-allure-pytest-adaptor">this other SO question</a>. I did so but the error remains unchanged.</p>
  
  <p>In order to give more context, I am using the following softaware:</p>
  
  <p>IDE: Visual Studio Code
  OS: Windows 7
  Python version: 3.6
  allure-pytest: 2.8.12
  allure-python-commons: 2.8.12</p>