Skip to content

Update requirements.txt for serial connection - #994

Open
sethome2 wants to merge 1 commit into
ArduPilot:masterfrom
sethome2:master
Open

Update requirements.txt for serial connection#994
sethome2 wants to merge 1 commit into
ArduPilot:masterfrom
sethome2:master

Conversation

@sethome2

Copy link
Copy Markdown

Although pymavlink supports the use of serial connections with a flight control board and utilizes a serial connection package, this information is not reflected in the requirements.txt file.

Simply running "pip install -r pymavlink/requirements.txt" and attempting to use the mavutil module over serial will not work as expected.

@amilcarlucas

Copy link
Copy Markdown
Contributor

Can you please rebase and force push this?

@sethome2

Copy link
Copy Markdown
Author

Already rebased and force-pushed. Could you please approve and run the workflows? Thanks! :)

@peterbarker peterbarker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As silly as this sounds, we don't actually require pyserial because it's not technically required to use pymavlink. You can create other sorts of backends that don't involve serial. This is also why the import for serial happens when you try to create a mavserial object.

If you can find somewhere to put this in as a "recommends" that would be better.

Although pymavlink supports the use of serial connections with a flight control board and utilizes a serial connection package, this information is not reflected in the requirements.txt file.

Simply running "pip install -r pymavlink/requirements.txt" and attempting to use the mavutil module over serial will not work as expected.
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

Successfully merging this pull request may close these issues.

3 participants