I AM getting this error plss help me

38 views
Skip to first unread message

surendra ediga

unread,
Mar 14, 2020, 8:26:07 AM3/14/20
to Django users
Traceback (most recent call last):
  File "C:\Users\Asus\projects\manage.py", line 21, in <module>
    main()
  File "C:\Users\Asus\projects\manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 244, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 38, in load_command_class
    return module.Command()
AttributeError: 'NoneType' object has no attribute 'Command'
PS C:\Users\Asus\projects> 
error.JPG

Jorge Gimeno

unread,
Mar 15, 2020, 12:06:46 AM3/15/20
to django...@googlegroups.com
Can you try closing the powershell, running the Powershell as an admin, then trying again?

Another option would be to try from the command terminal instead of Powershell.

Let us know how it goes.

-Jorge

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/df235239-985c-413b-a5d4-1ab5a3c5e69f%40googlegroups.com.

surendra bhaskar

unread,
Mar 15, 2020, 6:03:01 AM3/15/20
to django...@googlegroups.com

Khaleel Ahmed H. M. Shariff

unread,
Mar 15, 2020, 12:48:55 PM3/15/20
to django...@googlegroups.com
Hi Mr. Surendra,
May Peace, Blessings & Mercy of Almighty God be on you!

Hope your code has started working. In case the code is still not working, here is my input. If you happen to see AttributeError: 'NoneType' object has no attribute 'Command'

Look for a function which either does not have a return or has a return with nothing. When the function does not have a return or has a call to the return function with nothing returned, It returns None. In case, you happen to give ReturnedValue.Attribute it gives this error. 

Hope it helps   

Keep me posted if it helps.
Thanks in advance. 


God Bless You!
God Bless India!!

--

Love & Regards
Dr. (h.c.) Khaleel Ahmed H. M.

Managing Director, Tanzanite Realty India Private Limited

+91-9845007864

+91-7829777864

-----------------------------------------------------------------------
Human Life is Precious
Koran Surah Ma'idah Chapter 5 Verse 32:
If anyone killed a person, not in retaliation of murder, or (and) to spread mischief in the land - it would be as if he killed all mankind, & if anyone saved a life, it would be as if he saved the life of all mankind.



maninder singh Kumar

unread,
Mar 16, 2020, 1:12:45 AM3/16/20
to django...@googlegroups.com
The object is empty
 
               
 


--

Jorge Gimeno

unread,
Mar 16, 2020, 12:17:15 PM3/16/20
to django...@googlegroups.com
To be pedantic, the object is None.  It's a known issue with Powershell on Windows.

-Jorge.

Reply all
Reply to author
Forward
0 new messages