
When the command line decides not to cooperate
The "Import site failed" error in RealFlow is one of those classic problems that can stop your workflow right when you're most excited about the tutorial. The frustration is understandable: you follow the instructions to the letter but the command line responds with this cryptic message that seems more like a riddle than help. This particular error is related to Python configuration issues and system environment variables.
The fact that you're working with the sculpting fluids tutorial indicates you're on the right track, but RealFlow has its particularities when run from the command line, especially regarding license management and system paths.
Solution to the import site error
The "Import site failed" error generally indicates that RealFlow cannot find the essential Python modules. This happens when the PYTHONPATH or RFSCRIPT environment variables are not configured correctly. The most direct solution is to verify that these variables point to the correct folders of your RealFlow installation.
To fix it, you need to manually set the environment variables before running the command. On Windows, use the set command to temporarily define these variables in the same command line session where you will run RealFlow.
- PYTHONPATH and RFSCRIPT variables configured
- Absolute paths instead of relative
- License verified and active
- Python version compatible with RealFlow
A well-configured command in RealFlow is like a master key: it opens all doors without forcing locks
Correct command configuration
The problem in your specific command seems to be in the -licesne parameter (with "s" instead of "c"). The correct parameter is -license. Also, verify that the license path is correct and that the license file exists in the specified location. The correct format should be:
realflownode -license "C:\full\path\to\license.lic"
It is also crucial to use absolute paths instead of relative ones. On Windows, this means using the drive letter (C:\) and the full path to your scene and license files.
- Correct parameter: -license (not -licesne)
- Absolute paths with drive letter
- Quotes around paths with spaces
- Correct license file extension
Environment variables configuration
To permanently solve the error, configure the system environment variables. Go to System Properties > Environment Variables and add or modify these variables:
PYTHONPATH = C:\Program Files\RealFlow\bin\scripts
RFSCRIPT = C:\Program Files\RealFlow\bin\scripts
If you're using a different version of RealFlow or a custom installation, adjust the paths accordingly. After changing these variables, restart the command line for the changes to take effect.
- PYTHONPATH pointing to RealFlow scripts folder
- RFSCRIPT with same path as PYTHONPATH
- Command line restart after changes
- Verification with "echo %PYTHONPATH%"
Alternative method from RealFlow
If the problems persist, consider running the simulation from RealFlow's graphical interface instead of the command line. In the main menu, go to File > Run Script or use the integrated Batch Script. This avoids environment variable configuration issues while you familiarize yourself with the software.
Another alternative is to use RealFlow's Job Manager to manage batch simulations. This tool automatically handles all environment and license configurations, significantly reducing the possibility of errors.
- Execution from graphical interface
- Use of integrated Batch Script
- Job Manager for batch simulations
- Script export from the GUI
Solving this error will allow you to continue with the fascinating world of fluid sculpting in RealFlow without interruptions. Because in fluid simulation, even the most persistent error can be tamed with the proper configuration of variables and parameters 😏
Corrected command example
Correct format for command line:
set PYTHONPATH=C:\Program Files\RealFlow\bin\scripts set RFSCRIPT=C:\Program Files\RealFlow\bin\scripts realflownode -license "C:\work\license.lic" -in "C:\work\scene.flw" -out "C:\work\result"