daytonaio / content

Daytona Content Programme for Technical Writers
https://www.daytona.io/dotfiles/
Other
46 stars 35 forks source link

Setting Up a Python Dev Environment with DevContainers and Daytona #10

Open nkkko opened 3 weeks ago

nkkko commented 3 weeks ago

Content Type

Guide

Article Description

Daytona as endgame Python dev env. how to skip all env managers like venv, etc. and just use Daytona.

Explore the benefits of using DevContainers for Python development and how to set them up step by step. You can use a provided reference repo, or create a new one with some specific spin, etc.

Target Audience

Python devs, data scientists, ml/ai devs.

References/Resources

https://github.com/pamelafox/python-project-template https://www.daytona.io/dotfiles/the-ultimate-guide-to-managing-python-environments

Examples

No response

Special Instructions

No response

nkkko commented 3 weeks ago

/bounty $100

algora-pbc[bot] commented 3 weeks ago

💎 $100 bounty • Daytona

Steps to solve:

  1. Start working: Comment /attempt #10 with your implementation plan
  2. Submit work: Create a pull request including /claim #10 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.

Please respect others by working on PRs that you are allowed to submit attempts to.

e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.

If you can not submit an attempt, you will not receive your payout.

Thank you for contributing to daytonaio/content!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @35C4n0r Aug 19, 2024, 2:59:18 PM WIP
🟢 @varuns3546 Aug 19, 2024, 9:27:06 PM WIP
35C4n0r commented 3 weeks ago

/attempt #10

Algora profile Completed bounties Tech Active attempts Options
@35C4n0r    1 daytonaio bounty
+ 27 bounties from 4 projects
Python, HTML,
JavaScript & more
Cancel attempt
varuns3546 commented 3 weeks ago

/attempt #10

nkkko commented 3 weeks ago

@35C4n0r @varuns3546 any updates?

35C4n0r commented 3 weeks ago

Have already started, need a lil bit more time :)

35C4n0r commented 3 weeks ago

@nkkko, was trying to run ./daytona create, and I'm getting this

 WORKSPACE | ✓ Request submitted
time="2024-08-23T00:33:17+05:30" level=fatal msg="tsnet.Up: context deadline exceeded"

Logs:

$ ./daytona serve
logs.BeeLogger.SetLogger: invalid character 'U' in string escape code
INFO[0000] Starting Daytona server
INFO[0000] Starting local container registry
INFO[0000] Image already pulled
INFO[0004] Downloading default providers
INFO[0004] Default providers downloaded
INFO[0004] Registering providers
INFO[0005] Provider docker-provider registered
INFO[0006] Setting default targets
INFO[0006] Target local already exists. Skipping...
INFO[0006] Default targets set
INFO[0006] Provider docker-provider initialized
INFO[0006] Providers registered
INFO[0006] Starting api server on port 3986
INFO[0007] API REQUEST                                   URI=/health latency="34.2µs" method=GET status=200

    Daytona

   ## Daytona Server is running on port: 3986

   ===

   You may now begin developing

INFO[0012] API REQUEST                                   URI=/health latency=0s method=HEAD status=404
INFO[0012] API REQUEST                                   URI=/profile/ latency=1.7946ms method=GET status=200
INFO[0012] API REQUEST                                   URI=/workspace/ latency=2.0015ms method=GET status=200
INFO[0012] API REQUEST                                   URI=/gitprovider/ latency=2.141ms method=GET status=200
INFO[0012] API REQUEST                                   URI=/project-config/ latency=2.7657ms method=GET status=200
INFO[0012] API REQUEST                                   URI=/server/config latency=2.2376ms method=GET status=200
INFO[0015] API REQUEST                                   URI=/gitprovider/github/namespaces latency=725.647ms method=GET status=200
INFO[0018] API REQUEST                                   URI="/gitprovider/github/%3CPERSONAL%3E/repositories" latency=2.0102459s method=GET status=200
INFO[0035] API REQUEST                                   URI=/health latency=0s method=HEAD status=404
INFO[0035] API REQUEST                                   URI=/profile/ latency="524.8µs" method=GET status=200
INFO[0035] API REQUEST                                   URI=/workspace/ latency=0s method=GET status=200
INFO[0035] API REQUEST                                   URI=/gitprovider/ latency=1.1235ms method=GET status=200
INFO[0035] API REQUEST                                   URI=/project-config/ latency="575µs" method=GET status=200
INFO[0035] API REQUEST                                   URI=/server/config latency=3.8544ms method=GET status=200
INFO[0052] API REQUEST                                   URI=/gitprovider/github/namespaces latency=703.8556ms method=GET status=200
INFO[0057] API REQUEST                                   URI="/gitprovider/github/%3CPERSONAL%3E/repositories" latency=3.578863s method=GET status=200
INFO[0064] API REQUEST                                   URI=/health latency="508µs" method=HEAD status=404
INFO[0064] API REQUEST                                   URI=/profile/ latency="544.6µs" method=GET status=200
INFO[0064] API REQUEST                                   URI=/workspace/ latency=1.0794ms method=GET status=200
INFO[0064] API REQUEST                                   URI=/gitprovider/ latency="601.3µs" method=GET status=200
INFO[0064] API REQUEST                                   URI=/project-config/ latency=1.088ms method=GET status=200
INFO[0064] API REQUEST                                   URI=/server/config latency=1.9281ms method=GET status=200
INFO[0066] API REQUEST                                   URI=/gitprovider/github/namespaces latency=598.0527ms method=GET status=200
INFO[0069] API REQUEST                                   URI="/gitprovider/github/%3CPERSONAL%3E/repositories" latency=2.2462333s method=GET status=200
INFO[0081] API REQUEST                                   URI="/gitprovider/github/%3CPERSONAL%3E/expressCart/branches" latency=631.8686ms method=GET status=200
INFO[0081] API REQUEST                                   URI="/gitprovider/context/https%253A%252F%252Fgithub.com%252F35C4n0r%252FexpressCart" latency=305.1466ms method=GET status=200
INFO[0100] API REQUEST                                   URI=/health latency=0s method=HEAD status=404
INFO[0100] API REQUEST                                   URI=/profile/ latency=1.6216ms method=GET status=200
INFO[0100] API REQUEST                                   URI=/workspace/ latency=1.0981ms method=GET status=200
INFO[0100] API REQUEST                                   URI=/gitprovider/ latency=1.1463ms method=GET status=200
INFO[0100] API REQUEST                                   URI=/project-config/ latency=1.0978ms method=GET status=200
INFO[0100] API REQUEST                                   URI=/server/config latency=2.2325ms method=GET status=200
INFO[0105] API REQUEST                                   URI="/gitprovider/context/https%253A%252F%252Fgithub.com%252Fdaytonaio%252Fcontent" latency=379.6747ms method=GET status=200
INFO[0105] API REQUEST                                   URI="/gitprovider/context/https%253A%252F%252Fgithub.com%252Fdaytonaio%252Fcontent" latency=337.847ms method=GET status=200
INFO[0106] API REQUEST                                   URI="/gitprovider/context/https%253A%252F%252Fgithub.com%252Fdaytonaio%252Fcontent.git" latency=298.1429ms method=GET status=200
INFO[0107] API REQUEST                                   URI=/target/ latency=1.5051ms method=GET status=200
INFO[0107] API REQUEST                                   URI=/server/config latency=2.7309ms method=GET status=200
INFO[0107] API REQUEST                                   URI=/server/network-key latency=21.6646ms method=POST status=200

Can you help me with this?

nkkko commented 3 weeks ago

Looks like internet connectivity problems, please comment on this in our Slack Community in general chan and ask for help.