Giter VIP home page Giter VIP logo

Comments (5)

baronet2 avatar baronet2 commented on May 28, 2024

Thanks for the issue. Having a look.

from firstcyclingapi.

baronet2 avatar baronet2 commented on May 28, 2024

Hi @StefaanD , it seems that you have not installed the dependencies in the requirements.txt file.

You should run pip install -r requirements.txt before running the tests.

Perhaps this instruction should be added to the README.md to make it more clear?

I have tested in a new environment and everything seems to pass on my end.

Hope that helps!

from firstcyclingapi.

StefaanD avatar StefaanD commented on May 28, 2024

Missed that requirements.txt file.

I'm actually trying this on a Mac (macOS Catalina 10.15.7)

After doing a pip install -r requirements.txt I get the following output

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. daal4py 2021.3.0 requires daal==2021.2.3, which is not installed. conda-repo-cli 1.0.4 requires pathlib, which is not installed. anaconda-project 0.10.1 requires ruamel-yaml, which is not installed. numba 0.54.1 requires numpy<1.21,>=1.17, but you have numpy 1.21.2 which is incompatible.

i was able to install daal==2021.2.3, pathlib and ruamel-yaml but not sure how to downgrade numpy to 1.21 or below.

when I run py.test in the current state I get the following output

`================================================= test session starts ==================================================
platform darwin -- Python 3.9.7, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /Users/admin/Documents/GitHub/FirstCyclingAPI
plugins: anyio-2.2.0
collected 6 items

tests/test_race.py .. [ 33%]
tests/test_ranking.py ... [ 83%]
tests/test_rider.py . [100%]

=================================================== warnings summary ===================================================
../../../opt/anaconda3/lib/python3.9/site-packages/boto/plugin.py:40
/Users/admin/opt/anaconda3/lib/python3.9/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================= 6 passed, 1 warning in 2.28s =============================================`

from firstcyclingapi.

baronet2 avatar baronet2 commented on May 28, 2024

Well the tests worked so something is going right!

This dependency stuff is a bit above my head. The package versions are not crucial for first_cycling_api to work. I'm not sure how to get rid of that warning without doing some googling. It seems to be related to anaconda3 on your end.

from firstcyclingapi.

baronet2 avatar baronet2 commented on May 28, 2024

Considering the test output above, I'm assuming we can close this issue. @StefaanD if not, feel free to re-open.

from firstcyclingapi.

Related Issues (4)

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.