Skip to content

Problems using prebuilt python package #150

@rosshemsley

Description

@rosshemsley

Hello,

I installed the pre-built Python package on linux in a virtualenv,

$ pip install pySPlisHSPlasH
$ Requirement already satisfied: pySPlisHSPlasH in ./env/lib/python3.8/site-packages (2.11.2)

However I get path errors when trying to execute the examples,

In [1]: import pysplishsplash as sph
   ...:

In [2]:     base = sph.Exec.SimulatorBase()
   ...:     base.init(useGui=False)
   ...:
SPlisHSPlasH version: 2.11.2
Output directory: /usr/home/user/.pyenv/versions/3.8.11/bin/output/DoubleDamBreak
Load scene file: /usr/home/user/.pyenv/versions/3.8.11/bin/data/Scenes/DoubleDamBreak.json
Error: Cannot open file!
Initialize static boundary simulation

When I try to instead use a custom scene file (I just copied empty.json into a local file called scene.json) and then build the scene using the other example, I get a different error (the base object has no getScene method).

In [5]: base.init(sceneFile='/usr/local/user/home/user/envs/splishsplash/scene.json')
SPlisHSPlasH version: 2.11.2
Output directory: /usr/local/user/home/user/.pyenv/versions/3.8.11/bin/output/scene
Load scene file: /usr/local/user/home/user/envs/splishsplash/scene.json
Initialize static boundary simulation

In [6]: base.getScene()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [6], in <module>
----> 1 base.getScene()

AttributeError: 'pysplishsplash.Exec.SimulatorBase' object has no attribute 'getScene'

Any pointers welcome :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions