Message336288
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 have a python script that after installing has new empty line added for every line.
e.g:
my source:
if database is None:
raise InterfaceError("createdb expects a not None database name value")
if (not isinstance(database, basestring)) | \
(not isinstance(codeset, basestring)) | \
(not isinstance(mode, basestring)):
raise InterfaceError("Arguments sould be string or unicode")
The generated file under C:\Users\skauser\AppData\Local\Programs\Python\Python37\Lib\site-packages\ibm_db-2.0.9-py3.7-win-amd64.egg\ibm_db_dbi.py
if database is None:
raise InterfaceError("createdb expects a not None database name value")
if (not isinstance(database, str)) | \
(not isinstance(codeset, str)) | \
(not isinstance(mode, str)):
raise InterfaceError("Arguments sould be string or unicode")
As you can see, there is this new line that is throwing runtime error.
File "c:\users\skauser\appdata\local\programs\python\python37\lib\site-packages\ibm_db-2.0.9-py3.7-win-amd64.egg\ibm_db_dbi.py", line 846
^
SyntaxError: invalid syntax
Could you please let me know how can I get rid of this behavior?
When I install the package using pip, I don't see this behavior.
Thanks!
Saba. |
|
Date |
User |
Action |
Args |
2019-02-22 09:38:39 | sabakauser | set | recipients:
+ sabakauser |
2019-02-22 09:38:39 | sabakauser | set | messageid: <1550828319.37.0.854628356141.issue36075@roundup.psfhosted.org> |
2019-02-22 09:38:39 | sabakauser | link | issue36075 messages |
2019-02-22 09:38:39 | sabakauser | create | |
|