Skip to content

serial problem #1

@m986883511

Description

@m986883511

test in linux use py27, run failed. what the serial package version?
please add a requirment.txt

(py27) ubuntu@ubuntu-vm:~$ python serial-web.py
Traceback (most recent call last):
  File "serial-web.py", line 146, in <module>
    com = serial.Serial(USB_PORT)
AttributeError: 'module' object has no attribute 'Serial'
(py27) ubuntu@ubuntu-vm:~$
(py27) ubuntu@ubuntu-vm:~$
(py27) ubuntu@ubuntu-vm:~$ python
Python 2.7.18 |Anaconda, Inc.| (default, Nov 25 2022, 06:27:37)
[GCC 11.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
[3]+  Stopped                 python
(py27) ubuntu@ubuntu-vm:~$
(py27) ubuntu@ubuntu-vm:~$ pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package    Version
---------- -------------------
certifi    2020.6.20
future     0.18.3
iso8601    0.1.16
pip        19.3.1
PyYAML     5.4.1
serial     0.0.97
setuptools 44.0.0.post20200106
wheel      0.37.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions