GithubHelp home page GithubHelp logo

Comments (3)

riscy avatar riscy commented on July 19, 2024

Can you make sure you're showing me the exact same input and output that you're seeing in a terminal?

$ python melpazoid /path/to/my/openai/ '(openai :fetcher github :repo "emacs-openai/openai")'

won't work in most cases (there is no .py extension, and the melpazoid dir does not contain a `main.py file). Also when it's run as a script, melpazoid wants your cwd to be the melpazoid root dir. What I think you are typing and seeing must be closer to:

$ python melpazoid/melpazoid.py /path/to/my/openai/ '(openai :fetcher github :repo "emacs-openai/openai")'
usage: melpazoid.py [-h] [--license] [--recipe RECIPE] [target]
melpazoid.py: error: argument target: '/path/to/my/openai/' must be a MELPA PR or local path

Per the above help message, for a local repo you want to use melpazoid.py --recipe RECIPE target

$ python melpazoid/melpazoid.py /path/to/my/openai/ --recipe '(openai :fetcher github :repo "emacs-openai/openai")'

(i.e. add the --recipe flag before the recipe itself)

from melpazoid.

jcs090218 avatar jcs090218 commented on July 19, 2024

Here is the full output directly copied from the terminal. I've tried a different kind of input (with or without quotes, change the order, etc.). 🤔

PS D:\_workspace\_eask\melpazoid> python .\melpazoid\melpazoid.py 'D:/_workspace/_eask/openai' '(openai :fetcher github :repo "emacs-openai/openai")'
usage: melpazoid.py [-h] [--license] [--recipe RECIPE] [target]
melpazoid.py: error: unrecognized arguments: (openai :fetcher github :repo emacs-openai/openai)
PS D:\_workspace\_eask\melpazoid> python .\melpazoid\melpazoid.py 'D:/_workspace/_eask/openai' --recipe '(openai :fetcher github :repo "emacs-openai/openai")'
usage: melpazoid.py [-h] [--license] [--recipe RECIPE] [target]
melpazoid.py: error: argument --recipe: '(openai :fetcher github :repo emacs-openai/openai)' must be a valid MELPA recipe
PS D:\_workspace\_eask\melpazoid> python .\melpazoid\melpazoid.py --recipe '(openai :fetcher github :repo "emacs-openai/openai")' 'D:/_workspace/_eask/openai'
usage: melpazoid.py [-h] [--license] [--recipe RECIPE] [target]
melpazoid.py: error: argument --recipe: '(openai :fetcher github :repo emacs-openai/openai)' must be a valid MELPA recipe
PS D:\_workspace\_eask\melpazoid> python .\melpazoid\melpazoid.py --recipe '(openai :fetcher github :repo "emacs-openai/openai")' D:\_workspace\_eask\openai\
usage: melpazoid.py [-h] [--license] [--recipe RECIPE] [target]
melpazoid.py: error: argument --recipe: '(openai :fetcher github :repo emacs-openai/openai)' must be a valid MELPA recipe
PS D:\_workspace\_eask\melpazoid> python .\melpazoid\melpazoid.py --recipe (openai :fetcher github :repo "emacs-openai/openai") D:\_workspace\_eask\openai\
usage: openai [-h] [-V] [-v] [-b API_BASE] [-k API_KEY] [-p PROXY [PROXY ...]]
              [-o ORGANIZATION]
              {api,tools,wandb} ...
openai: error: argument {api,tools,wandb}: invalid choice: ':fetcher' (choose from 'api', 'tools', 'wandb')
usage: melpazoid.py [-h] [--license] [--recipe RECIPE] [target]
melpazoid.py: error: argument --recipe: 'D:\\_workspace\\_eask\\openai\\' must be a valid MELPA recipe

Also when it's run as a script, melpazoid wants your cwd to be the melpazoid root dir

I'm in the melpazoid root dir.

(there is no .py extension

Sorry for the confusion. I did input .py extension!

, and the melpazoid dir does not contain a `main.py file)

Do you mean setup.py? Where is the main.py file? 🤔

from melpazoid.

jcs090218 avatar jcs090218 commented on July 19, 2024

FYI, I've added partial melpazoid support in Eask, see emacs-eask/cli#202.

from melpazoid.

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.