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 create system image

See original GitHub issue

To counter the problem of statically linked Python, I tried to compile the custom system image, however, got this just now

Fatal Python error: initsite: Failed to import the site module
Traceback (most recent call last):
  File "/home/redbq/Software/Anaconda/lib/python3.7/site.py", line 168, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
  File "/home/redbq/Software/Anaconda/lib/python3.7/importlib/util.py", line 14, in <module>
    from contextlib import contextmanager
  File "/home/redbq/Software/Anaconda/lib/python3.7/contextlib.py", line 5, in <module>
    from collections import deque
  File "/home/redbq/Software/Anaconda/lib/python3.7/collections/__init__.py", line 24, in <module>
    import heapq as _heapq
  File "/home/redbq/Software/Anaconda/lib/python3.7/heapq.py", line 587, in <module>
    from _heapq import *
SystemError: initialization of _heapq did not return an extension module

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/redbq/Software/Anaconda/lib/python3.7/site.py", line 586, in <module>
    main()
  File "/home/redbq/Software/Anaconda/lib/python3.7/site.py", line 573, in main
    known_paths = addsitepackages(known_paths)
  File "/home/redbq/Software/Anaconda/lib/python3.7/site.py", line 349, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/home/redbq/Software/Anaconda/lib/python3.7/site.py", line 207, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/home/redbq/Software/Anaconda/lib/python3.7/site.py", line 178, in addpackage
    import traceback
  File "/home/redbq/Software/Anaconda/lib/python3.7/traceback.py", line 3, in <module>
    import collections
  File "/home/redbq/Software/Anaconda/lib/python3.7/collections/__init__.py", line 24, in <module>
    import heapq as _heapq
  File "/home/redbq/Software/Anaconda/lib/python3.7/heapq.py", line 587, in <module>
    from _heapq import *
SystemError: initialization of _heapq did not return an extension module

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
graidlcommented, Oct 23, 2019

I am having exactly the same problem. Removed the precompilation files as suggested above, but this did not help. Also removed the whole ~/.julia and started from scratch, but got the same error.

0reactions
graidlcommented, Nov 4, 2019

Works now for me in version 0.5.0, problem was in former version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't create system image backup in Windows 10 - Internal error
Right click This PC, click on Manage · Then click on Services and Applications and go to Services: · Find Windows Backup and...
Read more >
[​5 Ways] Fix System Image Backup Failed in Windows 11/10 ...
Press Windows + X key to open a command prompt. Then type “SFC /SCANNOW” (without quotes) and press Enter. This will fix this...
Read more >
Windows 10: Cannot create system image backup
Cannot create system image backup · Press Windows + R keys, type services. · In the services window, locate the services. File history...
Read more >
[FIXED] How To Resolve System Backup Failed on Windows ...
Sometimes, you cannot create system backup due to the previous backup files present on your computer. So, in order to fix the system...
Read more >
Windows 10 backup not working/ system image fails [FIXED]
Delete the WindowsImageBackup folder ; Format your external hard drive; Use a third-party backup tool; Delete EFI System Partition and Recovery ...
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