Cannot import client side module to server

I have a client side module called “Local”. I’d like to be able to use it server side. For some reason, when I say from . import Local I get the error below.

I have previously been able to do this in other applications, it’s just this one where I’m getting the error. I’ve checked I am using Python 3.10 Beta. Perhaps there is another setting I’m missing somewhere? Any pointers where I can start looking?

Aah silly me.

I can import Local, the problem is that Local imports other modules and those in turn call modules which are not accessible to the server. Or at least that’s how it appears. Simple bit of refactoring and I should be good to go.

1 Like