hello!!
I scripted a python module to acces a data base postgresql. this module contain a test connection, and select request with psycopg2 library. but when i import this module in an another script, it return :ImportError: cannot import name ‘returnprojets’ from ‘X_ConnectToDataBase’ (S:\SCRIPT\Python\X_ConnectToDataBase.py), in fact my connect module strat with:
#! python 3
#r: pandas, openpyxl, psycopg2, keyring
import rhinoscriptsyntax as rs
import psycopg2
import pandas as pd
and it return:
PS S:\SCRIPT\Python> python -c "import X_ConnectToDataBase"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "S:\SCRIPT\Python\X_ConnectToDataBase.py", line 3, in <module>
import rhinoscriptsyntax as rs
an idea?