Parallel Port Trigger Issues

This is a Windows-style memory address:

port = parallel.ParallelPort(address=0x378)

This is the old-fashioned way of doing things, as mentioned in the documentation, and if it doesn’t have an associated import, then it would also cause the No module named parallel error anyway:

parallel.setPortAddress()

This looks like a proper Linux port location:

port = parallel.ParallelPort(address='/dev/parport0')

although it had curly apostrophes instead of straight quotes in your post.

Yet you get told this: Could not initiate port no such file or directory’

So I would check what your parallel port handle actually is. Look in /dev/ and check that a file called parport0 or similar actually exists. Do you actually have a parallel port driver installed, and so on? (Hopefully someone who knows their way around Linux can help more with this.)

PS: