<?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>Question Re: python3 cannot import sqlanydb in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847895#M4878738</link>
    <description>&lt;P&gt;I'm not near a 'nix box at the moment, but I don't think there should be any output. What happens now if you try to import sqlanydb in the Python REPL?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2014 06:14:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-12-17T06:14:19Z</dc:date>
    <item>
      <title>python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaq-p/13847888</link>
      <description>&lt;P&gt;I installed SQL Anywhere 16. How to solve the following issue?&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;$ cat ~/.bashrc 
export SQLANYWHERE_HOME=/Applications/SQLAnywhere16/System
export DYLD_LIBRARY_PATH=$SQLANYWHERE_HOME/lib64:$SQLANYWHERE_HOME/lib32:$DYLD_LIBRARY_PATH
export DYLD_BIND_AT_LAUNCH=1
export PATH=$PATH:$SQLANYWHERE_HOME/bin64:$SQLANYWHERE_HOME/bin32


$ python3

Python 3.3.5 (v3.3.5:62cf4e77f785, Mar  9 2014, 01:12:57) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; import sqlanydb
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "./sqlanydb.py", line 469, in &amp;lt;module&amp;gt;
    class Connection(object):
  File "./sqlanydb.py", line 471, in Connection
    def __init__(self, args, kwargs, parent = Root("PYTHON")):
  File "./sqlanydb.py", line 422, in __init__
    'libdbcapi_r.dylib')
  File "./sqlanydb.py", line 416, in load_library
    raise InterfaceError("Could not load dbcapi.  Tried: " + ','.join(names))
sqlanydb.InterfaceError: Could not load dbcapi.  Tried: dbcapi.dll,libdbcapi_r.so,libdbcapi_r.dylib&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaq-p/13847888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-16T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847889#M4878732</link>
      <description>&lt;P&gt;This is because sqlanydb is looking for the 32-bit version of dbcapi.dll which is not installed if you've only installed the 64-bit version of SQLAny. Try reinstalling and selecting both versions.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 03:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847889#M4878732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T03:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847892#M4878735</link>
      <description>&lt;P&gt;Mike, thanks. I re-installed (run uninstall.sh from /Applications/SQLAnywhere16/), but it doesn't work. My system is Mac OS X 10.10.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 04:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847892#M4878735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T04:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847893#M4878736</link>
      <description>&lt;P&gt;Have you sourced the sa_config.sh file, which will be in:&lt;/P&gt;
&lt;P&gt;./Applications/SQLAnywhere16/System/bin32/sa_config.sh&lt;/P&gt;
&lt;P&gt;or somewhere similar to that?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 04:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847893#M4878736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T04:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847894#M4878737</link>
      <description>&lt;P&gt;$ cd /Applications/SQLAnywhere16/System/bin32/&lt;/P&gt;
&lt;P&gt;$ pwd&lt;/P&gt;
&lt;P&gt;/Applications/SQLAnywhere16/System/bin32&lt;/P&gt;
&lt;P&gt;$ chmod +x sa_config.sh &lt;/P&gt;
&lt;P&gt;$ ./sa_config.sh&lt;/P&gt;
&lt;P&gt;It does not show any message. What should be in the output?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 05:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847894#M4878737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T05:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847895#M4878738</link>
      <description>&lt;P&gt;I'm not near a 'nix box at the moment, but I don't think there should be any output. What happens now if you try to import sqlanydb in the Python REPL?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 06:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847895#M4878738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T06:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847890#M4878733</link>
      <description>&lt;P&gt;&lt;CODE&gt;$ chmod +x sa_config.sh&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;$ ./sa_config.sh&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;You can't execute it this way; this creates a new shell (environment), sets a bunch of environment variables, and then drops the environment, and so it has no effect. Use "&lt;CODE&gt;. &amp;lt;path&amp;gt;/sa_config.sh&lt;/CODE&gt;". Note the space after the dot. This sets the environment variables in the &lt;EM&gt;current&lt;/EM&gt; shell.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 06:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847890#M4878733</guid>
      <dc:creator>graeme_perrow</dc:creator>
      <dc:date>2014-12-17T06:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847896#M4878739</link>
      <description>&lt;P&gt;$ . /Applications/SQLAnywhere16/System/bin32/sa_config.sh&lt;/P&gt;
&lt;P&gt;It seems to work. Mike and Graeme, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 07:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847896#M4878739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847891#M4878734</link>
      <description>&lt;P&gt;I have the same problem. I have sourced that .sh file and both 32 and 64 bit are installed and available in the path. Though it doesn't work. Any ideas? Mac os X 10.10&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847891#M4878734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-12T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: python3 cannot import sqlanydb</title>
      <link>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847897#M4878740</link>
      <description>&lt;P&gt;Did you execute the command in the way Graeme Perrow proposed?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 19:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/python3-cannot-import-sqlanydb/qaa-p/13847897#M4878740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-12T19:46:23Z</dc:date>
    </item>
  </channel>
</rss>

