GithubHelp home page GithubHelp logo

Comments (3)

volcan01010 avatar volcan01010 commented on August 11, 2024

I've found a way to reproduce this now:

  1. Create a new virtualenv and install etlhelper without any database drivers
  2. Run the following:
from etlhelper import DbParams
db = DbParams(dbtype='ORACLE', host='localhost', port=1, dbname='test', user='test')

This will create db, but also print the following:

The cxOracle drivers were not found. See setup guide for more information.

This message, and the psycopg2 one, are printed when you initialise a DbHelper for a database when the drivers are not installed. DbParams does this because it uses a DbHelper to validate the params when it is created. We are seeing the message in internal BGS projects because we often import a big list of DbParams for internal databases, which includes Oracle and PostgreSQL instances.

from etlhelper.

volcan01010 avatar volcan01010 commented on August 11, 2024

I don't think that this is a bug - we do want to tell users how to install drivers if they are missing and we do want to all DbParams objects to be created in this case. However, we should replace the print statement with either a warnings.warn or a logger.warn message.

from etlhelper.

metazool avatar metazool commented on August 11, 2024

I don't think it is a bug either but it is a glitch. I ran into it during one of the Linked Data projects, with a script that dumps an export from Oracle straight to stdout, ended up installing psycopg2 in the CI pipeline even though i didn't need it, just in order to stop this warning message ending up in the output - it could go to stderr instead ?

from etlhelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.