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
TypeError: 'SwigPyObject' object is not iterable #4
Comments
which version of pyindi are you using? |
I also have this problem:
pip freeze | grep pyindi indiserver --version |
I was able to reproduce this error in test https://github.com/indilib/pyindi-client/runs/4797923354 |
@abecadel I have one assumption but can't find time to test it. I suspect that this errors could be related to indi lib binary being changed and old built swig interface is not working anymore |
yes, it's most likely the case, I can look into it in two weeks (vacation) |
In the mean time, I built an xml parser in python to communicate with the indiserver so I don't need this anymore. So, no need to hurry ;-) |
reopenning as it's still an issue to fix |
It appears that the bug was introduced after indi v1.9.0 in indilib/indi#1449 and indilib/indi#1453 - property API has changed |
@abecadel you are right. Do you have any experience with SWIG interface files? |
Any update on this issue? what can be done to fix it? |
@knro I am loaded with some other things to do and don't have time to work on this. |
Unfortunately I was unable to fix it myself.
|
fixed in #15 |
Describe the bug
I installed indi and indi-3rdparty and pyindi-client from the latest source (indi 1.9.3) according to the respective README files and ran the example in README.rst in the pyindi-client repository. I ran the server as "indiserver indi_simulator_telescope indi_simulator_ccd"
I got this result:
2021-12-30 18:05:46,465 creating an instance of IndiClient
Connecting and waiting 1 sec
INDI::BaseClient::connectServer: creating new connection...
2021-12-30 18:05:46,465 Server connected (localhost:7624)
INDI::BaseClient::connectServer: Already connected.
2021-12-30 18:05:46,466 new device CCD Simulator
2021-12-30 18:05:46,466 new property CONNECTION for device CCD Simulator
2021-12-30 18:05:46,466 new property DRIVER_INFO for device CCD Simulator
2021-12-30 18:05:46,467 new property POLLING_PERIOD for device CCD Simulator
2021-12-30 18:05:46,467 new property DEBUG for device CCD Simulator
2021-12-30 18:05:46,467 new property CONFIG_PROCESS for device CCD Simulator
2021-12-30 18:05:46,467 new property ACTIVE_DEVICES for device CCD Simulator
2021-12-30 18:05:46,467 new property SIMULATOR_SETTINGS for device CCD Simulator
2021-12-30 18:05:46,467 new device Telescope Simulator
2021-12-30 18:05:46,467 new property CONNECTION for device Telescope Simulator
2021-12-30 18:05:46,467 new property DRIVER_INFO for device Telescope Simulator
2021-12-30 18:05:46,467 new property POLLING_PERIOD for device Telescope Simulator
2021-12-30 18:05:46,467 new property DEBUG for device Telescope Simulator
2021-12-30 18:05:46,468 new property CONFIG_PROCESS for device Telescope Simulator
2021-12-30 18:05:46,468 new property CONNECTION_MODE for device Telescope Simulator
2021-12-30 18:05:46,468 new property DEVICE_PORT for device Telescope Simulator
2021-12-30 18:05:46,468 new property DEVICE_BAUD_RATE for device Telescope Simulator
2021-12-30 18:05:46,468 new property DEVICE_AUTO_SEARCH for device Telescope Simulator
2021-12-30 18:05:46,468 new property DEVICE_PORT_SCAN for device Telescope Simulator
2021-12-30 18:05:46,468 new property ACTIVE_DEVICES for device Telescope Simulator
2021-12-30 18:05:46,468 new property DOME_POLICY for device Telescope Simulator
2021-12-30 18:05:46,468 new property TELESCOPE_INFO for device Telescope Simulator
2021-12-30 18:05:46,468 new property SCOPE_CONFIG_NAME for device Telescope Simulator
2021-12-30 18:05:46,468 new property MOUNT_TYPE for device Telescope Simulator
2021-12-30 18:05:46,468 new property SIM_PIER_SIDE for device Telescope Simulator
2021-12-30 18:05:46,468 new property MOUNT_MODEL for device Telescope Simulator
2021-12-30 18:05:46,468 new property MOUNT_AXES for device Telescope Simulator
2021-12-30 18:05:46,468 new property FLIP_HA for device Telescope Simulator
2021-12-30 18:05:46,469 new property EQUATORIAL_PE for device CCD Simulator
2021-12-30 18:05:46,469 new property SIM_FOCUSING for device CCD Simulator
2021-12-30 18:05:46,469 new property SIMULATE_BAYER for device CCD Simulator
2021-12-30 18:05:46,469 new property CCD_SIMULATE_CRASH for device CCD Simulator
List of devices
CCD Simulator
Telescope Simulator
List of Device Properties
-- CCD Simulator
Traceback (most recent call last):
File "/home/gerben/indi.py", line 82, in
for p in lp:
TypeError: 'SwigPyObject' object is not iterable
swig/python detected a memory leak of type 'INDI::BaseDevice::Properties *', no destructor found.To Reproduce
Exact steps to reproduce the behavior.
Start the server as indicated above
Run the example as indicated above
See error
Expected behavior
A result without the error message.
Log Files
See the above output
The text was updated successfully, but these errors were encountered: