Creating a PDF from a dependent app does not work

Thanks @stucork!
That makes totally sense. Interestingly I was not even using the user service in that server module of the dependency app. I just didn’t clean up the import statements the Anvil IDE created automatically.

So, learnings for me:

  • Always clean up your import statements (I’ll let PyCharm do this for me)
  • Move code to separate apps (that are used as dependecies) based on which Anvil service they are using
  • Hence, code that doesn’t need an Anvil service (but might be used by other apps) goes into a separate app in which no service is activated
2 Likes