c4s4 / sqlplus_commando

Oracle SQL*Plus command line driver
Apache License 2.0
4 stars 0 forks source link

sqlplus_commando with w. py3.6? #2

Open attilaka opened 6 years ago

attilaka commented 6 years ago

Hi,

I'm trying to use this w. Python 3.6, but get an error msg when importing, Can anyone recommend anything pls?

thanks, Attila

c4s4 commented 6 years ago

What is the error message?

attilaka commented 6 years ago

File "C:\Apps\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile execfile(filename, namespace)

File "C:\Apps\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/ccc/.spyder-py3/temp.py", line 7, in from sqlplus_commando import SqlplusCommando

File "C:\Apps\anaconda3\lib\site-packages\sqlplus_commando__init__.py", line 5, in from sqlplus_commando import SqlplusCommando, SqlplusResultParser, SqlplusErrorParser

ImportError: cannot import name 'SqlplusCommando'

nipuninamali commented 5 years ago

Hi. I have the same issue. I'm trying to use sqlplus_commando with python 3.7 . But gets following error message

from sqlplus_commando import SqlplusCommando, SqlplusResultParser, SqlplusErrorParser
ImportError: cannot import name 'SqlplusCommando' from 'sqlplus_commando' 

Any solution for this?

c4s4 commented 5 years ago

Hello Nipuninamali,

This library was developed using Python 2.7. I have started porting the code to 3.6 but this takes time and I have not much. This is on branche feature-python3, feel free to contribute.

Best regards