« first day (4890 days earlier)      last day (276 days later) » 

04:07
from evals.api import CompletionFn
File "/opt/miniconda3/lib/python3.9/site-packages/evals/__init__.py", line 5, in <module>
from .completion_fns.openai import OpenAIChatCompletionFn as OpenAIChatCompletionFn
File "/opt/miniconda3/lib/python3.9/site-packages/evals/completion_fns/openai.py", line 13, in <module>
from evals.utils.api_utils import (
File "/opt/miniconda3/lib/python3.9/site-packages/evals/utils/api_utils.py", line 17, in <module>
openai.error.ServiceUnavailableError,
AttributeError: module 'openai' has no attribute 'error'
Hi, When I am trying to openai evals, it was throwing the above error
Can anyone help to solve this issue, thank you
@YatShan Looks like you're not using compatible versions of openai and evals -- github.com/openai/evals/issues/1399
@Peilonrayz Ok
Does it mean openai evals is broken?
Current version I have - openai 1.13.3
What's your evals version?
how to check evals version?
pip freeze | grep evals
04:18
Above command doesn't give version though
Gives location of the evals folder
I don't know why the command works on my system but not yours.
Ok, let me try again
You could try just pip freeze and see if you can manually find evals... perhaps a shell issue
As per your screenshot it is giving the version of virtualenv, not the version of openai evals
I don't have evals installed.
04:24
Ok
It shows evals @ location
Not the version
evals @ file:///Users/name/Desktop/evals
After entering pip freeze
I will clone the repo again and try again
Even cloning the repo again didn't work
Throwing the same error - File "/opt/miniconda3/bin/oaieval", line 5, in <module>
from evals.cli.oaieval import main
File "/opt/miniconda3/lib/python3.9/site-packages/evals/__init__.py", line 5, in <module>
from .completion_fns.openai import OpenAIChatCompletionFn as OpenAIChatCompletionFn
File "/opt/miniconda3/lib/python3.9/site-packages/evals/completion_fns/openai.py", line 13, in <module>
from evals.utils.api_utils import (
File "/opt/miniconda3/lib/python3.9/site-packages/evals/utils/api_utils.py", line 17, in <module>
The current main branch of the file doesn't use openai.error. github.com/openai/evals/blob/…
Which means myself running the command is pointing to old code base of openai evals
04:41
What are the install instructions and the run instructions?
install instructions is 'pip install evals' and run instruction is 'oaieval gpt-4 2d_movement'
As per my understanding, above are instructions
Does python -m evals.cli.oaieval gpt-4 2d_movement get the same error?
I will try this command
Yes same error :(
Do pip -V and python -m pip -V produce the same output?
I'll check
Yes same
pip 23.3 from /opt/miniconda3/lib/python3.9/site-packages/pip (python 3.9)
04:56
Sorry I don't think I can help you. I'm not sure why pip freeze and "I will clone the repo again and try again" are indicating a local install. Where pip install evals and site-packages/evals/utils (IIRC) indicate a package install and Python 3.9 is supported by evals 2.0.0.
 
1 hour later…
06:06
@YatShan can you give the line that you see here?
The way you're talking it sounds like you're trying to install it locally. The other thing is that you're installing into miniconda so you probably want conda install into that conda env rather than pip. I've never had problems myself using pip in conda but it always came with a warning that there could be issues doing so
 
6 hours later…
11:42
is there a tool to remove unused variables from your code or at least warn about them?
VSCode will automatically do that as you go by greying them out if they don't get used. I suspect other editors would too
@roganjosh that sounds cool. I should update from emacs :)
If you didn't want to change editors, you could probably just use pylint or something and use a commit hook
I mean, there's a lot of ways to do this. A basic google search will show you the options
ruff does it! testgetMax.py:43:9: F841 Local variable `t1` is assigned to but never used
testgetMax.py:48:14: E701 Multiple statements on one line (colon)
testgetMax.py:91:9: F841 Local variable `dRmax` is assigned to but never used
12:36
I wish ruff would learn how to handle * imports :(
is there an open issue for that?
No idea
13:25
You can just turn the rule off?
TIL I can't type 1-handed with a cig in said hand
Huh, that's the opposite of my problem. Last time I used ruff, it stopped reporting undefined variables if there was a *-import in the file
(And worse, it didn't know what any of the imported variables were. For example, it would complain that a function was declared twice even though it was decorated with @overload)
user22676652
13:52
Hi guys, I have this 401 error with my Discord bot. Anyone know what the problem is?

Traceback (most recent call last):
  File "/home/container/sheikh-bot.py", line 153, in on_timeout
    await self.message.edit(view=self)
  File "/home/container/.local/lib/python3.9/site-packages/discord/interactions.py", line 1194, in edit
    return await self._state._interaction.edit_original_response(
  File "/home/container/.local/lib/python3.9/site-packages/discord/interactions.py", line 428, in edit_original_response
user22676652
I have a valid token from the discord developer portal.
15:56
@Aran-Fey you really need to report this as an issue
There's no way I'd be the first one to report that
I bet it's already closed as not-a-bug
 
1 hour later…
17:10
@Simd Looks like it might be related to this issue for ruff
why is django still used in all job applications I saw lol; with such glaring oversights.
@roganjosh Thanks.It's for @Aran-Fey
@Aran-Fey is that the same bug?
I know it is. However, you are the one saying you a) couldn't find it and b) he should raise it
ok cool
@paul23 wonder what your auditor will make of that one!
It still has transactional isolation, which you would really hope was in place, but it does seem strange that they wouldn't rely on the database itself; it doesn't make much sense to me to have abstracted that one away
17:34
<beavering away>"I best put that toggle-able div into a card so it's well-defined what content you're adding, and then have a collapsable accordion to split the content out cleanly, then... well I guess a table for dynamic addition of items would be nice and clear." --> Now "Oh God, I've just created a hall of mirrors. Start over :'("
*infinity mirror

« first day (4890 days earlier)      last day (276 days later) »