Python Forum
How to access values returned from inquirer
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access values returned from inquirer
#6
(Dec-26-2023, 09:24 PM)cspower Wrote: Error:Traceback (most recent call last): File "/home/cspower/python_projects/D_E_R.py", line 37, in <module>
main()
File "/home/cspower/python_projects/D_E_R.py", line 29, in main
pprint(m_g)
TypeError: 'module' object is not callable
It means that you tried to use the pprint module instead of the pprint function. You can do
pprint.pprint(m_g)
Or alternately you could replace
import pprint
by
from pprint import pprint
« We can solve any problem by introducing an extra level of indirection »
Reply


Messages In This Thread
RE: How to access values returned from inquirer - by Gribouillis - Dec-26-2023, 09:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  dict class override: how access parent values? Andrey 1 1,694 Mar-06-2022, 10:49 PM
Last Post: deanhystad
  SQLAlchemy Object Missing when Null is returned Personne 1 1,804 Feb-19-2022, 02:50 AM
Last Post: Larz60+
  Getting "name 'get_weather' is not defined error and no json_data returned? trthskr4 6 3,756 Sep-14-2021, 09:55 AM
Last Post: trthskr4
  Libraries installed with pipenv, but ModuleNotFoundError returned jpncsu 2 3,094 Sep-06-2021, 07:24 PM
Last Post: jpncsu
  access dictionary with keys from another and write values to list redminote4dd 6 3,334 Jun-03-2020, 05:20 PM
Last Post: DeaD_EyE
  Exception: Returned Type Mismatch Error devansing 1 5,235 Mar-06-2020, 07:26 PM
Last Post: ndc85430
  How to access specific values from a dict? t4keheart 6 3,180 Feb-05-2020, 11:34 PM
Last Post: metulburr
  How to use a returned value? t4keheart 12 5,073 Jan-16-2020, 06:54 AM
Last Post: perfringo
  Strange Characters in JSON returned string fioranosnake 4 5,319 Dec-02-2019, 07:25 PM
Last Post: fioranosnake
  Not all data returned from sys.argv ecdhyne 2 2,855 Sep-05-2019, 08:27 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020