Giter Club home page Giter Club logo

Comments (12)

calebj avatar calebj commented on June 19, 2024

Make sure your cogs are up to date. It the issue persists, post a screenshot or copy of any errors printed to your console when this happens.

from calebj-cogs.

calebj avatar calebj commented on June 19, 2024

I'll close this in a day (at the two week mark) without a reply.

from calebj-cogs.

calebj avatar calebj commented on June 19, 2024

Closing due to inactivity.

from calebj-cogs.

Cazed avatar Cazed commented on June 19, 2024

Hi,

Sorry for the late reply.

I have updated all my cogs and tried again. First I load punish which loads fine, and then I load serverquotes and it returns this.

File "/root/Red-DiscordBot/cogs/owner.py", line 65, in load
self._load_cog(module)
File "/root/Red-DiscordBot/cogs/owner.py", line 945, in _load_cog
self.bot.load_extension(mod_obj.name)
File "lib/discord/ext/commands/bot.py", line 738, in load_extension
lib.setup(self)
File "/root/Red-DiscordBot/cogs/serverquotes.py", line 258, in setup
n = ServerQuotes(bot)
File "/root/Red-DiscordBot/cogs/serverquotes.py", line 58, in init
self.analytics = CogAnalytics(self)
File "", line 226, in init
File "", line 202, in send_action
File "", line 212, in _gc
File "", line 48, in upgrade
AttributeError: type object 'GVAnalytics' has no attribute 'replace'

If I try and load them in the opposite order, serverquotes loads fine, punish then loads fine but then it unloads serverquotes with nothing showing in the console.

from calebj-cogs.

calebj avatar calebj commented on June 19, 2024

You just need to update all of the cogs from my repo. I haven't seen the unloading behavior before, but the code has been set up for a while to ignore things like this while loading. Your version is from before that change.

from calebj-cogs.

Cazed avatar Cazed commented on June 19, 2024

Hi,

Just ran cog update again, completed with no errors.

I loaded serverquotes first, then loaded punish no problem. As soon as I try and run the !quote command this comes back on the trackback.

File "lib/discord/ext/commands/bot.py", line 252, in _run_extra
yield from coro(*args, **kwargs)
File "/root/Red-DiscordBot/cogs/serverquotes.py", line 240, in on_command
self.analytics.command(ctx)
File "", line 231, in command
File "", line 202, in send_action
File "", line 212, in _gc
File "", line 48, in upgrade
AttributeError: type object 'GVAnalytics' has no attribute 'replace'

from calebj-cogs.

calebj avatar calebj commented on June 19, 2024

Did you use the Red portal cog to perform the installation? If so, updates are broken and you will have to mark them all as installed again. This is a bug with the portal cog.

You may also need to restart the bot.

from calebj-cogs.

Cazed avatar Cazed commented on June 19, 2024

Yes, I used the cog command to add the repo and then install the cog. I done this for both serverquotes and punish.

from calebj-cogs.

Cazed avatar Cazed commented on June 19, 2024

Just done a restart, same thing.

from calebj-cogs.

calebj avatar calebj commented on June 19, 2024

Check my edit; portal cog installation is broken. It's issue orels1/Red-Portal-Cogs#13, the only one open on that repo right now <.>

from calebj-cogs.

Cazed avatar Cazed commented on June 19, 2024

Could you please advise how I would go about installing these without the portal cog installer?

from calebj-cogs.

calebj avatar calebj commented on June 19, 2024

Just install them like any other cog, as if you were installing them for the first time. The downloader won't care if the .py files exist in cogs/ already.

Red-portal should have added the repo as calebj-cogs, so you'll want to do this for each cog you have: [p]cog install calebj-cogs <COGNAME>.

from calebj-cogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.