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

Error of install #99

Open
innocence777 opened this issue Mar 18, 2023 · 2 comments
Open

Error of install #99

innocence777 opened this issue Mar 18, 2023 · 2 comments

Comments

@innocence777
Copy link

How can I solve the problem when I install the ingeniamotion?
The error is as follows:
ERROR: Cannot install ingeniamotion and ingeniamotion[dev]==0.6.0 because these package versions have conflicting dependencies.
The conflict is caused by:
ingeniamotion[dev] 0.6.0 depends on sphinx==3.5.4
nbsphinx 0.8.7 depends on sphinx>=1.8
sphinx-autodoc-typehints 1.19.5 depends on sphinx>=5.3
To fix this you could try to:

  1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict
    ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
@GullinBustin
Copy link
Contributor

Hello @innocence777 , have you tried to install ingeniamotion from pypi? https://pypi.org/project/ingeniamotion/

@innocence777
Copy link
Author

Hello @innocence777 , have you tried to install ingeniamotion from pypi? https://pypi.org/project/ingeniamotion/

Yes. I just tried to install ingeniamotion from pypi, but I didn't see the downloadable packages , I just run the command "pip install ingeniamotion", the problem still exists. When I run the follow command, It will still have errors:
"pip install -e .[dev] pip install -e .[tests]"

In addition, I completed the following command:
pip install ingeniamotion
pip install -e .
python setup.py bdist_wheel
Then I modified the dic_path in the config.json. It seems to be able to run.
The confog.josn file is as follow:

{
"eoe": [
{
"ip": "192.168.2.10",
"dictionary": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_eoe_2.4.0.xdf",
"config_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_esi_2.4.0.xml",
"fw_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_2.4.0.lfu"
},
{
"ip": "192.168.2.11",
"dictionary": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_eoe_2.4.0.xdf",
"config_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_esi_2.4.0.xml",
"fw_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_2.4.0.lfu"
}
],
"soem": [
{
"ip": "192.168.2.1",
"index": 3,
"dictionary": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_eoe_2.4.0.xdf",
"slave": 1,
"config_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_esi_2.4.0.xml",
"eoe_comm": true,
"fw_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_2.4.0.lfu",
"boot_in_app": false
},
{
"ip": "192.168.2.1",
"index": 3,
"dictionary": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_eoe_2.4.0.xdf",
"slave": 2,
"config_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_esi_2.4.0.xml",
"eoe_comm": true,
"fw_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_2.4.0.lfu",
"boot_in_app": false
}
],
"canopen": [
{
"device": "pcan",
"dictionary": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_eoe.xdf",
"eds": "C:/ProgramData/motortest/ingeniamotion-master/resources/eve-xcr-c.eds",
"node_id": 20,
"baudrate": 1000000,
"channel": 0,
"config_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_esi.xml",
"fw_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/eve-xcr-c.lfu"
},
{
"device": "pcan",
"dictionary": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_eoe.xdf",
"eds": "C:/ProgramData/motortest/ingeniamotion-master/resources/cap-xcr-c.eds",
"node_id": 21,
"baudrate": 1000000,
"channel": 0,
"config_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si_esi.xml",
"fw_file": "C:/ProgramData/motortest/ingeniamotion-master/resources/den-xcr-e-si.lfu"
}
]
}

After I run the "pytest --protocol soem" in powershell, the process errors are folowing:
The system requirments are:
platform win32 -- Python 3.9.5, pytest-7.3.0, pluggy-1.0.0
rootdir: C:\ProgramData\motortest\ingeniamotion-master
configfile: pytest.ini
testpaths: tests
plugins: cov-4.0.0, repeat-0.9.1
collected 578 items
"
ERROR tests/test_capture.py::test_create_poller - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_create_monitoring_no_trigger - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_create_monitoring_edge_trigger[MonitoringSoCType.TRIGGER_EVENT_EDGE-MonitoringSoCConfig.TRIGGER_CONFIG_RISING-values_list0] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_create_monitoring_edge_trigger[MonitoringSoCType.TRIGGER_EVENT_EDGE-MonitoringSoCConfig.TRIGGER_CONFIG_FALLING-values_list1] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_create_disturbance - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_mcb_synchronization - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_mcb_synchronization_fail - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_disturbance_max_sample_size - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_monitoring_max_sample_size - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_capture.py::test_get_frequency - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_get_ifname_from_interface_ip - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_connect_servo_ecat_no_dictionary_error - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_connect_servo_ecat_interface_index_no_dictionary_error - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_get_register[CL_VOL_Q_SET_POINT-0.34] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register[CL_POS_SET_POINT_VALUE-23] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register[PROF_POS_OPTION_CODE-54] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_uid - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[CL_VOL_Q_SET_POINT--234-False] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[CL_VOL_Q_SET_POINT-I'm not a number-True] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[CL_VOL_Q_SET_POINT-234.4-False] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[CL_POS_SET_POINT_VALUE-1245-False] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[CL_POS_SET_POINT_VALUE--1245-False] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[CL_POS_SET_POINT_VALUE-1245.5421-True] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[PROF_POS_OPTION_CODE--54-True] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[PROF_POS_OPTION_CODE-54-False] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_value_type[PROF_POS_OPTION_CODE-54-True] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_register_wrong_access - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_get_sdo_register[CL_VOL_Q_SET_POINT-8216-0-REG_DTYPE.FLOAT--234] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_get_sdo_register[CL_POS_SET_POINT_VALUE-8224-0-REG_DTYPE.S32-1245] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_get_sdo_register[PROF_POS_OPTION_CODE-8228-0-REG_DTYPE.U16-54] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_communication.py::test_set_sdo_register[CL_VOL_Q_SET_POINT-8216-0-REG_DTYPE.FLOAT--234] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_profiler[None-1-None] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_profiler[None-None-1] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_acceleration[0] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_acceleration[10] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_acceleration[25] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_profile_acceleration[0] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_profile_acceleration[10] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_profile_acceleration[25] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_configuration.py::test_set_max_deceleration[0] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion.py::test_internal_generator_saw_tooth_move[1-OperationMode.CURRENT] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion.py::test_internal_generator_constant_move[-1-OperationMode.VOLTAGE] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion.py::test_internal_generator_constant_move[-1-OperationMode.CURRENT] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion.py::test_internal_generator_constant_move[1-OperationMode.VOLTAGE] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion.py::test_internal_generator_constant_move[1-OperationMode.CURRENT] - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion_controller.py::test_motion_controller - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion_controller.py::test_servo_name - ingenialink.exceptions.ILError: Unsupported dictionary format
ERROR tests/test_motion_controller.py::test_get_register_enum - ingenialink.exceptions.ILError: Unsupported dictionary format
...................
...................
...................
"
Do I need to modify the parameters in other files, such as IP address and ifname?

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