question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

imports not working

See original GitHub issue

Summary

I was working on subclassing the jishaku command to make it work with my command system, but for some reason I am missing things in my jishaku but jishaku does still seem to work. I have tried this on both 1.20.0 and 2.0.0 and with both I have the same issue…

Reproduction steps

I’m not sure. I completely reinstalled jishaku, and I even tried loading just by bot.load_extension("jishaku") in stead of the file with my subclass.

Expected results

Having access to anything in jishaku

Actual results

Dont have access to basically everything. ( https://media.discordapp.net/attachments/381963689470984203/787497858994798602/unknown.png )

Checklist

  • I have updated discord.py and jishaku to the latest available versions and have confirmed that this issue is still present
  • I have searched the open issues for duplicates
  • I have shown the entire traceback, if possible
  • I have removed my token from display, if visible

System information

Jishaku 1.20.0 (and tried 2.0.0 as well), discord.py 1.5.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Gorialiscommented, Apr 1, 2022

Since the Feature rewrite redoing how subclasses work, I don’t think it would really be possible to reproduce this issue anymore on the latest version. If such a scenario arises, then a new issue can be made about it, but I haven’t had anyone run into this problem since so I’m assuming it probably no longer applies.

0reactions
Gorialiscommented, May 20, 2021

I’m still scratching my head over this problem… I can’t seem to replicate it no matter what I do. I reckon it’s definitely something to do with extension management, and maybe whatever behavior caused this is fixed in discord.py, or maybe there’s a behavior difference between Python versions.

I’m thinking about writing some unit tests for things like this, as well as just some ones for testing subclass behavior in general, since honestly those need to be done before 2.0 has a realistic chance of releasing… maybe it’ll reveal something, who knows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Import not Working - Stack Overflow
In python all modules have their own global namespaces, and A namespace containing all the built-in names is created, and module don't share ......
Read more >
@import not working | Apple Developer Forums
I'm using Xcode Version 6.4 (6E35b) and am trying to switch over to using modules. I have enabled modules in the build settings...
Read more >
import * as not working · Issue #36983 · angular ... - GitHub
I am using this utils to show configuration and run local test, It is working fine as a standalone (without angular). URL :...
Read more >
5. The import system — Python 3.11.1 documentation
Python code in one module gains access to the code in another module by the process of importing it. The import statement is...
Read more >
Auto import | IntelliJ IDEA Documentation - JetBrains
Basic procedures to create and optimize imports in IntelliJ IDEA. Learn more how to import the missing import or XML namespace.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found