-
Notifications
You must be signed in to change notification settings - Fork 145
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
Create "common issues" page and include BrickPi info #731
Open
WasabiFan
wants to merge
3
commits into
ev3dev-stretch
Choose a base branch
from
common-issues
base: ev3dev-stretch
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Common Issues with ev3dev-lang-python | ||
===================================== | ||
|
||
``ImportError: No module named ev3dev2`` | ||
---------------------------------------- | ||
|
||
This likely means you are running the script on your computer rather than on the | ||
EV3 (or other ev3dev platform). You can run it using our | ||
`Visual Studio Code extension`_ by connecting to a device from the "Explore" tab | ||
on the left and then going to the debug tab, selecting "Run and Debug", and | ||
choosing the ev3dev option. | ||
|
||
.. image:: _static/vscode-debug.png | ||
|
||
``/usr/bin/env: 'python3\r': No such file or directory`` | ||
-------------------------------------------------------- | ||
|
||
This means your file includes Windows-style line endings | ||
(CRLF--carriage-return line-feed), which are often inserted by editors on | ||
Windows. To resolve this issue, open an SSH session and run the following | ||
command, replacing ``<file>`` with the name of the Python file you're | ||
using: | ||
|
||
.. code:: shell | ||
|
||
sed -i 's/\r//g' <file> | ||
|
||
This will fix it for the copy of the file on the brick, but if you plan to edit | ||
it again from Windows, you should configure your editor to use Unix-style | ||
line endings (LF/line-feed). In Visual Studio Code, there is an option in the | ||
lower-right corner. | ||
|
||
.. image:: _static/vscode-crlf.png | ||
|
||
For PyCharm, you can find a guide on doing this | ||
`here <https://www.jetbrains.com/help/pycharm/2016.2/configuring-line-separators.html>`_. | ||
Most other editors have similar options; there may be an option for it in the | ||
status bar at the bottom of the window or in the menu bar at the top. | ||
|
||
|
||
``Exception: Unsupported platform 'None'`` | ||
------------------------------------------ | ||
|
||
If you are on a Raspberry Pi, you probably forgot to `update config.txt`_. | ||
|
||
|
||
Using BrickPi 3: sensors aren't found | ||
------------------------------------- | ||
|
||
The BrickPi can't automatically detect what sensors are plugged in, so you need | ||
to tell it. See the `BrickPi 3 demo`_. | ||
|
||
.. _update config.txt: https://www.ev3dev.org/docs/getting-started/#step-3a-raspberry-pi-only-update-options-in-configtxt | ||
.. _Visual Studio Code extension: https://github.com/ev3dev/vscode-ev3dev-browser | ||
.. _BrickPi 3 demo: https://github.com/ev3dev/ev3dev-lang-python-demo/blob/stretch/platform/brickpi3-motor-and-sensor.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
spec | ||
rpyc | ||
faq | ||
common-issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another issue (possibly more common than this one) is "no module named ev3dev2". This is usually caused by users running the program on their computer instead of the EV3.
e.g. #539 (comment)