# Serial.list() can't work in python mode

**URL:** https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681
**Category:** Processing.py
**Created:** [July 11, 2018, 6:05am UTC](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681 "2018-07-11T06:05:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![newton45](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@newton45](https://discourse.processing.org/u/newton45)
#### Post date: [July 11, 2018, 6:05am UTC](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681/1 "2018-07-11T06:05:18Z")

</div>

code is very simply. But can’t work.

```auto
add_library('serial')
def setup():
    size(200,200)
    print Serial.list()
def draw():
    background(0)

```

![1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/1X/efaff4979fe8c6c312b83600e82742fe881858d7.PNG)

The version is 3.3.7  
And I also installed a processing version 2.2.1, in this version this code can work in the same computer.

Is anyone know what happened and how to let 3.3.7 work?

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [July 11, 2018, 12:44pm UTC](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681/2 "2018-07-11T12:44:48Z")

</div>

I’ve got it working by going back to Python Mode build 3035 in place of current 3038 [(3039 at its repo)](https://github.com/jdf/processing.py/releases). 😸  
Build 3035 was in the subfolder “old/” btW. 🤑  
Anyways, you should report the issue here: 🤒

> **[jdf/processing.py](https://github.com/jdf/processing.py/issues)**
>
> Write Processing sketches in Python. Contribute to jdf/processing.py development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)
#### Post date: [November 7, 2019, 7:54pm UTC](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681/3 "2019-11-07T19:54:11Z")

</div>

If you are on Windows 64-bits, be sure to check this issue, and the workaround of deleting/renaming from the Processing IDE folder this file: `\processing-3.x.x\modes\java\libraries\serial\library\windows32\jSSC-2.8.dll`

> <https://github.com/jdf/Processing.py-Bugs/issues/227>
>
> It looks like processing is using incorrect dll search path on a 64bit architecture.
> Following code fails.
> add\_library('serial')
> from java.lang import System
> System.loadLibrary("jSSC-2.8") #the native...
