title: What is causing code to fail after creating executable? Fiona CRS error
body: <p>I have some code that uses geopandas to take data and convert it to a shapefile. The code works perfectly fine when I run it in pycharm. However, if I put the code into a executable using &quot;pyinstaller --onefile&quot; the executable fails to run.</p>
  <p>Note that getting geopandas to work at all with pyinstaller was a massive pain and only after a couple days of googling and tinkering was I able to get that to work.</p>
  <p>This is the error that the executable gives me:</p>
  <pre class="lang-py prettyprint-override"><code>Traceback (most recent call last):
  
    File &quot;Shapefile_Tool.py&quot;, line 3601, in module
  
     create_shapefile()
  
    File &quot;Shapefile_Tool.py&quot;, line 3593, in create_shapefile
  
     shapefile.to_file(Path(output_filepath, 'Final_Shapefile'))
  
    File &quot;geopandas\geodataframe.py&quot;, line 515, in to_file
  
    File &quot;geopandas\io\file.py&quot;, line 128, in to_file
  
    File &quot;fiona\env.py&quot;, line 408, in wrapper
  
    File &quot;fiona\__init__.py&quot;, line 285, in open
  
    File &quot;fiona\collection.py&quot;, line 153, in __init__
  
    File &quot;fiona\_crs.pyx&quot;, line 78, in fiona._crs.crs_to_wkt
  
  fiona.errors.CRSError: Invalid input to create CRS: epsg:32012
  
  [53860] Failed to execute script 'Shapefile_Tool' due to unhandled exception!
  </code></pre>
  <p>Any help is greatly appreciated.</p>