User bio
404 bio not found
Member since Jun 8, 2016
Posts:
Replies:
Thanks! And nice tips and lovely explanation, now everything is making more sense.
Regarding the pure Python approach, I am still struggling with how to use it in a much simpler way. Your last example is still too complex for a very simple scenario of one or two python files.
Let me explain. I have this class in the file hello_world.py
class HelloWorld:
def sayhello(self):
print("Hello, World!")
return "you did it!"
Then I would like to use it doing something like:
Class dc.boto Extends %RegisteredObject
{
ClassMethod test1() [ Language = python ]
{
from hello_world import HelloWorld
# Create an instance of HelloWorld
greeting = HelloWorld()
# Call the say_hello method
ret=greeting.sayhello()
print(ret)
}
ClassMethod test2()
{
Set hello = ##class(%SYS.Python).Import("/iris-shared/python/hello_world.py")
Write hello.sayhello()
}
}
But this is throwing ModuleNotFoundError errors.
I don't know if I have to create a packet and import it with pip... if so, it will be still complex. 😌
Is this possible? Do you see my point?
Yes, open a WRC problem and mention this GitHub.
Open Exchange applications:
Certifications & Credly badges:
Mario has no Certifications & Credly badges yet.
Global Masters badges:
![Open Sesame!](https://community.intersystems.com/sites/default/files/badges/303371180-6de11138-f4e7-4113-b5cc-836269f07693.png)
![1,000 Points](https://community.intersystems.com/sites/default/files/badges/290121674-53216c4b-fe0c-44e7-9d75-2f24390135ed.png)
![Challenge Starter](https://community.intersystems.com/sites/default/files/badges/295959213-b83dd91a-663f-4f07-8e0e-e3287b7c2309.png)
![5,000 Points](https://community.intersystems.com/sites/default/files/badges/290121698-6976e2e4-084b-4026-bc5f-728c5e1ebe41.png)
![Reporter Badge](https://community.intersystems.com/sites/default/files/badges/reporter_badge_0.png)
![Global Master of the Month](https://community.intersystems.com/sites/default/files/badges/gm_of_the_month_copy.png)
![DC Author](https://community.intersystems.com/sites/default/files/badges/dc_author_0.png)
Followers:
Mario has no followers yet.
Following:
I am having this same problem and I am using the latest extension.
I added the
to the User settings.json , which is the same as
But still getting the error:
Check your server details in Settings (vgorillaaws[VGORILLA]).
request to https://ec2-x.x.x.x.us-east-2.compute.amazonaws.com/api/atelier/ failed, reason: self signed certificate
I am using [2.5.0] - 2024-05-02 InterSystems Language Server