If you are having trouble with get_srs() when running locally, it might be your HOME env variable. #870
-
I have been studying EZKL for a few days and I love how easy it is to use. However, I ran into a wall when recreating the examples in PyCharm to understand them better. I was able to copy and paste most of the code with tweaks only done for the organization. For the await uses I used the Asyncio Python library and some wrapper functions to handle them. However, the one I created for the-
-line is not working. For reference, here is the wrapper function.
And here is how I call the function:
To make sure my tweaks to the code weren't at fault, I ran the example in Colab and saw that it ran with no problem. I used the same libraries in the example Colab and my PyCharm environment and installed IPython to see if that would do anything as well. I also updated my local rust installation to the latest version, but I was still getting the same error-
Am I using the method properly? Is there anything I should ensure I have in the settings file to make sure that it runs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
Note, the question was "Am I properly using the get_srs() method in Python?"
Update to the discussion: I figured out my problem and I want this discussion to stay up in case anyone else comes across this problem. I might rename my discussion too to make it more helpful.
Out of frustration I downloaded the command line version of the library and looked at the Rust code in my IDE. The panicking that keeps happening at src\execute.rs:74:55 leads you to this snippet of code (screenshotting because I am still learning how to do the syntax):
From what I understand, this part of the code uses the presumably set HOME variable to give the program a place to download the SRS information. Correct m…