question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings on CLI with Python 3.8.1

See original GitHub issue

Description

When invoking the eb CLI for the first time after download (I installed using brew), a slew of Python warnings are printed to the console. However, after the first use these warnings do not show up again. Not a big problem, but just wanted to make this known.

Steps to reproduce

Invoke the eb CLI for the first time after installation: eb --version

Observed result

eb --version

/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if x is 0 or x is 1:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if x is 0 or x is 1:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif y is 0 or y is 1:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif y is 0 or y is 1:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if original_result is 0:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/ebcli/display/screen.py:442: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/semantic_version/base.py:92: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.prerelease and self.minor is 0 and self.patch is 0:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/semantic_version/base.py:92: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.prerelease and self.minor is 0 and self.patch is 0:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/semantic_version/base.py:98: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.prerelease and self.patch is 0:
/usr/local/Cellar/aws-elasticbeanstalk/3.17.0/libexec/lib/python3.8/site-packages/ebcli/controllers/create.py:201: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if instance_types is "":

EB CLI 3.17.0 (Python 3.8.1)

Expected result

EB CLI 3.17.0 (Python 3.8.1)

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: MacOS Mojave (Version 10.14.6)
  2. Homebrew: 2.2.4
eb --version --debug

2020-02-01 19:53:35,999 (DEBUG) cement.core.foundation : laying cement for the 'eb' application
2020-02-01 19:53:35,999 (DEBUG) cement.core.hook : defining hook 'pre_setup'
2020-02-01 19:53:35,999 (DEBUG) cement.core.hook : defining hook 'post_setup'
2020-02-01 19:53:35,999 (DEBUG) cement.core.hook : defining hook 'pre_run'
2020-02-01 19:53:35,999 (DEBUG) cement.core.hook : defining hook 'post_run'
2020-02-01 19:53:35,999 (DEBUG) cement.core.hook : defining hook 'pre_argument_parsing'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : defining hook 'post_argument_parsing'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : defining hook 'pre_close'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : defining hook 'post_close'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : defining hook 'signal'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : defining hook 'pre_render'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : defining hook 'post_render'
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : registering hook 'add_handler_override_options' from cement.core.foundation into hooks['post_setup']
2020-02-01 19:53:36,000 (DEBUG) cement.core.hook : registering hook 'handler_override' from cement.core.foundation into hooks['post_argument_parsing']
2020-02-01 19:53:36,000 (DEBUG) cement.core.handler : defining handler type 'extension' (IExtension)
2020-02-01 19:53:36,000 (DEBUG) cement.core.handler : defining handler type 'log' (ILog)
2020-02-01 19:53:36,000 (DEBUG) cement.core.handler : defining handler type 'config' (IConfig)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : defining handler type 'mail' (IMail)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : defining handler type 'plugin' (IPlugin)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : defining handler type 'output' (IOutput)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : defining handler type 'argument' (IArgument)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : defining handler type 'controller' (IController)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : defining handler type 'cache' (ICache)
2020-02-01 19:53:36,001 (DEBUG) cement.core.handler : registering handler '<class 'cement.core.extension.CementExtensionHandler'>' into handlers['extension']['cement']
2020-02-01 19:53:36,019 (DEBUG) cement.ext.ext_plugin : plugin config dir /etc/eb/plugins.d does not exist.
2020-02-01 19:53:36,019 (DEBUG) cement.ext.ext_plugin : plugin config dir /Users/yanniskatsaros/.eb/plugins.d does not exist.
2020-02-01 19:53:36,025 (DEBUG) ebcli.core.hooks : -- EBCLI Version: 3.17.0
2020-02-01 19:53:36,025 (DEBUG) ebcli.core.hooks : -- Python Version: 3.8.1 (default, Dec 27 2019, 18:05:45)
[Clang 11.0.0 (clang-1100.0.33.16)]
2020-02-01 19:53:36,025 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users/yanniskatsaros  -Going up a level
2020-02-01 19:53:36,025 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users  -Going up a level
2020-02-01 19:53:36,026 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /  -Going up a level
2020-02-01 19:53:36,026 (DEBUG) ebcli.core.fileoperations : Still at the same directory /
2020-02-01 19:53:36,026 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users/yanniskatsaros  -Going up a level
2020-02-01 19:53:36,026 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users  -Going up a level
2020-02-01 19:53:36,026 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /  -Going up a level
2020-02-01 19:53:36,026 (DEBUG) ebcli.core.fileoperations : Still at the same directory /
2020-02-01 19:53:36,027 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users/yanniskatsaros  -Going up a level
2020-02-01 19:53:36,027 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users  -Going up a level
2020-02-01 19:53:36,027 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /  -Going up a level
2020-02-01 19:53:36,027 (DEBUG) ebcli.core.fileoperations : Still at the same directory /
2020-02-01 19:53:36,027 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users/yanniskatsaros  -Going up a level
2020-02-01 19:53:36,027 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users  -Going up a level
2020-02-01 19:53:36,028 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /  -Going up a level
2020-02-01 19:53:36,028 (DEBUG) ebcli.core.fileoperations : Still at the same directory /
2020-02-01 19:53:36,028 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users/yanniskatsaros  -Going up a level
2020-02-01 19:53:36,028 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /Users  -Going up a level
2020-02-01 19:53:36,028 (DEBUG) ebcli.core.fileoperations : beanstalk directory not found in /  -Going up a level
2020-02-01 19:53:36,028 (DEBUG) ebcli.core.fileoperations : Still at the same directory /

EB CLI 3.17.0 (Python 3.8.1)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
nguyenduytacommented, Aug 22, 2020

same above, pip3 install jmespath fixed for me

14reactions
viniciosbarroscommented, Jul 21, 2020

I am also and still getting it. so annoying. but I was able to fix with: pip uninstall jmespath && pip3 install jmespath

Read more comments on GitHub >

github_iconTop Results From Across the Web

warnings — Warning control — Python 3.11.1 documentation
The warnings filter controls whether warnings are ignored, displayed, or turned into errors (raising an exception). Conceptually, the warnings filter maintains ...
Read more >
1. Command line and environment — Python 3.11.1 ...
Warnings can also be controlled using the PYTHONWARNINGS environment variable and from within a Python program using the warnings module. For example, the ......
Read more >
What's New In Python 3.8 — Python 3.11.1 documentation
Many builtin and extension functions that take integer arguments will now emit a deprecation warning for Decimal s, Fraction s and any other...
Read more >
3. Configure Python — Python 3.11.1 documentation
Environment variable used in the Makefile: Python command line arguments for the ... the list of default warning filters is empty in the...
Read more >
Unable to upgrade Python 3.8.10 to 3.10 - SOLVED
If you know how to use the command line on Linux, it's not too hard. ... grep python3.10 WARNING: apt does not have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found