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

Examples don't run #269

Open
Vasserman292992 opened this issue Jan 12, 2023 · 1 comment
Open

Examples don't run #269

Vasserman292992 opened this issue Jan 12, 2023 · 1 comment

Comments

@Vasserman292992
Copy link

Vasserman292992 commented Jan 12, 2023

       Good afternoon, I'm trying to run the examples/ethercat/ example ecat_connection.py, but I'm having some problems. I use the EVEREST XCR-E board and connect to it via the EtherCAT protocol. The device, as I understand it, is detected, but the following error occurs:

PS C:\Users\a.danilin\Desktop\INGA\ingenialink-python > & C:/Users/a.danilin/AppData/Local/Programs/Python/y
[1]
1.7.2.000
11:58:21 WARN C:\Users\ContainerAdministrator\ingenialink-python_deps\ingenialink\ingenialink\ecat\net.c:1991: Slave 0 cannot enter into state INIT.
I tried to run all the examples sequentially from the examples folder, but the following errors occur:
1) WARN C:....\ingenialink\ingenialink\ecat\net.c:1991: Slave 0 cannot enter into state INIT..
2) WARN C:\ingenialink-python_deps\ingenialink\ingenialink\ecat\net.c12:00:00 WARN
3) ImportError: cannot import name 'NET_TRANS_PROT' from 'ingenialink.ethernet.network'
Please tell me what this may be related to and how to fix these errors. If possible, please send detailed instructions on how to build the library and run examples from it.
Information about my system:
- Windows 10 x64;
- Python 3.9

@MartinALL91
Copy link
Contributor

Hi @Vasserman292992 ,

All of the examples are working. Be sure to configure the correct interface name and dictionary path.

1) WARN C:....\ingenialink\ingenialink\ecat\net.c:1991: Slave 0 cannot enter into state INIT..
2) WARN C:\ingenialink-python_deps\ingenialink\ingenialink\ecat\net.c12:00:00 WARN
These two messages are warnings, not errors. This is normal behavior.

3) ImportError: cannot import name 'NET_TRANS_PROT' from 'ingenialink.ethernet.network'
This is due to an error with the script. It can be solved by simply removing this line.

There is no need to build the library. Install the library with the following command:
pip install ingenialink

Once you have the library installed, run an example:
python examples/ethercat/ecat_connection.py

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