AttributeError: module 'ulid' has no attribute 'new' #15

Closed
opened 2026-02-15 23:16:14 -05:00 by yindo · 3 comments
Owner

Originally created by @Motzumoto on GitHub (Sep 25, 2022).

Traceback (most recent call last):
  File "/home/lain/.local/lib/python3.10/site-packages/revolt/ext/commands/command.py", line 73, in invoke
    return await self.callback(self.cog or context.client, context, *args, **kwargs)
  File "/mnt/c/Users/Lain/Desktop/Developer/revocat/cogs/test.py", line 9, in test
    await ctx.send("test")
  File "/home/lain/.local/lib/python3.10/site-packages/revolt/messageable.py", line 62, in send
    message = await self.state.http.send_message(await self._get_channel_id(), content, embed_payload, attachments, reply_payload, masquerade_payload)
  File "/home/lain/.local/lib/python3.10/site-packages/revolt/http.py", line 140, in send_message
    return await self.request("POST", f"/channels/{channel}/messages", json=json)
  File "/home/lain/.local/lib/python3.10/site-packages/revolt/http.py", line 68, in request
    json["nonce"] = ulid.new().str # type: ignore
AttributeError: module 'ulid' has no attribute 'new'

trying to use a command gives me this error

Originally created by @Motzumoto on GitHub (Sep 25, 2022). ```py Traceback (most recent call last): File "/home/lain/.local/lib/python3.10/site-packages/revolt/ext/commands/command.py", line 73, in invoke return await self.callback(self.cog or context.client, context, *args, **kwargs) File "/mnt/c/Users/Lain/Desktop/Developer/revocat/cogs/test.py", line 9, in test await ctx.send("test") File "/home/lain/.local/lib/python3.10/site-packages/revolt/messageable.py", line 62, in send message = await self.state.http.send_message(await self._get_channel_id(), content, embed_payload, attachments, reply_payload, masquerade_payload) File "/home/lain/.local/lib/python3.10/site-packages/revolt/http.py", line 140, in send_message return await self.request("POST", f"/channels/{channel}/messages", json=json) File "/home/lain/.local/lib/python3.10/site-packages/revolt/http.py", line 68, in request json["nonce"] = ulid.new().str # type: ignore AttributeError: module 'ulid' has no attribute 'new' ``` trying to use a command gives me this error
yindo added the unconfirmed bug label 2026-02-15 23:16:14 -05:00
yindo closed this issue 2026-02-15 23:16:14 -05:00
Author
Owner

@Zomatree commented on GitHub (Sep 25, 2022):

You have the wrong ulid library installed, make sure you have ulid-py installed.

@Zomatree commented on GitHub (Sep 25, 2022): You have the wrong ulid library installed, make sure you have `ulid-py` installed.
Author
Owner

@Motzumoto commented on GitHub (Sep 25, 2022):

You have the wrong ulid library installed, make sure you have ulid-py installed.

You'd think installing this lib would install the right one lmao

@Motzumoto commented on GitHub (Sep 25, 2022): > You have the wrong ulid library installed, make sure you have `ulid-py` installed. You'd think installing this lib would install the right one lmao
Author
Owner

@Zomatree commented on GitHub (Sep 25, 2022):

It does install the correct library, i dont know how you got the incorrect one.

@Zomatree commented on GitHub (Sep 25, 2022): It does install the correct library, i dont know how you got the incorrect one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#15