Questions tagged [codespaces]

Directed to be used only when the question is related to Visual Studio Codespaces (a Cloud IDE).

Visual Studio Codespaces is a web-based IDE service to manage projects from the Cloud system. This service is powered by Microsoft Corporation.

137 questions
2
votes
0 answers

Error: aplay: main:831: audio open error: No such file or directory

I'm trying to run pyttsx3 on my codespace. But, it does not seem to be working I keep gettiong this error aplay: main:831: audio open error: No such file or directory I tried running pyttsx3 file on the vs code in my windows pc and it works fine. I…
Rylie
  • 19
  • 4
2
votes
1 answer

Are gitignore’d `.env` files in GitHub Codespaces visible to anyone but me?

Background GitHub allows you to store Encrypted Secrets (Settings > Codespaces > Codespaces secrets), which is an amazing feature. For security, secrets stored this way are never visible to you once they are stored. However, while hacking on…
2
votes
0 answers

Poor terminal performance in local VS Code Dev Container

I'm exploring remote container development in VS Code and GitHub Codespaces. For context, I'm working in Windows 11 on performant Dell XPS 9310 i7 / 32 GB RAM machine. When I open my Codespace / Dev Container in GitHub Codespaces via the browser, or…
2
votes
0 answers

None of your organizations have access to Codespaces yet

I am unable to locate and enable Codespaces on my Github account. I have tried different variation like Navigating in the organization setting but there is no option related to codespace. Can anyone guide me in the right direction on this.
hellowahab
  • 2,445
  • 4
  • 21
  • 34
2
votes
1 answer

Running an ASP.NET Core web app in GitHub Codespaces gives 502 Bad Gateway

I'm trying to get GitHub Codespaces working with a simple asp.net core web app. I've created a new asp.net core web app (dotnet new webapp), confirmed it all works locally, and then added it to an Organization GitHub repo. From here, I open the repo…
Matt Roberts
  • 26,371
  • 31
  • 103
  • 180
2
votes
1 answer

Is there a way to Create CodeSpace using CLI or API

For now I can able to create CodeSpace using option available in GitHub UI as shown in the below screenshot. Create CodeSpace Option Is there any option to automate the CodeSpace creation flow like CLI (or) API, from which I can create CodeSpace?
Guptha
  • 21
  • 4
2
votes
1 answer

How to restore a SQL Server backup in GitHub Codespaces container?

I have setup a GitHub Codespaces environment that includes a SQL Server container. Inside /.devcontainer/docker-compose.yml i have something like this; # ... other containers configururation db: image:…
Lev
  • 583
  • 3
  • 15
2
votes
1 answer

Custom keybindings in vscode devcontainer definition

I’m trying to add a couple of key-bindings to my codespace image. But I can’t find where to store the keybindings.json, when I open the file in an active codespace it’s located in /User/keybindings.json, but I can’t find it in bash or when I try to…
jessehouwing
  • 106,458
  • 22
  • 256
  • 341
2
votes
0 answers

Failed to connect to the remote extension host server (Error: Time limit reached)

I ran into this issue frequently today, and I had to resort to a workaround, but it will happen again soon. Failed to connect to the remote extension host server (Error: Time limit reached) Screenshot: Any help will be appreciated.
Jie Tong
  • 29
  • 2
1
vote
0 answers

PyAudio project is giving me the following error: ALSA lib confmisc.c:767:(parse_card) cannot find card '0'

I am currently working on a project using PyAudio and am receiving the above error when I try to run the following code: import pyaudio import wave CHUNK = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 RECORD_SECONDS = 5 audio =…
1
vote
2 answers

How can I write a python selenium webscraping script using chromedriver on github codespaces?

I have got github codespaces environment and I have installed both selenium and the necessary chromedriver-binary using pip pip install selenium chromedriver-binary Here's an example of the Python web scraper I'm writing import json from selenium…
steambun
  • 35
  • 7
1
vote
0 answers

Forward ipv6 port on github codespace

I'm trying to create a port forwarding in github codespaces. When I run the application using an ipv4 port, the codespace itself creates port forwarding and it just works, but when I try to forward an ipv6 port, I can't access the application that…
Estevanbs
  • 140
  • 2
  • 13
1
vote
1 answer

github_conf/branch_protection_rules.json keeps on showing up

I am using GitHub Codespaces and try to run pre-commit run --all-files on its terminal. I have pasted the pre-commit configuration below for reference. - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.4.0 hooks: - id:…
gue
  • 67
  • 8
1
vote
1 answer

codespaces dockerfile copy fails

I am trying to learn codespaces and I have the following dockerfile: FROM mcr.microsoft.com/vscode/devcontainers/base:debian-11 RUN apt update -y; \ apt install python3-pip -y COPY .devcontainer/req.txt /usr/local/bin/. RUN pip3 install…
JohnJ
  • 6,736
  • 13
  • 49
  • 82
1
vote
2 answers

ModuleNotFoundError while using GitHub codespace editor

Recently I started using GitHub codespace for the first time. I created a new codespace from one of my repositories. Assuming the folder structure as below: my-codespace |--- utils |------ my_script.py |--- config.py I get the following error when…
1 2
3
9 10