labgrid-project / labgrid-project/labgrid

modbusrtu/dev extras make pyserial overwrite pyserial-labgrid

Open
#1,245 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
528
Forks
278
Avg merge
2d 19h
Merged PRs (30d)
4

Description

Having labgrid installed without extras:

$ pip freeze | grep pyserial
pyserial-labgrid==3.5.0.2
$ python -c 'import serial; print(serial.VERSION)'
3.5.0.2

With modbusrtu or dev extra (pulling in minimalmodbus, which depends on pyserial):

$ pip freeze | grep pyserial
pyserial==3.5
pyserial-labgrid==3.5.0.2
$ python -c 'import serial; print(serial.VERSION)'
3.5

This means pyserial effectively overwrites pyserial-labgrid.

I don't know if pyserial always overwrites pyserial-labgrid, it probably depends on pip's dependency resolving strategy.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the two documented cases with no extras and with the modbusrtu or dev extra, checking the reported pyserial versions. Inspect the dependency metadata for those extras and minimalmodbus. Done means installing either extra no longer causes pyserial to overwrite pyserial-labgrid.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.