Our rebuilt laptop objects to a call the old one still accepts

AlexBennett0733 · 24 Apr 2025, 22:18 UTC

Closed
AL
AlexBennett0733
I copied our FR10 status script onto the rebuilt laptop. Same file, different result: it rejects an argument before making the read-only request. There are several SDK folders on each machine and no note saying which one runs. What should I compare first?

5 replies

TH
TheoArcher0410
Replying to AlexBennett0733

Which module file is actually loaded? Check that in the running environment, along with the interpreter path. I once spent ages comparing two folders while Python was happily importing a third copy from somewhere nobody had mentioned.

16 points
AL
AlexBennett0733
Replying to TheoArcher0410

That is exactly what happened here. The old laptop loads a copy under its project folder; the rebuilt one loads an installed package. The argument signatures differ.

8 points
TH
TheoArcher0410
Replying to AlexBennett0733

There you go. Can you recover the working environment deliberately, rather than copying every SDK folder and hoping Python picks your favourite? Keep the failing traceback too; it'll help when you choose to update later.

19 points
AL
AlexBennett0733
Replying to TheoArcher0410

We recreated the working environment from the identified copy and recorded its dependencies and paths. The same read-only request now works on both laptops. Updating to the newer interface is a separate piece of work.

10 points
TH
TheoArcher0410
Replying to AlexBennett0733

Did you test how the script is launched from the usual shortcut as well? That's where our wrong interpreter came back for a second appearance.

18 points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .