'SwigPyObject' object is not subscriptable error when running on mac #761
Closed
AviKarthik
started this conversation in
General
Replies: 1 comment 1 reply
-
What version of swig are you running, I'm using 4.0.2 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi professor @schaubh, I am trying to install basilisk on mac, and I keep getting this SwigPyObject' object is not subscriptable error whenever I try to run the ScenarioDragDeorbit.py or the ScenarioAttitudeFeedbackRW.py, the basic orbit scenario works fine but the other ones dont. The full error when i run the attutude feedback rw script is:
Traceback (most recent call last):
File "/Users/avinashkarthik/basilisk/examples/ScenarioAttitudeFeedbackRW.py", line 689, in
run(
File "/Users/avinashkarthik/basilisk/examples/ScenarioAttitudeFeedbackRW.py", line 550, in run
rwLogs.append(rwStateEffector.rwOutMsgs[item].recorder(samplingTime))
TypeError: 'SwigPyObject' object is not subscriptable
and the full error when i run the drag deorbit script is:
Traceback (most recent call last):
File "/Users/avinashkarthik/basilisk/examples/ScenarioDragDeorbit.py", line 361, in
run(
File "/Users/avinashkarthik/basilisk/examples/ScenarioDragDeorbit.py", line 192, in run
atmo.swDataInMsgs[c].subscribeTo(swMsgList[-1])
TypeError: 'SwigPyObject' object is not subscriptable
I am using Basilisk v2.2.1 and I'm using python v3.10.11, what is wrong and how can I go about fixing this error?
Beta Was this translation helpful? Give feedback.
All reactions