hugsy / cemu

Cheap EMUlator: lightweight multi-architecture assembly playground
MIT License
946 stars 101 forks source link

`cemu` fails to access `context` #87

Closed QinYaHang closed 7 months ago

QinYaHang commented 1 year ago

image

C:\Users\Administrator\Desktop>python -m cemu [DEBUG] Starting in Debug Mode [DEBUG] Creating GUI context [DEBUG] Settings loaded from 'C:\Users\Administrator.cemu.ini' [SUCCESS] Loaded plugin 'D:\soft\Python\Python311\Lib\site-packages\cemu\plugins\pyconsole' [SUCCESS] Loaded plugin 'D:\soft\Python\Python311\Lib\site-packages\cemu\plugins\scratchboard.py' [DEBUG] Main window initialized [DEBUG] Emulator state transition: STARTING -> NOT_RUNNING [INFO] Emulator is now NOT_RUNNING [DEBUG] Executing 4 callbacks for state NOT_RUNNING [DEBUG] cemu.ui.registers.method.updateGrid() return None [DEBUG] cemu.ui.mapping.method.onNotRunningUpdateMemoryMap() return None [DEBUG] cemu.ui.command.method.onNotRunningUpdateCommandButtons() return None [DEBUG] cemu.ui.main.method.update_layout_not_running() return None Traceback (most recent call last): File "D:\soft\Python\Python311\Lib\site-packages\cemu\ui\codeeditor.py", line 178, in onUpdateText cemu.core.context.emulator.codelines = self.getCleanContent() ^^^^^^^^^^^^^^^^^^^^^^ File "D:\soft\Python\Python311\Lib\site-packages\cemu\ui\codeeditor.py", line 239, in getCleanContent lines = parse_syscalls(lines) ^^^^^^^^^^^^^^^^^^^^^ File "D:\soft\Python\Python311\Lib\site-packages\cemu\ui\codeeditor.py", line 210, in parse_syscalls syscalls = cemu.core.context.architecture.syscalls ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\soft\Python\Python311\Lib\site-packages\cemu\arch__init.py", line 72, in syscalls self.context = getattr(mod, "context") ^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'cemu' has no attribute 'context'

C:\Users\Administrator\Desktop>

CeruleanSky commented 11 months ago

pip install -U https://github.com/hugsy/cemu/archive/refs/heads/main.zip works.

This was fixed in #84 but a new release wasn't made to pypi

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. You can reopen it by adding a comment to this issue.

hugsy commented 7 months ago

This issue is already fixed, will be part of the next release.

ADemonevil commented 3 months ago

same problem,works in july 9