GithubHelp home page GithubHelp logo

Comments (5)

skulegirl avatar skulegirl commented on September 25, 2024

Correction: Installing from pypi works fine, but installing from source fails, even before 2.3.0 release. So it's not that commit, but something else.

from django-analytical.

jcassee avatar jcassee commented on September 25, 2024

Not sure, but the stacktrace seems to indicate the problem is with the installation of Django?

from django-analytical.

skulegirl avatar skulegirl commented on September 25, 2024

Well, I don't have sqlite3 installed, but I shouldn't need it for this app. I did actually figure out the issue, the setup.py file tries to set the env to include the tests.settings automatically, which requires sqlite3. Remove the following from the setup.py file:

-try:
 -    import django
 -    os.environ.setdefault(
 -        "DJANGO_SETTINGS_MODULE",
 -        "analytical.tests.settings"
 -    )
 -    django.setup()
 -except ImportError:
 -    print(
 -        "Could not import django. "
 -        "This is fine, unless you intend to run unit tests."
 -    )
 -

from django-analytical.

bittner avatar bittner commented on September 25, 2024

Thanks @skulegirl, for identifying the issue! 👍 This translates to: We need to

  1. refactor setup.py reducing the logic for just packaging,
  2. run tests "from outside" (and without) setup.py, e.g. using pytest,
  3. optionally, move the tests out of the analytical module and make sure they're not included when the package is built to PyPI.

from django-analytical.

bittner avatar bittner commented on September 25, 2024

@skulegirl PR #171 removed the code you objected about, reducing the overall complexity of our setup.py.

Hence, it's very likely that your issue is now fixed. Please, let us know if this is not the case.

from django-analytical.

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.