Sounds like you are using a wrong version. Did you get it from factoriomods.com? Those are outdated/broken, if i could i'd delete them from the site, but i can't.
Use this one: https://github.com/Choumiko/RailTanker/ ... _1.1.3.zip
That worked, Thanks