[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-11 Thread Saba Kauser
Saba Kauser added the comment: Thanks Steve! -- ___ Python tracker <https://bugs.python.org/issue40906> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-10 Thread Saba Kauser
Saba Kauser added the comment: Hello Steve, You have added changes to load windows dependent DLLs for python C extension modules. After building the source, I can import the module only after I set dll path as: os.add_dll_directory('C:\\Program Files\\IBM\\IBM DATA SERVER DRIVER_01

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-09 Thread Saba Kauser
Saba Kauser added the comment: Thanks a ton! That worked.. As I understand, users are required to add the directory path of the dll. Is there any way I can set this while building the extension with dependency? I basically want to hard-code the dependency path so that import module works

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-07 Thread Saba Kauser
Change by Saba Kauser : Added file: https://bugs.python.org/file49222/python3.8_2.png ___ Python tracker <https://bugs.python.org/issue40906> ___ ___ Python-bugs-list m

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-07 Thread Saba Kauser
Change by Saba Kauser : Added file: https://bugs.python.org/file49221/python3.7.png ___ Python tracker <https://bugs.python.org/issue40906> ___ ___ Python-bugs-list m

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-07 Thread Saba Kauser
New submission from Saba Kauser : Hi, I am building python ibm_db C extension for Python 3.8 support. while the binary is generated successfully and installed to site-packages, I am unable to load the same. The error I get is: Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v

[issue37541] get_python_lib() returns incorrect path for site-packages

2019-07-10 Thread Saba Kauser
New submission from Saba Kauser : HI, I am using get_python_lib() to copy certain data files to site-pacakges location while installation of package ibm_db. I am using this function to execute a command as well on one of the shared library @package install location. So far, I have faced

[issue36640] distutils.sysconfig.get_python_lib behaves incorrectly when pip cache is enabled

2019-04-25 Thread Saba Kauser
Saba Kauser added the comment: Experts, please help. get_python_lib() is behaving strangely and I have detailed the problem in my last update. -- title: python ibm_db setup.py post install script does not seem to work from Anaconda -> distutils.sysconfig.get_python_lib beha

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-25 Thread Saba Kauser
Change by Saba Kauser : -- components: +Distutils -Build nosy: +dstufft, eric.araujo ___ Python tracker <https://bugs.python.org/issue36640> ___ ___ Python-bug

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-21 Thread Saba Kauser
Saba Kauser added the comment: I have debugged this further. The problem seems be happening due to usage of get_python_lib(). e.g: if('darwin' in sys.platform): class PostInstall(install): """ Post installation - run install_name_tool on Darwin

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-18 Thread Saba Kauser
Saba Kauser added the comment: I was able to determine the reason. When running through anaconda, the pip copies ibm_db.so to site-packages path. However, as logged in user, install_name_tool fails with permission denied error. BLR-D-MACOS03:site-packages skauser$ install_name_tool -change

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Saba Kauser
Saba Kauser added the comment: Thanks Karthikeyan. The behavior is specific to anaconda when I use the python/pip that comes with it. When I use the pip from anaconda, e.g:/Users/skauser/anaconda3/bin/pip pip install ibm_db Installation is success,but when I import ibm_db, I get this error

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Saba Kauser
New submission from Saba Kauser : Hi, I have added a post install class that's working fine when I do "pip install ibm_db" on MAC. However, when I use the python/pip from anaconda3(python 3.7), the same pip is not executing the post install script. Can some one please take a

[issue36269] post install in setup.py does not work when executed through pip

2019-03-13 Thread Saba Kauser
Change by Saba Kauser : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36269> ___ ___ Python-bugs-list

[issue36269] post install in setup.py does not work when executed through pip

2019-03-13 Thread Saba Kauser
Saba Kauser added the comment: I am able to get this to work. I just needed to invoke parent's run prior to the post install commands. if('darwin' in sys.platform): class PostInstall(install): """ Post installation - run install_name_tool on D

[issue36269] post install in setup.py does not work when executed through pip

2019-03-12 Thread Saba Kauser
New submission from Saba Kauser : Hello, I have a post install class that looks like this: if('darwin' in sys.platform): class PostInstall(install): """ Post installation - run install_name_tool on Darwin """ def run(self):

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-28 Thread Saba Kauser
Saba Kauser added the comment: Thanks Karthikeyan! -- ___ Python tracker <https://bugs.python.org/issue36075> ___ ___ Python-bugs-list mailing list Unsub

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-28 Thread Saba Kauser
Saba Kauser added the comment: Could you please share the URL -- ___ Python tracker <https://bugs.python.org/issue36075> ___ ___ Python-bugs-list mailin

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-25 Thread Saba Kauser
Saba Kauser added the comment: Did anyone get a chance to look at my case? Thanks, Saba. -- ___ Python tracker <https://bugs.python.org/issue36075> ___ ___

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-22 Thread Saba Kauser
New submission from Saba Kauser : Hi, I am building my python ibm_db driver on python 3.7 using the setup.py under https://github.com/SabaKauser/python-ibmdb/blob/master/IBM_DB/ibm_db/setup.py with 2to3 compatibility as: python setup.py build and installing as: python setup.py install I

[issue34304] clarification on escaping \d in regular expressions

2018-07-31 Thread Saba Kauser
New submission from Saba Kauser : Hello, I have a program that works well upto python 3.6 but fails with python 3.7. import re pattern="DBMS_NAME: string(%d) %s" sym = ['\[','\]','\(','\)'] for chr in sym: pattern = re.sub(chr, '\\&

[issue33994] python build egg fails with error while compiling test cases

2018-06-28 Thread Saba Kauser
New submission from Saba Kauser : Hello, Everything was working perfectly until recently, may be a week back, when I first started to see the error while generating egg for python ibm_db package. Every time I execute the command : python setup.py bdsit_egg, my flow stops with below error

[issue33704] python 3.7 and python 3.8 stable release

2018-05-30 Thread Saba Kauser
New submission from Saba Kauser : Hi, I am planning to make new release of python ibm_db driver and I wanted to know the stable versions of python beyond python 3.6. I can see python 3.8 marked as "in development" and I do read that python 3.7.0b4 is the final planned beta relea

[issue32527] windows 7 python 3.6 : after some security updates, import ibm_db fails

2018-01-10 Thread Saba Kauser
New submission from Saba Kauser : Hello, I have a user who is complaining that python ibm_db module import fails after some windows 7 security update. I am not sure if this is a bug or some other setup issue but I could not find any other forum where I can post this query. Please feel free to