<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic No module named 'readline' when starting &amp;quot;python&amp;quot; in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097635#M451</link>
    <description>&lt;P&gt;I see 3 other forum posts about problems with readline but with different symptoms. I installed l_python35_pu_2017.0.035 using install_GUI.sh and the "install as current user" option. After sourcing ".../bin/activate" and starting "python" on the command line, I get the following error message:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;$ python                                                                                                                                                                                  
Python 3.5.2 |Intel Corporation| (default, Oct 20 2016, 03:10:33)                                                                                                                                              
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux                                                                                                                                                               
Type "help", "copyright", "credits" or "license" for more information.                                                                                                                                         
Intel(R) Distribution for Python is brought to you by Intel Corporation.                                                                                                                                       
Please check out: &lt;A href="https://software.intel.com/en-us/python-distribution" target="_blank"&gt;https://software.intel.com/en-us/python-distribution&lt;/A&gt;                                                                                                                                         
Traceback (most recent call last):                                                                                                                                                                             
  File "/etc/pythonstart", line 7, in &amp;lt;module&amp;gt;                                                                                                                                                                 
    import readline                                                                                                                                                                                            
ImportError: No module named 'readline'                                                                                                                                                                        
&amp;gt;&amp;gt;&amp;gt;            &lt;/PRE&gt;

