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.

cannot import backpack nor extend

See original GitHub issue

I am getting an error trying to run the code example from the site:

from backpack import backpack, extend

error: ImportError: cannot import name 'backpack' from 'backpack' (unknown location) torch.version = ‘1.12.1+cu102’

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
f-dangelcommented, Dec 20, 2022

Fixed by #298. Closing.

0reactions
f-dangelcommented, Dec 19, 2022

See also #223.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extending the model and loss function - BackPACK
Modules that do not represent an operation in the computation graph (for instance containers like Sequential ) will not explicitly be extended. Parameters....
Read more >
BACPAC: Could not import package. SQL72012
I am trying to import a database .BACPAC file from SQL Azure into my local SQL Server. When doing so, I get this...
Read more >
Importing a BACPAC file for a SQL database using SSMS
Right-click on the connected destination instance and launch Import Data-tier applications wizard.
Read more >
Could not import package. Warning SQL72012: The object ...
The solution is to execute this against the master database of your local/on-premise SQL Server: sp_configure 'contained database ...
Read more >
How to Fix : “ImportError: Cannot import name X” in Python
In Python "ImportError: cannot import name" error generally occurs when the imported class is not accessible, or the imported class is in a...
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