title: TypeError when running an API from a GitLab project
body: <p>I got access to a private GitLab project that contains the following branches: <code>main</code>, <code>develop</code> and <code>new_branch</code>. The machine learning project is pretty complex and contains various transformers for NLP, and many steps that generate some output from an input text. FastAPI has also been used.</p>
  <p>I am trying to see how this works and run it. I use Windows. I know that I need Python 3.9 and to have <code>pipenv</code> installed and then the following instructions are given:</p>
  <pre class="lang-none prettyprint-override"><code>Install all dependencies locally by running `pipenv install --dev`. 
  Create an empty file named `.env` inside the root project folder. 
  Copy and paste the contents of the `.env.example` file into `.env`. 
  Run `pipenv run prebuild-win` to download the necessary static files needed by 3rd party libraries. 
  Run API using the following command: `pipenv run start`. Go to `http://localhost:8000/`.
  </code></pre>
  <p>I opened git CMD, cloned it, and it's the <code>develop</code> branch that appears in the folder (for the <code>new_branch</code> it says <code>Pipeline: failed</code>). I navigated to the folder of the project, created a virtual environment and installed the dependencies. The file that in GitLab was called <code>.env.example</code> already appear in my folder as <code>.env</code> with the necessary contents. I run <code>pipenv run prebuild-win</code> and everything else gets installed.</p>
  <p>But when I run API using <code>pipenv run start</code>, I get:</p>
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File &quot;C:\Users\me\AppData\Local\Programs\Python\Python39\lib\runpy.py&quot;, line 197, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File &quot;C:\Users\me\AppData\Local\Programs\Python\Python39\lib\runpy.py&quot;, line 87, in _run_code
      exec(code, run_globals)
    File &quot;C:\Users\me\the-project\app\main.py&quot;, line 25, in &lt;module&gt;
      api = Api()
    File &quot;C:\Users\me\the-project\app\main.py&quot;, line 13, in __init__
      self.config_service = ConfigService()
    File &quot;C:\Users\me\the-project\app\core\config.py&quot;, line 17, in __init__
      self.port = int(os.getenv('PORT'))
  TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
  </code></pre>
  <p>Did I do anything wrong?</p>
  <p>I checked and there is a port, and I think it's because I skipped the creating an <code>.env</code> file step. I created an empty text file, copy and pasted the contents, and I get the same error. The <code>.env.example</code> contains:</p>
  <pre class="lang-none prettyprint-override"><code>APP_NAME=My app
  VERSION=0.0.1
  HOST=127.0.0.1
  PORT=1234
  </code></pre>