Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems installing on RPI4 #34

Closed
TMRh20 opened this issue Nov 24, 2021 · 3 comments
Closed

Problems installing on RPI4 #34

TMRh20 opened this issue Nov 24, 2021 · 3 comments

Comments

@TMRh20
Copy link
Member

TMRh20 commented Nov 24, 2021

I'm running on a RPI4 with RPI OS/Buster and having troubles installing the circuitpython driver. ( I was bored so thought I would try it out)

I initially got an error:

Traceback (most recent call last):
  File "nrf24l01_scanner_test.py", line 7, in <module>
    import board
ModuleNotFoundError: No module named 'board'

But that was resolved by running sudo python3 -m pip install --force-reinstall adafruit-blinka

Now I'm getting:

Traceback (most recent call last):
  File "nrf24l01_simple_test.py", line 11, in <module>
    from circuitpython_nrf24l01.rf24 import RF24
ModuleNotFoundError: No module named 'circuitpython_nrf24l01'

When I try to run any of the examples.

So it seems that the module isn't installing correctly or something.
I ran pip3 install circuitpython-nrf24l01 per your docs at https://circuitpython-nrf24l01.readthedocs.io/en/latest/#installing-from-pypi with no errors, so am wondering wtf?
It maybe just my newbness with python related anything...

@2bndy5
Copy link
Member

2bndy5 commented Nov 25, 2021

When you ran the simple test, did you use python3 or python? I know this seems like a basic question, but there is a difference - python is py2.7, python3 is py3.x.

You can see what libs are installed by using pip list (for python 2.7) or pip3 list (for python 3.x)

@2bndy5
Copy link
Member

2bndy5 commented Nov 25, 2021

If you're running the examples from the repo's master branch, then it would probably be best to install the lib from the repo's root. I haven't published a release yet (as of this writing) to pypi since merging #33 to master.

cd CircuitPython_nRF24l01
git checkout master
python3 -m pip install .
cd examples
python3 nrf24l01_simple_test.py

@TMRh20
Copy link
Member Author

TMRh20 commented Nov 25, 2021

I was using python3 to run the simple_test but your instructions above worked. Now I'm happily running the examples!

@TMRh20 TMRh20 closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants