Closed hg0111 closed 3 years ago
Hey ,I can try to help with this. Can you show me you're config definition: sasserver ?
Thanks,
Tom
sasserver = {
'iomhost' : ['host1', 'host2', 'host3'],
'iomport' : nnnn,
'class_id' : '440196d4-90f0-11d0-9f41-00a024bb830c',
'provider' : 'sas.iomprovider',
'encoding' : 'latin_1',
'authkey' : 'usr_pwrd',
}
(I mask the iomhost and iomport. those settings should not have problems, since the settings work for my coworkers. Actually, I compare the sascfg_personal.py file, nothing inconsistent. However it runs into error on my computer. It used to work. I started getting this error after I reinstall SAS Enterprise Guide some time ago.)
Ah, ok. Yes the provider field is correct; has to be that. And, that is a thing EG would set up, as the COM access method depends upon having EG installed for it to work (or there's a download w/ the com pieces). So, it would seem to have something to do with that 'provider' not being configured, such as the ADODB stuff expects it to be; given the error: ADODB.Connection', 'Provider cannot be found. It may not be properly installed.
Googling that, I see no end of hits. Does EG come up and work for you? Do you know what changed when you redid that? Not for nothing, but I would use the IOM access methods instead of COM, but that doesn't mean this still shouldn't work for you.
If you Goto Control Panel Goto Administrator Tools Goto Data Sources (ODBC) Click the "Drivers" tab.
Do you see the SAS driver in there (64bit/32bit) SASDRV32.DLL?
I don't know much about this, but at least let's check those things first.
Thanks, Tom
The IOM provider is part of the SAS Integration Technologies client, which you can download: https://tds.sas.com/downloads/browse.htm?fil=&cat=56 -- EG installs this, but perhaps you reinstalled different bitness (32-bit EG instead 64-bit or vice-versa). I recommend reinstalling the IntTech client as a start.
You can also get just the OLEDB providers as a download: https://tds.sas.com/downloads/browse.htm?fil=&cat=64
Thank you for the above inputs. I may have to check if the software is acceptable to my company. Will keep you updated with progress.
I checked the SAS EG I installed. It is 32-bit. What do I need to do with this?
Well, if Python is 64 bit, then I would guess that may be why it can't find it as a provider (just an obvious guess; I don't know how that works). Is your computer really only 32 bit? What bit is the Python you're using? If you're a 64 bit system, and Python is installed 64-bit, then can you install EG 64 bit so things would be compatible?
You can install/reinstall the 64-bit IntTech client. It shouldn't interfere with your EG install -- the 32-bit and 64-bit IntTech clients can coexist. No need to reinstall a 64-bit EG.
Ah, ok. Yes the provider field is correct; has to be that. And, that is a thing EG would set up, as the COM access method depends upon having EG installed for it to work (or there's a download w/ the com pieces). So, it would seem to have something to do with that 'provider' not being configured, such as the ADODB stuff expects it to be; given the error: ADODB.Connection', 'Provider cannot be found. It may not be properly installed.
Googling that, I see no end of hits. Does EG come up and work for you? Do you know what changed when you redid that? Not for nothing, but I would use the IOM access methods instead of COM, but that doesn't mean this still shouldn't work for you.
If you Goto Control Panel Goto Administrator Tools Goto Data Sources (ODBC) Click the "Drivers" tab.
Do you see the SAS driver in there (64bit/32bit) SASDRV32.DLL?
I don't know much about this, but at least let's check those things first.
Thanks, Tom
I have checked that I do not have "SAS driver" in either ODBC Data Sources (32-bit) or (64-bit). However, I checked with my coworker who is able to connect to SAS successfully, she does not have that either. Both of us have "SQL server" driver.
So, did you check to see if it is a 32/64 bit discrepancy? And if so, have you installed either the IntTech or EG 64 bit versions to see if that fixed it? And again, FWIW, using the IOM access method will be better in the long run, than COM, but it should still be able to work. The ODBC thing didn't matter. It's OLEDB, not ODBC that this uses. I was off base with that when looking to see what I had on my system.
Thanks, Tom
@hg0111 did you get the appropriate EG/IntTech client installed to get COM working? Did you switch to just IOM? Is there anything else you need, or can we close this issue? Anything else I can do?
Thanks, Tom
I'm going to close this, as I haven't heard back in a month. Hopefully you switched to using the IOM access method and are up and running. If you need anything else, just open another issue, or reopen this if need be. Thanks, Tom
com_error Traceback (most recent call last)