GithubHelp home page GithubHelp logo

crisely09 / fdeta Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 5.47 MB

Tools to perform FDET calculations using MD averaged densities.

License: GNU Lesser General Public License v3.0

Python 99.31% Shell 0.69%

fdeta's People

Contributors

crisely09 avatar nicoricardi avatar

Stargazers

 avatar

fdeta's Issues

Pytest doesn't find cpp modules in Travis built

I have tried at least 3 different ways to install and to test the module in order to use and build the cpp modules (with pybind11).
I first tried the way is done in the python_example given in the pybind11 documentation, it worked, installed properly and the tests run fine locally.
I also tried using cmake works independently, and the result is exactly the same: pytest can not find the .cpp module
I also tried the trick of deleting the __init__.py file from the tests directory and it didn't work.

python -m pytest --ignore=lib/pybind11
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
rootdir: /home/travis/build/crisely09/fdeta
plugins: cov-2.7.1
collected 2 items / 1 errors / 1 selected                                      
==================================== ERRORS ====================================
_______________ ERROR collecting fdeta/tests/test_mdinterface.py _______________
ImportError while importing test module '/home/travis/build/crisely09/fdeta/fdeta/tests/test_mdinterface.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
fdeta/tests/test_mdinterface.py:12: in <module>
    from fdeta.fdetmd.mdinterface import MDInterface
fdeta/fdetmd/mdinterface.py:9: in <module>
    from fdeta.fdetmd.cgrid_tools import BoxGrid
E   ModuleNotFoundError: No module named 'fdeta.fdetmd.cgrid_tools'
=============================== warnings summary ===============================
/home/travis/miniconda/envs/test/lib/python3.6/site-packages/nose/importer.py:12
  /home/travis/miniconda/envs/test/lib/python3.6/site-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    from imp import find_module, load_module, acquire_lock, release_lock
-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
===================== 1 warnings, 1 error in 0.36 seconds ======================
The command "python -m pytest --ignore=lib/pybind11" exited with 2.```

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.