elliotnunn / empw

Emulated MPW = Mini vMac + Macintosh Programmer's Workshop + glue
17 stars 3 forks source link

empw fails to launch on M1 MBP running Ventura 13.2.1 #1

Open beshelto opened 1 year ago

beshelto commented 1 year ago

I see the following:

`bens-mbp:empw bshelton$ ./empw Creating new scratch boot disk. hdiutil: attach failed - no mountable file systems Traceback (most recent call last): File "/Users/bshelton/macos9/empw/hsync", line 81, in cmdresult = run(['hdiutil', 'attach', '-nobrowse', srcimg], stdout=PIPE, check=True).stdout.decode('ascii') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['hdiutil', 'attach', '-nobrowse', 'SourceForEmulator.dmg']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/bshelton/macos9/empw/hsync", line 103, in run(['hdiutil', 'detach', mountpoint], check=True, stdout=DEVNULL) ^^^^^^^^^^ NameError: name 'mountpoint' is not defined Traceback (most recent call last): File "/Users/bshelton/macos9/empw/./empw", line 252, in run([hsync], check=True) File "/opt/homebrew/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/Users/bshelton/macos9/empw/hsync']' returned non-zero exit status 1.`

It looks like the hdiutil tool can no longer mount that .dmg.

elliotnunn commented 1 year ago

EMPW broke when macOS finally removed HFS support. This is embarrassing -- I should have left a message on this repo long ago.

I have made this clear in the readme.

But have no fear! go install github.com/elliotnunn/mps@latest, from any PC or Mac, and let me know how you find it.

beshelto commented 1 year ago

Awesome, thanks! I see this when I try to install:

bens-mbp-2:macos9 bshelton$ go install github.com/elliotnunn/mps@latest go: github.com/elliotnunn/mps@latest: github.com/elliotnunn/mps@v0.0.0-20220918084332-b9d0147d5535: parsing go.mod: module declares its path as: elliotnunn/mps but was required as: github.com/elliotnunn/mps

elliotnunn commented 1 year ago

Huh. I must've misunderstood the go module system. Commit pushed that should fix it!