Git Product home page Git Product logo

Comments (5)

ataffanel avatar ataffanel commented on August 22, 2024

If you have installed the lib with pip, you can just run the examples with the filename: python basiclog.py. This is usually how we run them. What error are you seeing?

For the tutorials there is a getting started tutorial (https://www.bitcraze.io/getting-started-with-the-crazyflie-2-0/) and a getting started with development (https://www.bitcraze.io/getting-started-with-development/) on the Bitcraze website. Following these two documentation will walk you through the process of connecting, flying and programming the Crazyflie.

from crazyflie-lib-python.

santolucito avatar santolucito commented on August 22, 2024

I had the same issue with the error 'crazyflie-lib-python/venv/bin/python2: No module named examples' when using python 2.7. By switching to 3.5 (alias python=python3), I was able to get the basiclog example working (after connecting the crazyflie via usb).

from crazyflie-lib-python.

krichardsson avatar krichardsson commented on August 22, 2024

The examples are not designed as modules (running with the -m switch). The intended use is to run

    python examples/basiclog.py

from crazyflie-lib-python.

santolucito avatar santolucito commented on August 22, 2024

Should the README be updated then? atm line 27 of the README tells us to use '-m'

from crazyflie-lib-python.

krichardsson avatar krichardsson commented on August 22, 2024

@santolucito yes it should. Sorry, I was a bit too quick on closing this one!
I'll fix it

Thanks!

from crazyflie-lib-python.

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.