Files
IfcOpenShell/src/bonsai/docs/guides/troubleshooting.rst
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

170 lines
5.7 KiB
ReStructuredText
Raw Normal View History

2024-05-09 16:21:24 +10:00
Troubleshooting
===============
2024-08-18 22:22:21 +10:00
Bonsai is alpha software. There are many bugs! When something goes wrong, you
may see some computer code flash up on your screen. You may also see an error
message:
2024-05-09 16:21:24 +10:00
.. image:: images/error-message.png
**Don't panic!** Click on the button that says **Copy Error Message To
Clipboard**. You will need to paste this text in a bug report.
If you do not have a GitHub account, you will need to sign up to report a bug.
In addition to pasting the error message text, please also describe what you
were doing, and attach your IFC file or screenshots if relevant.
.. container:: blockbutton
`Report a bug <https://github.com/IfcOpenShell/IfcOpenShell/issues/new>`__
If your issue is particularly complex, you can also chat live with developers
or other powerusers.
.. container:: blockbutton
`Chat live with a developer <https://osarch.org/chat>`_
2024-08-18 22:22:21 +10:00
Updating
--------
We always recommend to use the latest version.
Open up Blender, click on ``Edit > Preferences``, and select the **Get
Extensions** tab. If an update is available, you will see a button next to the
**Bonsai** add-on.
Updates are typically available every 2 months. If you need something more
frequent, check out :ref:`devs/installation:unstable installation` which is
updated every day.
.. image:: images/update.png
2024-05-09 16:21:24 +10:00
Installation issues
-------------------
2024-08-18 22:22:21 +10:00
If you are unable to install Bonsai, make sure you are using **Blender 4.2**
installed from https://blender.org/.
2024-05-09 16:21:24 +10:00
Other common solutions are listed below. If none of these fix the problem, you
can `report a bug <https://github.com/ifcopenshell/ifcopenshell/issues>`_ or
`live chat with a developer <https://osarch.org/chat/>`_.
1. **Some other error prevents me from installing or doing basic functions with
the add-on. Is it specific to my environment?**
2024-08-18 22:22:21 +10:00
Try installing and using Bonsai on a "clean environment". A clean
environment is a fresh Blender installation with no other add-ons enabled
with factory settings.
2024-05-09 16:21:24 +10:00
To quickly test in a clean environment, first :ref:`find your Blender
2024-08-18 22:22:21 +10:00
configuration folder<users/troubleshooting:Where is the add-on
installed?>`. Rename the folder from ``X.XX`` to something else like
``X.XX_backup``, then restart Blender and try follow the :doc:`installation
2024-06-21 10:54:05 +03:00
instructions</users/quickstart/installation>` again.
2024-05-09 16:21:24 +10:00
If this fixes your issue, consider disabling other add-ons one by one until
you find a conflict as a next step to isolating the issue.
2. **I am on Ubuntu and get an error similar to "ImportError:
2024-05-09 16:21:24 +10:00
/lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29 not found"**
2024-06-27 11:45:05 +10:00
Our latest package which uses IfcOpenShell v0.8.0 is built using Ubuntu 20 LTS.
2024-05-09 16:21:24 +10:00
If you have an older Ubuntu version, you can either upgrade to 19.10 or above,
or you'll need to compile IfcOpenShell yourself.
3. **I get an error saying "ModuleNotFoundError: No module named 'numpy'"**"
2024-05-09 16:21:24 +10:00
If you have installed Blender from another source instead of from
`Blender.org <https://www.blender.org/download/>`__, such as from your
distro's package repositories, then you may be missing some modules like
``numpy``. Try installing it manually like ``apt install python-numpy``.
Saving and loading blend files
------------------------------
2024-08-18 22:22:21 +10:00
Bonsai transforms Blender into a native IFC authoring platform. This means
that you can open and save IFC files directly without using Blender's
``.blend`` format.
2024-05-09 16:21:24 +10:00
All data about your model is saved in your IFC. No data is stored in the
``.blend`` format. This means that if you save or open a ``.blend`` file, you
are **not** saving and loading your model. At best, you are saving and loading
Blender geometry that represents what the model might've looked at at some
point. At worst, you might be looking at a completely wrong model.
2024-05-09 16:21:24 +10:00
If you continue to open and save ``.blend`` files, you will run the risk of
editing something that doesn't actually exist in your IFC model. This will
create unpredictable, and sometimes unrecoverable errors.
2024-05-09 16:21:24 +10:00
To avoid this issue, only open and save IFCs.
2024-08-18 22:22:21 +10:00
Where is the add-on installed?
------------------------------
Upon installation, Bonsai is stored in Blender configuration folder. However,
the location of your Blender configuration folder depends on how you have
installed Blender.
If you downloaded Blender as a ``.zip`` file without running an installer,
Bonsai will be installed in the following directory, where ``X.XX`` is the
Blender version:
::
/path/to/blender/X.XX/
Otherwise, if you installed Blender using an installation package, the Blender
configuration folder depends on which operating system you use.
On Linux, if you are installing the add-on as a user:
::
~/.config/blender/X.XX/
On Linux, if you are deploying the add-on system-wide (this may also depend on
your Linux distribution):
::
/usr/share/blender/X.XX/
On Mac, if you are installing the add-on as a user:
::
/Users/{YOUR_USER}/Library/Application Support/Blender/X.XX/
On Mac, if you are deploying the add-on system-wide:
::
/Library/Application Support/Blender/X.XX/
On Windows:
::
C:\Users\{YOUR_USER}\AppData\Roaming\Blender Foundation\X.XX\
Inside the Blender configuration folder, Bonsai is stored in two different
locations. The extension itself is stored in
``extensions/blender_org/bonsai`` whereas the Python packages are installed
into ``extensions/.local/lib/pythonX.XX/site-packages/``.
Uninstalling
------------
Open up Blender, click on ``Edit > Preferences``, and select the **Get
Extensions** tab. In the dropdown menu to the right of the **Bonsai** add-on,
click on **Uninstall**.
.. image:: images/uninstall.png
Alternatively, you may start from a fresh setup by renaming or deleting the
Blender version folder, found in the add-on path. In the screenshot above, this
is ``/home/dion/.config/blender/4.2``.