LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-03-2019, 04:12 PM   #1
eaivision
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Rep: Reputation: 0
Unhappy Getting 'NoneType' object is not subscriptiable message while registering new RHEL VM with RedHat.


Hello,

I have just created new RHEL VM in VMWare Player. I can not run "yum update -y" because it is not currently registered with Red Hat Website. When I try to register with "subscription-manager register --username <username> --password <password> ...." I get the following message:

'NoneType' object is not subscriptable.

I get this message with both RHEL 8 as well as RHEL7 VMs.

What do I need to do ?

Any thoughts ?
 
Old 08-03-2019, 05:00 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Call Red Hat?
 
Old 08-04-2019, 09:29 AM   #3
eaivision
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
I do not have Red Hat subscription and doing of my own VM. CanI still call Red Hat ?
 
Old 08-04-2019, 04:28 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930
No, If you do not have a paid subscription you can not get updates. Use CentOS instead.
 
Old 08-04-2019, 05:56 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by eaivision View Post
I do not have Red Hat subscription and doing of my own VM. CanI still call Red Hat ?
I thought you were getting the error while trying to start a RH subscription. I misunderstood.

If you're going to use Red Hat, you need to have a subscription. Else, as michaelk said, use CentOS.
 
Old 11-07-2019, 12:03 AM   #6
rampatter
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
'NoneType' object is not subscriptable

A subscriptable object is any object that implements the __getitem__ special method (think lists, dictionaries). It is an object that records the operations done to it and it can store them as a "script" which can be replayed. You are trying to subscript an object which you think is a list or dict, but actually is None. NoneType is the type of the None object which represents a lack of value, for example, a function that does not explicitly return a value will return None. 'NoneType' object is not subscriptable is the one thrown by python when you use the square bracket notation object[key] where an object doesn't define the __getitem__ method . You might have noticed that the method sort() that only modify the list have no return value printed – they return the default None. This is a design principle for all mutable data structures in Python.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Object Cache not registering links SpectralMemories Programming 5 04-18-2018 08:16 AM
TypeError: 'NoneType' object is not iterable biplabbijay Programming 5 10-30-2017 07:57 AM
[SOLVED] Python 2.7 - AttributeError: 'NoneType' object has no attribute 'strip' glupa4e Slackware 14 08-29-2016 01:35 PM
[SOLVED] Python cannot concatenate 'str' and 'NoneType' objects madsovenielsen Programming 4 06-24-2010 01:44 PM
PyGTK - Hiding GtkDialog Turns Widget Into NoneType taylor_venable Programming 0 10-25-2006 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration