how to do this its not working ```cd airbyte-integ...
# ask-ai
h
how to do this its not working
Copy code
cd airbyte-integrations/connector-templates/generator./generate.sh
k
If running the following command is not working for you:
Copy code
bash cd airbyte-integrations/connector-templates/generator ./generate.sh
There are a few common issues and solutions, especially if you are on Windows: 1. Windows Compatibility Issues The
generate.sh
script often fails on Windows, especially in environments like Git Bash or CMD, due to TTY/input device issues or Docker compatibility. You may see errors like "the input device is not a TTY" or errors on specific lines of the script. Solution: - Use WSL2 (Windows Subsystem for Linux 2) to run Airbyte’s code and scripts. This is the recommended way to work with Airbyte on Windows, as mentioned in the Airbyte forums: > You must use WSL2 to run Airbyte’s code in Windows OS. [Forum: Error creating HTTP API source on windows](https://discuss.airbyte.io/t/1848) - Alternatively, if you are using Git Bash, try running the script with
npm
as a workaround: 1. Install [Java](https://www.java.com/download/ie_manual.jsp) and [Node.js](https://nodejs.org/en/download/). 2. Open Git Bash as administrator. 3. Navigate to the
connector-templates
directory. 4. Run
npm install
to set up dependencies. 5. Run
npm run generate
to execute the generator script. [Forum: Unable to Creating the Source for building a custom connector using Python CDK](https://discuss.airbyte.io/t/2706) 2. Docker Issues Sometimes, restarting Docker can resolve issues with the script failing unexpectedly: > Restarting docker resolved the issue. [Forum: Unable to build new destination connector](https://discuss.airbyte.io/t/2358) 3. General Troubleshooting - Make sure you are in the correct directory and that the script has execute permissions (
chmod +x generate.sh
). - If you are on Linux or macOS, the script should work as expected in a standard terminal. If you continue to have issues, please specify your operating system and any error messages you see, so I can provide more targeted help.