Coder Social home page Coder Social logo

Comments (3)

kFYatek avatar kFYatek commented on July 30, 2024

Hi @eabase,

Sorry that this is not well documented.

However, you can always check out the dependencies necessary to run all tests and helper scripts by checking the Github Actions test scripts - https://github.com/AVSystem/Anjay/blob/master/.github/workflows/anjay-tests.yml also refers to some Docker images, and you can see their corresponding Dockerfiles in the tools/ci directory of the repo, e.g. https://github.com/AVSystem/Anjay/blob/master/tools/ci/ubuntu-22.04/Dockerfile

If you're asking about Python packages specifically, then you can refer to the pip3 install line for the macOS platform - so the current dependencies are sphinx sphinx-rtd-theme cbor2 aiocoap cryptography packaging requests wheel

Please note, however, that some of those may only be required for running tests or building documentation.

from anjay.

eabase avatar eabase commented on July 30, 2024

Hi @kFYatek

We're not using Docker, so that it's a no-go.

then you can refer to the pip3 install line for the macOS platform

Thank you, but there must be something else missing, as I keep getting import errors.

# python.exe  nsh_lwm2m.py

Traceback (most recent call last):
  File "C:\mydev\pr_anjay\Anjay\tests\integration\framework\nsh-lwm2m\nsh_lwm2m.py", line 24, in <module>
    from cbor_shell import CBORBuilderShell
  File "C:\mydev\pr_anjay\Anjay\tests\integration\framework\nsh-lwm2m\cbor_shell.py", line 13, in <module>
    import powercmd
  File "C:\mydev\pr_anjay\Anjay\tests\integration\framework\nsh-lwm2m\powercmd\powercmd\__init__.py", line 5, in <module>
    from .cmd import Cmd
  File "C:\mydev\pr_anjay\Anjay\tests\integration\framework\nsh-lwm2m\powercmd\powercmd\cmd.py", line 42, in <module>
    from prompt_toolkit import PromptSession
ModuleNotFoundError: No module named 'prompt_toolkit'

from anjay.

eabase avatar eabase commented on July 30, 2024

It was missing powercmd which also installs prompt-toolkit.

The following pip packages are needed:

pip install -U cbor2 aiocoap cryptography packaging wheel powercmd

(with sphinx sphinx-rtd-theme optional.)

@kFYatek
Please update the requirements & documentation!

from anjay.

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.