Skip to content
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

from scanlist import Scanlist ModuleNotFoundError: No module named 'scanlist' #1

Open
Dipak11 opened this issue Mar 8, 2019 · 1 comment

Comments

@Dipak11
Copy link

Dipak11 commented Mar 8, 2019

Hi ,
i am using python 3.7.2 and trying to read some tag from micrologix 1400 PLC, now when i am trying to execute below code i am getting error as "from scanlist import Scanlist
ModuleNotFoundError: No module named 'scanlist'"
import time
from pycomm_scanlist import Scanlist

def handle_tag_change(sender, eargs=None):
"""Handle a tag value change."""
print("{} CHANGED FROM {} TO {}".format(sender.tag_name, sender.last_value, sender.value))

micro_scan_list = Scanlist("192.168.0.5", plc_type="Micro1400", change_handler=handle_tag_change)
micro_scan_list.add("ST11:0")
micro_scan_list.add("ST11:1")
micro_scan_list.add("ST11:2")
micro_scan_list.add("ST11:3")

micro_scan_list.print_tag_names()

while True:
micro_scan_list.scan()
time.sleep(5)

can someone help on this please?

@ravi-misra
Copy link

I was facing same problem. Tried in Python 2.7.17 and it worked without any problem

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

No branches or pull requests

2 participants