Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nkkko opened this issue Aug 19, 2024 · 13 comments · Fixed by #120
Closed

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

nkkko opened this issue Aug 19, 2024 · 13 comments · Fixed by #120
Assignees
Labels
💎 Bounty guide Content in the form of an guide or how-to 💰 Rewarded

Comments

@nkkko
Copy link
Member

nkkko commented Aug 19, 2024

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 nkkko added the guide Content in the form of an guide or how-to label Aug 19, 2024
@nkkko
Copy link
Member Author

nkkko commented Aug 19, 2024

/bounty $100

Copy link

algora-pbc bot commented Aug 19, 2024

💎 $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 bountyShare 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
🟢 @Kiran1689 Nov 15, 2024, 4:22:13 PM #120

@35C4n0r
Copy link

35C4n0r commented Aug 19, 2024

/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
Copy link

varuns3546 commented Aug 19, 2024

/attempt #10

@nkkko
Copy link
Member Author

nkkko commented Aug 22, 2024

@35C4n0r @varuns3546 any updates?

@35C4n0r
Copy link

35C4n0r commented Aug 22, 2024

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

@35C4n0r
Copy link

35C4n0r commented Aug 22, 2024

@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
Copy link
Member Author

nkkko commented Aug 22, 2024

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

@Kiran1689
Copy link
Contributor

/attempt #10

Copy link

algora-pbc bot commented Nov 21, 2024

💡 @Kiran1689 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@mojafa
Copy link
Collaborator

mojafa commented Nov 21, 2024

@Kiran1689 I've assigned this issue to you

@mojafa
Copy link
Collaborator

mojafa commented Nov 21, 2024

@Kiran1689 Some housekeeping, your PR has all the other contributions you have requested to make, please clean up and only have content for this issue. Rsubmit the PR please. I'll review it then.

Copy link

algora-pbc bot commented Dec 13, 2024

🎉🎈 @Kiran1689 has been awarded $100! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💎 Bounty guide Content in the form of an guide or how-to 💰 Rewarded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants