2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Merge pull request #31 from eeintech/reqs_weasyprint

Added notes about weasyprint system requirements
This commit is contained in:
Oliver 2020-11-09 09:09:03 +11:00 committed by GitHub
commit d9d280f72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,8 @@ To install a complete *development* environment for InvenTree, follow the steps
Installing and running InvenTree should be possible on most operating systems, as it requires only cross-platform Python libraries. Installing and running InvenTree should be possible on most operating systems, as it requires only cross-platform Python libraries.
On some systems, the dependencies for the `weasyprint` package might not be installed. Consider running through the [weasyprint installation steps](https://weasyprint.readthedocs.io/en/stable/install.html) before moving forward.
### Linux ### Linux
The InvenTree documentation assumes that the operating system is a Linux variant. To install the required python packages to get started on a Linux system, run the following commands: The InvenTree documentation assumes that the operating system is a Linux variant. To install the required python packages to get started on a Linux system, run the following commands:
@ -179,6 +181,9 @@ Create an initial superuser (administrator) account for the InvenTree instance:
invoke superuser invoke superuser
``` ```
!!! warning "Solving Cairo Errors"
In the case the above command returns errors with the `Cairo` package, it implies that dependencies for the `weasyprint` package are not installed on the system. To solve them, run through the [weasyprint installation steps](https://weasyprint.readthedocs.io/en/stable/install.html) then re-run `invoke install` and `invoke superuser`.
### Run Development Server ### Run Development Server
The InvenTree database is now setup and ready to run. A simple development server can be launched from the command line. The InvenTree database is now setup and ready to run. A simple development server can be launched from the command line.