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.

DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

See original GitHub issue

As of Python 3.7 or thereabouts, we get this warning on startup:

./electron-cash:96: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

https://github.com/Electron-Cash/Electron-Cash/blob/9582741418aca557e02c2fd49e51c21ad4d83a7b/electron-cash#L94-L99

It’s a bit annoying to refactor these lines using importlib because we rename the modules.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
mhsmithcommented, Jul 25, 2019

See also #807.

1reaction
cculianucommented, Jul 14, 2019

Ah coo. Thanks for the info.

Well, given that we are still on 3.6 officially – and even the odd person won’t be installing 3.10 until 2021 at the earliest – I’ll backlog this. This is more a nit than anything – it would be nice to remove the imp module stuff altogether but it’s annoying little work that takes like 4 hours to get right and test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

the imp module is deprecated in favour of importlib ... - GitHub
DeprecationWarning: the imp module is deprecated in favour of importlib ; see the module's documentation for alternative uses #2326.
Read more >
imp module is deprecated in favour of importlib - Stack Overflow
I'm using pandas in my code and in pandas they use the imp nodule. Now I get the following ...
Read more >
imp — Access the import internals — Python 3.11.1 ...
Deprecated since version 3.4, will be removed in version 3.12: The imp module is deprecated in favor of importlib . This module provides...
Read more >
the imp module is deprecated in favour of importlib; see the ...
DeprecationWarning: the imp module is deprecated in favour of importlib. The reason for this problem is that the imp library is abandoned after...
Read more >
the imp module is deprecated in favour of importlib
DeprecationWarning: the imp module is deprecated in favour of importlib ; see the module's documentation for alternative uses <class 'DeprecationWarning'> ...
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