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

Can't Run Ethernet Examples #330

Open
andrewteta opened this issue Nov 2, 2023 · 2 comments
Open

Can't Run Ethernet Examples #330

andrewteta opened this issue Nov 2, 2023 · 2 comments

Comments

@andrewteta
Copy link

When I try to run any of the Ethernet examples on Windows, I get an import error:

Traceback (most recent call last):
  File "examples\ethernet\eth_connection.py", line 3, in <module>
    from ingenialink.ethernet.network import EthernetNetwork, NET_TRANS_PROT
ImportError: cannot import name 'NET_TRANS_PROT' from 'ingenialink.ethernet.network'

I've tried using Python 3.8 and Python 3.12

@andrewteta
Copy link
Author

Update: Also tried with Python 3.9 and Python 3.10 - always with the same import error

@GullinBustin
Copy link
Contributor

The example will be fixed, thanks for create the issue. In addition, I fully recommend you use Ingeniamotion, use ingenialink, it has the same capabilities, but it's easier for the user.

PD: The problem in the example is that NET_TRANS_PROT does not exist anymore, remove it from the import and in the connect_to_slave function.

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