ModuleNotFoundError: 'fcntl' on Windows (Gunicorn + meltano ui)
What is the current bug behavior?
On a brand new project and new meltano install on Windows (Windows 10 Insiders with Python3.7) I'm receiving an error about missing the fcntl
module, and the command fails.
ModuleNotFoundError: No module named 'fcntl'
[AirflowWorker][ERROR][2019-10-17 11:22:26,094] Failed to start plugin <meltano.core.plugin.airflow.Airflow object at 0x000001C93E882438>.
What is the expected correct behavior?
I expect this command to launch the UI server.
Steps to reproduce
On Windows:
pip install meltano
meltano init meltano-demo
cd meltano-demo
meltano ui
Relevant logs and/or screenshots
Please use code blocks (```) to format console output
(meltano) c:\Files\Source\dataops-quickstart\meltano-demo>meltano ui
[MainThread][INFO][2019-10-17 11:22:25,629] Context impl SQLiteImpl.
[MainThread][INFO][2019-10-17 11:22:25,630] Will assume non-transactional DDL.
System database up-to-date.
[MainThread][INFO][2019-10-17 11:22:25,783] Auto-compiling models in 'C:\Files\Source\dataops-quickstart\meltano-demo\model'
[MainThread][INFO][2019-10-17 11:22:25,787] All workers started.
Traceback (most recent call last):
File "C:\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\Files\venvs\meltano\Scripts\gunicorn.exe\__main__.py", line 5, in <module>
File "c:\files\venvs\meltano\lib\site-packages\gunicorn\app\wsgiapp.py", line 9, in <module>
from gunicorn.app.base import Application
File "c:\files\venvs\meltano\lib\site-packages\gunicorn\app\base.py", line 12, in <module>
from gunicorn import util
File "c:\files\venvs\meltano\lib\site-packages\gunicorn\util.py", line 9, in <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'
[AirflowWorker][ERROR][2019-10-17 11:22:26,094] Failed to start plugin <meltano.core.plugin.airflow.Airflow object at 0x000001C93E882438>.
Exception in thread AirflowWorker:
Traceback (most recent call last):
File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "c:\files\venvs\meltano\lib\site-packages\meltano\api\workers.py", line 201, in run
self.start_all()
File "c:\files\venvs\meltano\lib\site-packages\meltano\api\workers.py", line 177, in start_all
self._webserver = invoker.invoke("webserver", "-w", "1", stdout=webserver)
File "c:\files\venvs\meltano\lib\site-packages\meltano\core\plugin_invoker.py", line 122, in invoke
process = subprocess.Popen(popen_args, **Popen_options)
File "C:\Python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Possible fixes
N/A
Further regression test
Ensure we automatically catch similar issues in the future
-
Write additional adequate test cases and submit test results -
Test results should be reviewed by a person from the team
Edited by AJ Steers