# Running code on installed Python doesn't work

**URL:** <https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141>\
**Category:** Large Language Models with Semantic Search\
**Created:** [October 10, 2023, 7:35pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141 "2023-10-10T19:35:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimbo42](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jimbo42](https://community.deeplearning.ai/u/Jimbo42)\
**Post date:** [October 10, 2023, 7:35pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/1 "2023-10-10T19:35:59Z")

</div>

Anyone try running the code for this on their own Python instance? I can get the Weaviate Client to acknowledge it is ready using my own credentials, but any of the queries return the same error:  
response = (  
client.query.get(“Articles”, properties)  
.with\_bm25(  
query=query  
)  
.with\_where(where\_filter)  
.with\_limit(num\_results)  
.do()

will produce an error:  
weaviate.exceptions.UnexpectedStatusCodeException: Query was not successful! Unexpected status code: 422, with response body: {‘error’: [{‘message’: ‘no graphql provider present, this is most likely because no schema is present. Import a schema first!’}]}.

Any ideas of how to proceed from here would be appreciated

---

<div class="post-metadata">

**Author:** ![elirod](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/elirod/32/55842_2.png) [@elirod](https://community.deeplearning.ai/u/elirod)\
**Post date:** [October 11, 2023, 12:01am UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/2 "2023-10-11T00:01:53Z")

</div>

Hi @Jimbo42

Welcome to the community.

What lesson are trying to running?

Did you install all the packages required?

Also, the course have some files on the lesson root path that might be necessary to run locally.

---

<div class="post-metadata">

**Author:** ![Jimbo42](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jimbo42](https://community.deeplearning.ai/u/Jimbo42)\
**Post date:** [October 12, 2023, 12:18pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/3 "2023-10-12T12:18:07Z")

</div>

Hi Elirod,

I am on this site:

> **[DLAI - Learning Platform Beta](https://learn.deeplearning.ai/large-language-models-semantic-search/lesson/2/keyword-search)**
>
> DLAI - Learning Platform Beta

I have installed the weaviate-Client, cohere, annoy packages. From what I understand about weaviate, a schema is needed in order to run a query and obtain results, but the code from this lesson doesn’t show any schemas … is this part of code that is on the lesson root path? How do I access that?

---

<div class="post-metadata">

**Author:** ![elirod](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/elirod/32/55842_2.png) [@elirod](https://community.deeplearning.ai/u/elirod)\
**Post date:** [October 12, 2023, 2:38pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/4 "2023-10-12T14:38:30Z")

</div>

Hi @Jimbo42

Thanks for the update.

You can access the root path by clicking on the jupyter logo on the top left

 ![image](https://global.discourse-cdn.com/dlai/original/3X/c/e/ce45aaaea9bfd343bb925e507c1a2075bb4aa2cd.png)

Regards the schema requirement, as far as i know, weaviate uses the auto-schema as a default for queries where no schema was provide.

Of course that this is a weaviate` v1.5` feature.

Also, i noticed that there is no schema file on the course root path. Sorry.

I hope this help.

Best regards

---

<div class="post-metadata">

**Author:** ![Sacha\_Van\_Weeren1](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/sacha_van_weeren1/32/126489_2.png) [@Sacha\_Van\_Weeren1](https://community.deeplearning.ai/u/Sacha_Van_Weeren1)\
**Post date:** [June 2, 2026, 4:28pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/5 "2026-06-02T16:28:22Z")

</div>

was this ever solved I have the same issue

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [June 2, 2026, 4:42pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/6 "2026-06-02T16:42:57Z")

</div>

It’s three years later, with no further reports.

I recommend you start a new topic for this question, so that the current course staff has a better chance to notice it.

---

<div class="post-metadata">

**Author:** ![lesly.zerna](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lesly.zerna/32/47465_2.png) [@lesly.zerna](https://community.deeplearning.ai/u/lesly.zerna)\
**Post date:** [June 11, 2026, 11:43pm UTC](https://community.deeplearning.ai/t/running-code-on-installed-python-doesnt-work/467141/7 "2026-06-11T23:43:49Z")

</div>

Thank you for reporting this!  
I’m running into the same issue when running the client creation 🤔 - I just reported to the team to check it.
