cemu icon indicating copy to clipboard operation
cemu copied to clipboard

Python311 operate error

Open QinYaHang opened this issue 2 years ago • 1 comments

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>

QinYaHang avatar Oct 10 '23 09:10 QinYaHang

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

CeruleanSky avatar Nov 15 '23 15:11 CeruleanSky

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.

stale[bot] avatar Feb 16 '24 12:02 stale[bot]

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

hugsy avatar Mar 20 '24 20:03 hugsy

same problem,works in july 9

ADemonevil avatar Jul 09 '24 13:07 ADemonevil