-
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
base: ev3dev-stretch
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Common Issues with ev3dev-lang-python | ||
===================================== | ||
|
||
``/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). For PyCharm, you can find a guide on doing this | ||
`here <https://www.jetbrains.com/help/pycharm/2016.2/configuring-line-separators.html>`_. | ||
In Visual Studio Code, there is an option in the lower-right corner. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think most users are using VS Code these days, so maybe list this one first with a screenshot? |
||
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'`` | ||
------------------------------------------ | ||
|
||
You probably forgot to `update config.txt`_. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be good to mention that this only applies to Raspberry Pi. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On BrickrPi3, there is also the common issue of "my sensors don't work". Solution is to copy https://github.com/ev3dev/ev3dev-lang-python-demo/blob/stretch/platform/brickpi3-motor-and-sensor.py |
||
|
||
.. _update config.txt: https://www.ev3dev.org/docs/getting-started/#step-3a-raspberry-pi-only-update-options-in-configtxt |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
spec | ||
rpyc | ||
faq | ||
common-issues |
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)