This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sabakauser
Recipients sabakauser
Date 2019-02-22.09:38:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550828319.37.0.854628356141.issue36075@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-02-22 09:38:39sabakausersetrecipients: + sabakauser
2019-02-22 09:38:39sabakausersetmessageid: <1550828319.37.0.854628356141.issue36075@roundup.psfhosted.org>
2019-02-22 09:38:39sabakauserlinkissue36075 messages
2019-02-22 09:38:39sabakausercreate