&lt;P&gt;(Also note that the local python system under $HOME/intel/... should not run /etc/pythonstart but provide its own start-up script under $HOME/intel/.../etc/. My /etc/pythonstart is for a system-wide Python 2 installation. (I also have a system-wide Python 3 installation. It uses /etc/python3start. It differs in what name is used for the history file and whether or not exceptions occurring when writing the history are ignored. Therefore, I don't think the version of pythonstart is the reason for the readline problem. The /etc issue is a separate problem. The readline module clearly should be available in any Python installation.)&lt;/P&gt;

&lt;P&gt;I tied "conda update conda" from the sticky "Known Issues" and, inspired by &lt;A href="https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/623391" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/623391&lt;/A&gt;, tried installing libreadline version 5 in addition to version 6 but this did not change the above message.&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;$ ls -l /lib64/libreadline* /usr/lib*/libreadline*
lrwxrwxrwx 1 root root     18 Nov 25 11:49 /lib64/libreadline.so.5 -&amp;gt; libreadline.so.5.2                                                                                                                       
-rwxr-xr-x 1 root root 267624 Oct  7 16:52 /lib64/libreadline.so.5.2                                                                                                                                           
lrwxrwxrwx 1 root root     18 Nov 24 19:06 /lib64/libreadline.so.6 -&amp;gt; libreadline.so.6.3                                                                                                                       
-rwxr-xr-x 1 root root 301032 Oct 18 12:55 /lib64/libreadline.so.6.3                                                                                                                                           
lrwxrwxrwx 1 root root     25 Nov 24 19:40 /usr/lib64/libreadline.so -&amp;gt; /lib64/libreadline.so.6.3  &lt;/PRE&gt;

&lt;P&gt;This is on OpenSUSE Leap 42.2 (fresh install in a new VM).&lt;/P&gt;

&lt;P&gt;Hope you find this report useful.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;JJ&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 12:34:36 GMT</pubDate>
    <dc:creator>Joachim_W_</dc:creator>
    <dc:date>2016-11-25T12:34:36Z</dc:date>
    <item>
      <title>No module named 'readline' when starting "python"</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097635#M451</link>
      <description>&lt;P&gt;I see 3 other forum posts about problems with readline but with different symptoms. I installed l_python35_pu_2017.0.035 using install_GUI.sh and the "install as current user" option. After sourcing ".../bin/activate" and starting "python" on the command line, I get the following error message:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;$ python                                                                                                                                                                                  
Python 3.5.2 |Intel Corporation| (default, Oct 20 2016, 03:10:33)                                                                                                                                              
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux                                                                                                                                                               
Type "help", "copyright", "credits" or "license" for more information.                                                                                                                                         
Intel(R) Distribution for Python is brought to you by Intel Corporation.                                                                                                                                       
Please check out: &lt;A href="https://software.intel.com/en-us/python-distribution" target="_blank"&gt;https://software.intel.com/en-us/python-distribution&lt;/A&gt;                                                                                                                                         
Traceback (most recent call last):                                                                                                                                                                             
  File "/etc/pythonstart", line 7, in &amp;lt;module&amp;gt;                                                                                                                                                                 
    import readline                                                                                                                                                                                            
ImportError: No module named 'readline'                                                                                                                                                                        
&amp;gt;&amp;gt;&amp;gt;            &lt;/PRE&gt;

&lt;P&gt;(Also note that the local python system under $HOME/intel/... should not run /etc/pythonstart but provide its own start-up script under $HOME/intel/.../etc/. My /etc/pythonstart is for a system-wide Python 2 installation. (I also have a system-wide Python 3 installation. It uses /etc/python3start. It differs in what name is used for the history file and whether or not exceptions occurring when writing the history are ignored. Therefore, I don't think the version of pythonstart is the reason for the readline problem. The /etc issue is a separate problem. The readline module clearly should be available in any Python installation.)&lt;/P&gt;

&lt;P&gt;I tied "conda update conda" from the sticky "Known Issues" and, inspired by &lt;A href="https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/623391" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/623391&lt;/A&gt;, tried installing libreadline version 5 in addition to version 6 but this did not change the above message.&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;$ ls -l /lib64/libreadline* /usr/lib*/libreadline*
lrwxrwxrwx 1 root root     18 Nov 25 11:49 /lib64/libreadline.so.5 -&amp;gt; libreadline.so.5.2                                                                                                                       
-rwxr-xr-x 1 root root 267624 Oct  7 16:52 /lib64/libreadline.so.5.2                                                                                                                                           
lrwxrwxrwx 1 root root     18 Nov 24 19:06 /lib64/libreadline.so.6 -&amp;gt; libreadline.so.6.3                                                                                                                       
-rwxr-xr-x 1 root root 301032 Oct 18 12:55 /lib64/libreadline.so.6.3                                                                                                                                           
lrwxrwxrwx 1 root root     25 Nov 24 19:40 /usr/lib64/libreadline.so -&amp;gt; /lib64/libreadline.so.6.3  &lt;/PRE&gt;

&lt;P&gt;This is on OpenSUSE Leap 42.2 (fresh install in a new VM).&lt;/P&gt;

&lt;P&gt;Hope you find this report useful.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;JJ&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:34:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097635#M451</guid>
      <dc:creator>Joachim_W_</dc:creator>
      <dc:date>2016-11-25T12:34:36Z</dc:date>
    </item>
    <item>
      <title>Hi JJ,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097636#M452</link>
      <description>&lt;P&gt;Hi JJ,&lt;/P&gt;

&lt;P&gt;Intel Python does not include readline because it is uses GPL code, and the license is not compatible with the MKL library. We have found a way to provide a readline without GPL and are working on providing it in a future release. For a workaround, you can use the anaconda python but still use the rest of Intel's packages:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;conda remove --force python
conda install -c anaconda python&lt;/PRE&gt;

&lt;P&gt;Intel python does not explicitly read /etc/pythonstart. It will load the file pointed to by the PYTHONSTARTUP environment variable. I booted a fresh opensuse VM and see that PYTHONSTARTUP points to /etc/pythonstart. Anaconda python has the same behavior so I don't think we can change it without breaking behavior for others.&lt;/P&gt;

&lt;P&gt;Sorry for the delay in responding, it was Thanksgiving holiday in US.&lt;/P&gt;

&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 18:53:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097636#M452</guid>
      <dc:creator>Robert_C_Intel</dc:creator>
      <dc:date>2016-11-28T18:53:42Z</dc:date>
    </item>
    <item>
      <title>Well I tried the suggestion</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097637#M453</link>
      <description>&lt;P&gt;Well I tried the suggestion above but it proved catastrophic&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family:monospace"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;(root) &lt;/SPAN&gt;&lt;SPAN style="color: rgb(24, 178, 24);"&gt;mimis@goldberg:~/learning/INTEL/Intel_Python_2.7$&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; conda remove --force python &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	Fetching package metadata .............&lt;BR /&gt;
	&lt;BR /&gt;
	Package plan for package removal in environment /opt/intel/intelpython2:&lt;BR /&gt;
	&lt;BR /&gt;
	The following packages will be REMOVED:&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;python: 2.7.14-intel_2 intel [intel]&lt;BR /&gt;
	&lt;BR /&gt;
	Proceed (&lt;Y&gt;/n)? y&lt;BR /&gt;
	&lt;BR /&gt;
	(root) &lt;SPAN style="color: rgb(24, 178, 24);"&gt;mimis@goldberg:~/learning/INTEL/Intel_Python_2.7$&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; conda install -c anaconda python &lt;/SPAN&gt;&lt;BR /&gt;
	bash: /opt/intel/intelpython2/bin/conda: /opt/intel/intelpython2/bin/python: bad interpreter: No such file or directory&lt;/Y&gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	now I need to reinstall intel python&lt;/P&gt;

&lt;P&gt;Mimis&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 21:11:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097637#M453</guid>
      <dc:creator>Koltsakis__Efthymios</dc:creator>
      <dc:date>2018-04-29T21:11:45Z</dc:date>
    </item>
    <item>
      <title>This does not work in my case</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097638#M454</link>
      <description>&lt;P&gt;This does not work in my case:&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family:monospace"&gt;&lt;SPAN style="color: rgb(24, 178, 24);"&gt;mimis@goldberg:~/learning/INTEL/Intel_Python_2.7$&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; conda remove --force python &lt;/SPAN&gt;&lt;BR /&gt;
	Fetching package metadata .............&lt;BR /&gt;
	&lt;BR /&gt;
	Package plan for package removal in environment /opt/intel/intelpython2:&lt;BR /&gt;
	&lt;BR /&gt;
	The following packages will be REMOVED:&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;python: 2.7.14-intel_2 intel [intel]&lt;BR /&gt;
	&lt;BR /&gt;
	Proceed (&lt;Y&gt;/n)? y&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;SPAN style="color: rgb(24, 178, 24);"&gt;mimis@goldberg:~/learning/INTEL/Intel_Python_2.7$&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; conda install -c anaconda python &lt;/SPAN&gt;&lt;BR /&gt;
	bash: /home/opt-relief/intel/intelpython2/bin/conda: /opt/intel/intelpython2/bin/python: bad interpreter: No such file or directory&lt;/Y&gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;/P&gt;

&lt;P&gt;Mimis&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 21:29:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097638#M454</guid>
      <dc:creator>Koltsakis__Efthymios</dc:creator>
      <dc:date>2018-04-29T21:29:31Z</dc:date>
    </item>
    <item>
      <title>pip install gnureadline  #</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097639#M455</link>
      <description>&lt;PRE class="brush:bash; class-name:dark;"&gt;pip install gnureadline  # this is a statically linked version for python&lt;/PRE&gt;

&lt;P&gt;But TBO, if you want a better interactive Python shell, just go look up ptpython.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 16:05:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-module-named-readline-when-starting-quot-python-quot/m-p/1097639#M455</guid>
      <dc:creator>Yuan__Zhihao</dc:creator>
      <dc:date>2019-06-28T16:05:18Z</dc:date>
    </item>
  </channel>
</rss>

