Coder Social home page Coder Social logo

Comments (10)

Kabiirk avatar Kabiirk commented on August 28, 2024 1

Hi @vezdeneszter ,

Can I work in this ? I have experience with python, but this would be the first time I would be contributing to an actual python package hosted on PIP.

Best Regards.
Kabiir Krishna

from dem.

vezdeneszter avatar vezdeneszter commented on August 28, 2024

Hi, thank you for your offer to contribute! Sure, I'll assign it to you. Please don't forget to join our Discord server: https://discord.com/invite/Nv6hSzXruK where we have a dedicated channel for Hacktoberfest. There you can discuss this issue in detail 😊

from dem.

Kabiirk avatar Kabiirk commented on August 28, 2024

Thanks !
appreciate it 👍

from dem.

Kabiirk avatar Kabiirk commented on August 28, 2024

Hi Guys,

I was able to get the project up and running. But I am unable to re-build the project from source (is it required ?) to see whatever changes I have made to my local branch. I was also facing some issues in creating a test environment to check my outputs.
image

Changes made till now:
image
I simply added a new cmd_script and some basic code in main.py to run it like other CLI commands. However, when I input dem list-host I get the following error:
image

Let me know if there are any other steps to be performed apart from the ones mentioned in the DEM Contribution Guidelines

Best Regards.
Kabiir Krishna

P.S.
Here is my System info (if it help)
image

from dem.

janosmurai avatar janosmurai commented on August 28, 2024

Hi @Kabiirk
Your approach to the implementation looks good to me.
You installed DEM as a pip package, meaning you don't run it from source. This is the reason why you can't use your new command. First, you need to set up a virtual environment with poetry and you will be able to test you modifications. If you need any help to do that, text me on Discord!
The first error you see means that something is not quite alright in your installation. (The error message you see is not very helpful, so that must be improved in the future.) Could you tell me which Docker Engine version do you have?

from dem.

Kabiirk avatar Kabiirk commented on August 28, 2024

Hi @janosmurai ,

Appreciate the prompt revert.

  1. I don't have axem-dem installed via pip:
    image

  2. Is this the correct way to setup virtualenv via poetry (please refer screenshot below) ? I followed what was mentioned in the Working with DEM source section of the guidelines. If required we'll troubleshoot this further on discord.
    image
    I also tried running the dem create DEV_ENV_NAME but was receiving error as shown in my earlier message (1st Screenshot).

  3. I have docker engine version 24.0.6 (PFB screenshot)
    image

from dem.

janosmurai avatar janosmurai commented on August 28, 2024

Yes, my bad, I see it now that you were in the virtual env. You set it up the right way.
It looks like every dependency is correct. Could you please also try the simple comand dem --version.

from dem.

Kabiirk avatar Kabiirk commented on August 28, 2024

Hi Janos,

dem --version works for me. I have messaged you on Discord to take things forward.

from dem.

Kabiirk avatar Kabiirk commented on August 28, 2024

Hi all,

Done with coding this feature, the outputs are as follows:

  1. When there are no Hosts in the config_file
    image

  2. Where there are hosts available in the config_file
    image

  3. dem list-host --help also works
    image

Let me know if this works & I can make the PR or what are the changes, if any. (for e.g. dem add-host --help mentions that host['address'] should be an IP address & not a URL, w.r.t that, Let me know if address of Test4 of Output 2 is fine with you guy, or if that is a 'bug'.)

Best Regards,
Kabiir Krishna

from dem.

janosmurai avatar janosmurai commented on August 28, 2024

The command usage LGTM. If your modification complies with the contribution guide, you can open the PR.
The dem add-host --help states that the address input parameter is IP or hostname of the host. The way you tested this command is okay.
In the future, a check will be implemented to inform the user that the input IP address or hostname of the dem add-host command points to a server capable of acting as a remote host.

from dem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.