<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">About a year ago (commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scipy/scipy/commit/6b08e087171479b30fc2dc015d2074a24844789e/hovercard" href="https://github.com/scipy/scipy/commit/6b08e087171479b30fc2dc015d2074a24844789e"><tt>6b08e08</tt></a>) the <code class="notranslate">optimize.tnc</code> module gained some deprecation warnings, indicating that symbols of the form <code class="notranslate">optimze.tnc.&lt;SYM&gt;</code> were deprecated, use instead <code class="notranslate">optimize.&lt;SYM&gt;</code>.  Since none of these symbols exist in optimize directly, doing as suggested generates <code class="notranslate">ImportError</code>.</p>
<h3 dir="auto">Reproducing Code Example</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python -c 'from scipy.optimize.tnc import RCSTRINGS ; from scipy.optimize import RCSTRINGS'"><pre class="notranslate">$ <span class="pl-s1">python</span> <span class="pl-c1">-</span><span class="pl-s1">c</span> <span class="pl-s">'from scipy.optimize.tnc import RCSTRINGS ; from scipy.optimize import RCSTRINGS'</span></pre></div>
<h3 dir="auto">Error message</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;string&gt;:1: DeprecationWarning: Please use `RCSTRINGS` from the `scipy.optimize` namespace, the `scipy.optimize.tnc` namespace is deprecated.

Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: cannot import name 'RCSTRINGS' from 'scipy.optimize' (C:\Program Files\Python310\lib\site-packages\scipy\optimize\__init__.py)"><pre class="notranslate"><span class="pl-k">&lt;</span>string<span class="pl-k">&gt;</span>:1: DeprecationWarning: Please use <span class="pl-s"><span class="pl-pds">`</span>RCSTRINGS<span class="pl-pds">`</span></span> from the <span class="pl-s"><span class="pl-pds">`</span>scipy.optimize<span class="pl-pds">`</span></span> namespace, the <span class="pl-s"><span class="pl-pds">`</span>scipy.optimize.tnc<span class="pl-pds">`</span></span> namespace is deprecated.

Traceback (most recent call last):
  File <span class="pl-s"><span class="pl-pds">"</span>&lt;string&gt;<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span>
ImportError: cannot import name <span class="pl-s"><span class="pl-pds">'</span>RCSTRINGS<span class="pl-pds">'</span></span> from <span class="pl-s"><span class="pl-pds">'</span>scipy.optimize<span class="pl-pds">'</span></span> (C:<span class="pl-cce">\P</span>rogram Files<span class="pl-cce">\P</span>ython310<span class="pl-cce">\l</span>ib<span class="pl-cce">\s</span>ite-packages<span class="pl-cce">\s</span>cipy<span class="pl-cce">\o</span>ptimize<span class="pl-cce">\_</span>_init__.py)</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.9.3 1.24.1 sys.version_info(major=3, minor=10, micro=7, releaselevel='final', serial=0)</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/645" rel="nofollow">http://projects.scipy.org/scipy/ticket/645</a> on 2008-04-19 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.__version__
'1.1.0.dev5046'
&gt;&gt;&gt; scipy.__version__
'0.7.0.dev4152'






======================================================================
FAIL: test_gammaincinv (test_basic.TestGamma)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/lib/python2.4/site-packages/scipy/special/tests/test_basic.py&quot;, line 1056, in test_gammaincinv
    assert_almost_equal(0.05, x, decimal=10)
  File &quot;/usr/lib/python2.4/site-packages/numpy/testing/utils.py&quot;, line 158, in assert_almost_equal
    assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
 ACTUAL: 0.050000000000000003
 DESIRED: 0.0"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.__version__
'1.1.0.dev5046'
&gt;&gt;&gt; scipy.__version__
'0.7.0.dev4152'






======================================================================
FAIL: test_gammaincinv (test_basic.TestGamma)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scipy/special/tests/test_basic.py", line 1056, in test_gammaincinv
    assert_almost_equal(0.05, x, decimal=10)
  File "/usr/lib/python2.4/site-packages/numpy/testing/utils.py", line 158, in assert_almost_equal
    assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
 ACTUAL: 0.050000000000000003
 DESIRED: 0.0
</code></pre></div>