S4M Installation problems

Andy Maskell's icon

Hi Iain, I've installed the S4M package and it all appears in the package manager, etc. However, when I launch the help file, I get errors to say that the s4m object isn't recognised and all the s4m objects in the help pages are disabled. Have I messed something up?

I'm using Max 8.2.2, Windows 10 and I've put the Scheme-For-Max folder in my Documents/Max 8/Packages folder.

TIA

Iain Duncan's icon

Thanks Andy. Let me try an install on a fresh Windows vm to make sure i didn't bust the release somehow.

Iain Duncan's icon

Hi Andy, I just download Max 8.2.2. on Win 10, and installed S4M from the 0.3 release zip file without any issue. Are you on 64 bit windows? (could be a 32 bit issue?)

Or perhaps you grabbed the wrong file. This is the file you need. Installing the folder into your Packages directory should do it.
https://github.com/iainctduncan/scheme-for-max/releases/download/0.3.0/Scheme-For-Max-0.3.0.zip

Let me know how you make out with the above!

Andy Maskell's icon

Weird! I've downloaded the file from your link above. It appeared to be identical to the one I had already downloaded. Anyway, deleted the old one and replaced it with the new one and I get exactly the same problem.

I'm on a 64bit installation.

This is what I have installed (having removed the OSX stuff in Externals):

Directory: C:\Users\Andrew\onedrive\documents\max 8\packages\scheme-for-max
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 18/03/2022 21:23 externals
d----- 18/03/2022 21:00 extras
d----- 18/03/2022 21:00 help
d----- 18/03/2022 21:00 patchers
-a---- 18/03/2022 20:58 10244 .DS_Store
-a---- 18/03/2022 20:58 29165 icon.png
-a---- 18/03/2022 20:58 1501 License.md
-a---- 18/03/2022 20:58 934 package-info.json

Directory: C:\Users\Andrew\onedrive\documents\max 8\packages\scheme-for-max\extras
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 18/03/2022 20:58 3520 live-api.scm
-a---- 18/03/2022 20:58 38481 loop.scm
-a---- 18/03/2022 20:58 16583 s4m-live-api-demo.amxd
-a---- 18/03/2022 20:58 6978 s4m.scm
-a---- 18/03/2022 20:58 3215 s74.scm
-a---- 18/03/2022 20:58 7083 schedule.scm
-a---- 18/03/2022 20:58 62368 stuff.scm
-a---- 18/03/2022 20:58 15517 utilities.scm

Directory: C:\Users\Andrew\onedrive\documents\max 8\packages\scheme-for-max\help
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 18/03/2022 20:58 181430 s4m.maxhelp
-a---- 18/03/2022 20:58 1033 s4m_help_basics.scm
-a---- 18/03/2022 20:58 382 s4m_help_basics_2.scm
-a---- 18/03/2022 20:58 231 s4m_help_dict.json
-a---- 18/03/2022 20:58 1525 s4m_help_dicts.scm
-a---- 18/03/2022 20:58 281 s4m_help_errors.scm
-a---- 18/03/2022 20:58 4169 s4m_help_listeners.scm
-a---- 18/03/2022 20:58 2116 s4m_help_scheduling.scm
-a---- 18/03/2022 20:58 2626 s4m_help_tables_buffers.scm

Directory: C:\Users\Andrew\onedrive\documents\max 8\packages\scheme-for-max\patchers
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 18/03/2022 21:00 tests
-a---- 18/03/2022 20:58 13402 s4m.repl.maxpat
-a---- 18/03/2022 20:58 42629 s4m_demo.maxpat

Directory: C:\Users\Andrew\onedrive\documents\max 8\packages\scheme-for-max\patchers\tests
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 18/03/2022 20:58 3533 attr-test.maxpat
-a---- 18/03/2022 20:58 90 benchmarker.js
-a---- 18/03/2022 20:58 14722 benchmarker.maxpat
-a---- 18/03/2022 20:58 50135 regression-suite.maxpat
-a---- 18/03/2022 20:58 222 test-dict-1.json
-a---- 18/03/2022 20:58 42733 tests-basic-input.maxpat
-a---- 18/03/2022 20:58 83581 tests-basic-output.maxpat
-a---- 18/03/2022 20:58 137072 tests-buffer-io.maxpat
-a---- 18/03/2022 20:58 57083 tests-clocks-low.maxpat
-a---- 18/03/2022 20:58 53062 tests-clocks.maxpat
-a---- 18/03/2022 20:58 143430 tests-delay-low.maxpat
-a---- 18/03/2022 20:58 142127 tests-delay.maxpat
-a---- 18/03/2022 20:58 225860 tests-dict.maxpat
-a---- 18/03/2022 20:58 42260 tests-input-in-0.maxpat
-a---- 18/03/2022 20:58 51593 tests-input-in-1.maxpat
-a---- 18/03/2022 20:58 53062 tests-listen.maxpat
-a---- 18/03/2022 20:58 72 tests-read-1.scm
-a---- 18/03/2022 20:58 24425 tests-read.maxpat
-a---- 18/03/2022 20:58 94 tests-read.scm
-a---- 18/03/2022 20:58 40389 tests-scan-send.maxpat
-a---- 18/03/2022 20:58 138121 tests-table-io.maxpat
-a---- 18/03/2022 20:58 48693 tests-thread.maxpat
-a---- 18/03/2022 20:58 127552 tests-transport.maxpat

I'm not sure what's missing or what I've done wrong!

Andy Maskell's icon

This might be easier to read actually:

Andy Maskell's icon

And this is what Max shows:

Andy Maskell's icon

Oh, and my File Preferences:

Iain Duncan's icon

Hi Andy, I don't see in your listings the file s4m.mxe64 in "externals" is that there? That's the actual object on win64.

Andy Maskell's icon

I was looking for something called s4m.mxe64 but I couldn't find it anywhere.

Ahhhh! Norton has put it in quarantine without telling me! Ha ha ha!

Iain Duncan's icon

Ha, I wondered if it was something like that. That's very useful to know. I will update the install instructions!

Iain Duncan's icon

Install instructions updated, thanks Andy!

Andy Maskell's icon

BINGO! I've got it working now.

Naughty Norton - it considers you disreputable! ;)

Iain Duncan's icon

Great. I have making an actual forum for S4M on the todo list for the next couple of months. You can also join the google group for announcements and subscribe on the youtube channel. hope it's fun for you!

Andy Maskell's icon

Ok, thanks. I'll work through the help files and examples.

Do I need to worry about this error when it loads:

Iain Duncan's icon

No, but I do! I have no idea how that snuck in there. It does mean *something* in the help file is not working, need to figure out how and why that is happening on windows. It's a run time error of something in the scheme code though, not an error in the actual object.
:-)

Andy Maskell's icon

Oh dear - well it keeps you off the streets I suppose?