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
#7
(Dec-26-2023, 09:27 PM)Gribouillis Wrote:
(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

It works now thank you
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  sharepoint: Access has been blocked by Conditional Access policies CAD79 0 2,081 Jul-12-2024, 09:36 AM
Last Post: CAD79
  dict class override: how access parent values? Andrey 1 2,476 Mar-06-2022, 10:49 PM
Last Post: deanhystad
  SQLAlchemy Object Missing when Null is returned Personne 1 3,144 Feb-19-2022, 02:50 AM
Last Post: Larz60+
  Getting "name 'get_weather' is not defined error and no json_data returned? trthskr4 6 5,175 Sep-14-2021, 09:55 AM
Last Post: trthskr4
  Libraries installed with pipenv, but ModuleNotFoundError returned jpncsu 2 4,336 Sep-06-2021, 07:24 PM
Last Post: jpncsu
  access dictionary with keys from another and write values to list redminote4dd 6 4,481 Jun-03-2020, 05:20 PM
Last Post: DeaD_EyE
  Exception: Returned Type Mismatch Error devansing 1 6,262 Mar-06-2020, 07:26 PM
Last Post: ndc85430
  How to access specific values from a dict? t4keheart 6 4,079 Feb-05-2020, 11:34 PM
Last Post: metulburr
  How to use a returned value? t4keheart 12 6,987 Jan-16-2020, 06:54 AM
Last Post: perfringo
  Strange Characters in JSON returned string fioranosnake 4 6,928 Dec-02-2019, 07:25 PM
Last Post: fioranosnake

Forum Jump:

User Panel Messages

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