Giter Club home page Giter Club logo

amqp-client-cli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

amqp-client-cli's Issues

SyntaxError: invalid syntax

Any suggestion?

c2@ubuntu:~$ amqpcli config --help

Traceback (most recent call last):
File "/usr/local/bin/amqpcli", line 11, in
load_entry_point('amqp-client-cli==0.4.1', 'console_scripts', 'amqpcli')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/home/c2/.local/lib/python2.7/site-packages/amqp_client_cli/main.py", line 34
user = input(f"{Fore.GREEN}User: {Fore.RESET}")
^
SyntaxError: invalid syntax

TypeError: unexpected kwargs: {'ssl': False}

Problem description

Attempting to send a message using amqpcli yields a TypeError: unexpected kwargs: {'ssl': False}:

$ amqpcli send localhost 5672 amq.direct queue -u guest -m "Test"
Connecting to queue @ localhost:5672... Traceback (most recent call last):
  File "/home/tg/.local/bin/amqpcli", line 33, in <module>
    sys.exit(load_entry_point('amqp-client-cli==0.3', 'console_scripts', 'amqpcli')())
  File "/home/tg/.local/lib/python3.9/site-packages/amqp_client_cli/main.py", line 179, in main
    app.run()
  File "/home/tg/.local/lib/python3.9/site-packages/clip.py", line 652, in run
    self.invoke(self.parse(tokens))
  File "/home/tg/.local/lib/python3.9/site-packages/clip.py", line 634, in invoke
    self._main.invoke(parsed)
  File "/home/tg/.local/lib/python3.9/site-packages/clip.py", line 523, in invoke
    self._subcommands[k].invoke(v)
  File "/home/tg/.local/lib/python3.9/site-packages/clip.py", line 519, in invoke
    self._callback(**{k: v for k, v in iteritems(parsed) if k not in self._subcommands})
  File "/home/tg/.local/lib/python3.9/site-packages/amqp_client_cli/main.py", line 112, in amqp_send
    connection = pika.BlockingConnection(pika.ConnectionParameters(
  File "/home/tg/.local/lib/python3.9/site-packages/pika/connection.py", line 658, in __init__
    raise TypeError('unexpected kwargs: %r' % (kwargs,))
TypeError: unexpected kwargs: {'ssl': False}

Environment

$ uname -a
Linux vega 5.9.14-arch1-1 #1 SMP PREEMPT Sat, 12 Dec 2020 14:37:12 +0000 x86_64 GNU/Linux

$ python --version
Python 3.9.1

Thanks,
Thilo

better doc for authentication?

thanks for this fine repo! I think you might want to stress that during authentication, the username and password must be passed quoted:

User: guest
Password

should really be:
User: "guest"
"Password"

SyntaxError: invalid syntax

Hi, here is my output with the command line from your example.

 amqpcli send 127.0.0.1 5672 exchange_a simple_message -m "Hello there" -v vhost -s
Traceback (most recent call last):
  File "/usr/local/bin/amqpcli", line 11, in <module>
    load_entry_point('amqp-client-cli==0.2.post3', 'console_scripts', 'amqpcli')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 560, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2648, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2302, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2308, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/amqp_client_cli/main.py", line 106
    print("Connecting to queue @ %s:%s... " % (host, port), end="")

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.