<?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 Saspy not finding authkey in _authinfo (windows, IOM) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757889#M239261</link>
    <description>&lt;P&gt;When I connect using&lt;/P&gt;&lt;PRE&gt;sas = saspy.SASsession(cfgname='winlocal')&lt;/PRE&gt;&lt;P&gt;I get&lt;/P&gt;&lt;PRE&gt;Did not find key AKEY in authinfo file:C:\Users\myuser\_authinfo&lt;/PRE&gt;&lt;P&gt;The format of _authinfo is correct, followed docs and is exactly this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;AKEY &lt;/SPAN&gt;&lt;SPAN class="n"&gt;user&lt;/SPAN&gt; &lt;SPAN class="n"&gt;&amp;lt;myuser&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="n"&gt;password&lt;/SPAN&gt; &lt;SPAN class="n"&gt;&amp;lt;mypassword&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;If I log in when prompted everything works, I am connected and can run queries, access tables etc. The only thing not working is the authkey. Permissions on _authinfo allow access as well.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 18:59:20 GMT</pubDate>
    <dc:creator>ts3</dc:creator>
    <dc:date>2021-07-28T18:59:20Z</dc:date>
    <item>
      <title>Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757889#M239261</link>
      <description>&lt;P&gt;When I connect using&lt;/P&gt;&lt;PRE&gt;sas = saspy.SASsession(cfgname='winlocal')&lt;/PRE&gt;&lt;P&gt;I get&lt;/P&gt;&lt;PRE&gt;Did not find key AKEY in authinfo file:C:\Users\myuser\_authinfo&lt;/PRE&gt;&lt;P&gt;The format of _authinfo is correct, followed docs and is exactly this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;AKEY &lt;/SPAN&gt;&lt;SPAN class="n"&gt;user&lt;/SPAN&gt; &lt;SPAN class="n"&gt;&amp;lt;myuser&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="n"&gt;password&lt;/SPAN&gt; &lt;SPAN class="n"&gt;&amp;lt;mypassword&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;If I log in when prompted everything works, I am connected and can run queries, access tables etc. The only thing not working is the authkey. Permissions on _authinfo allow access as well.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 18:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757889#M239261</guid>
      <dc:creator>ts3</dc:creator>
      <dc:date>2021-07-28T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757892#M239263</link>
      <description>&lt;P&gt;This may not be the issue, but let's eliminate one possible cause of this problem.&amp;nbsp; Open a Windows Explorer session and navigate to&lt;/P&gt;
&lt;PRE&gt;C:\Users\myuser&lt;/PRE&gt;
&lt;P&gt;Click on "View", "Options", and then "Change Folder and Search Options".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below pop-up should appear.&amp;nbsp; Make sure that the indicated check box is &lt;STRONG&gt;NOT&lt;/STRONG&gt; checked.&amp;nbsp; If it is checked, un-check it, and click "OK".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimbarbour_0-1627499238644.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62020i0E440661641D24DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimbarbour_0-1627499238644.png" alt="jimbarbour_0-1627499238644.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now look for the file _authinfo with&amp;nbsp;&lt;STRONG&gt;no file extension&lt;/STRONG&gt;&amp;nbsp;in your Windows Explorer session&lt;STRONG&gt;.&lt;/STRONG&gt;&amp;nbsp; This is the file that is being used.&amp;nbsp; Now look for _authinfo.txt.&amp;nbsp; This possibly is the file you saved if you used something like Notepad.exe to add your ID and password to the file.&amp;nbsp; Windows automatically adds .txt if you use Notepad.&amp;nbsp; You won't see this unless the check box in the options shown above is un-checked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is a _authinfo.txt that has the correct ID and password, rename _authinfo (with no file extension) to _authinfo.bak and rename _authinfo.txt to just _authinfo.&amp;nbsp; Try running again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757892#M239263</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757900#M239267</link>
      <description>Nope no extension, and type is just plain `File` not txt or anything. I made it with a different text editor so I wouldn't have to deal with notepad adding extensions and it'd just save as normal plaintext.</description>
      <pubDate>Wed, 28 Jul 2021 19:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757900#M239267</guid>
      <dc:creator>ts3</dc:creator>
      <dc:date>2021-07-28T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757903#M239269</link>
      <description>&lt;P&gt;OK, worth a shot, and certainly one to eliminate up front.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Does it contain any special characters?&lt;/LI&gt;
&lt;LI&gt;What is the encoding?&amp;nbsp; Is it ASCII, Unicode, or ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757903#M239269</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757905#M239271</link>
      <description>&lt;P&gt;If that's not the issue (again, just eliminating possibilities), then check this out and see if it sheds any light:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Sas-Authkey/m-p/581062#M165112" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Sas-Authkey/m-p/581062#M165112&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757905#M239271</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T19:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757917#M239274</link>
      <description>no special characters notepad++ encoding indicates UTF-8 LE BOM</description>
      <pubDate>Wed, 28 Jul 2021 19:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757917#M239274</guid>
      <dc:creator>ts3</dc:creator>
      <dc:date>2021-07-28T19:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757920#M239276</link>
      <description>&lt;P&gt;Yeah I've seen that post. My format is the one quoted from the docs there, and my _authinfo file *is* being found, so I do not believe it applies here.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757920#M239276</guid>
      <dc:creator>ts3</dc:creator>
      <dc:date>2021-07-28T19:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757936#M239279</link>
      <description>&lt;P&gt;Well, crap.&amp;nbsp; OK, see my response (will post in a few minutes) to my encoding response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757936#M239279</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T20:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757937#M239280</link>
      <description>&lt;P&gt;Can you try just saving it as ASCII?&amp;nbsp; Grasping at straws here, but let's eliminate all possibilities that it's some odd ball encoding issue.&amp;nbsp; I think you could just cut and paste into a Notepad, taking care to delete the .txt extension afterwards (or saving as type *.*).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757937#M239280</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T20:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757940#M239281</link>
      <description>&lt;P&gt;That did it, well I guess its good to know that it requires ASCII.. Thanks! This is actually taking place on 1 of 2 computers I have this set up on, and on the first I believe I did use (regular) notepad and saved it w/o extension, and got the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clearly state what I did, I used the encoding drop-down menu in notepad++ to switch the encoding to ANSI.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757940#M239281</guid>
      <dc:creator>ts3</dc:creator>
      <dc:date>2021-07-28T20:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757943#M239282</link>
      <description>&lt;P&gt;OK, cool.&amp;nbsp; (about time, lol)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything you were doing sounded right to me, so I started looking for oddball stuff like file extensions and encodings that would keep correctly coded parameters from working.&amp;nbsp; Glad I finally got it right.&amp;nbsp; I was running out of hunches.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757943#M239282</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T20:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Saspy not finding authkey in _authinfo (windows, IOM)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757944#M239283</link>
      <description>It seems to work with plain UTF-8 as well, but not other variants. Yeah I was really at a loss because everything else worked haha.</description>
      <pubDate>Wed, 28 Jul 2021 20:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saspy-not-finding-authkey-in-authinfo-windows-IOM/m-p/757944#M239283</guid>
      <dc:creator>ts3</dc:creator>
      <dc:date>2021-07-28T20:36:15Z</dc:date>
    </item>
  </channel>
</rss>

