devika icon indicating copy to clipboard operation
devika copied to clipboard

Update researcher.py

Open Abhishekrajpurohit opened this issue 1 year ago • 3 comments

there is a Unsupported operand type s for |: type and type error, ive done a few changes

Abhishekrajpurohit avatar Apr 04 '24 10:04 Abhishekrajpurohit

The problem was just that python < 3.10 is incompatible with new typing syntax. Not sure if all type hints should be rewritten in a compatible manner or if the project should just require python >= 3.10 which is quite reasonable in 2024.

jmtatsch avatar Apr 04 '24 11:04 jmtatsch

On a MacOS MacBook M1 Even with a Python version 3.12. the error still persisted

On Thu, Apr 4, 2024, 17:10 jmtatsch @.***> wrote:

The problem was just that python < 3.10 is incompatible with new typing syntax. Not sure if all type hints should be rewritten in a compatible manner or if the project should just require python >= 3.10 which is quite reasonable in 2024.

— Reply to this email directly, view it on GitHub https://github.com/stitionai/devika/pull/346#issuecomment-2036935682, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARARZ5I5MSQXB2KRTL5D4WTY3U3Y7AVCNFSM6AAAAABFW7HD5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWHEZTKNRYGI . You are receiving this because you authored the thread.Message ID: @.***>

Abhishekrajpurohit avatar Apr 04 '24 12:04 Abhishekrajpurohit

That is impossible. Maybe your venv uses an older python version? How did you install python 3.12? brew?

jmtatsch avatar Apr 04 '24 13:04 jmtatsch

copy of https://github.com/stitionai/devika/pull/345

we recommand to use >= 3.10 and < 3.12. I tested it with that not an issue. currently, so many projects doesn't support 3.12

ARajgor avatar Apr 06 '24 07:04 ARajgor