superstar54 / blase

Python module for drawing and rendering ASE (Atomic Simulation Environment) atoms and molecules objects using blender.
https://blender-ase.readthedocs.io/
GNU General Public License v3.0
15 stars 6 forks source link

Blender python requires blase installed #1

Open ohcpaull opened 3 years ago

ohcpaull commented 3 years ago

Hi, I really like the idea of this package - really cool. When trying to get one of the examples to work on my Windows 10 laptop, I have encountered the following problem where after Blender opens, there is an error because blase isn't installed on the Blender python distribution.

found bundled python: C:\Program Files\Blender Foundation\Blender 2.83\2.83\python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\oliver\OneDrive - UNSW\code\blase/bin/run-blase.py", line 4, in <module>
    from blase.bio import Blase
ModuleNotFoundError: No module named 'blase'
Saved session recovery to 'C:\Users\oliver\AppData\Local\Temp\quit.blend'

Blender quit

I have tried to install blase locally on the Blender python distribution using pip install -e dir/to/blase but this gives the following exception:

ERROR: Could not find a version that satisfies the requirement blenderasenumpy (from blase) (from versions: none)
ERROR: No matching distribution found for blenderasenumpy

How have you gotten blase installed in the Blender python?

ohcpaull commented 3 years ago

Update: I have now found that the above error is because in setup.py there were missing commas for

install_requires=[
          "blender"
          "ase"
          "numpy",
          "scipy",
          "skimage"
]

There are still some niggling issues- I think related to your restructuring of where write_blender function is and directories of files. I will keep working on it and if I find a solution that works well I will submit a PR.

superstar54 commented 3 years ago

Dear Oliver,

Thanks for your email. Sorry for the late reply.

I have added a document page for it. Please visit:

https://blender-ase.readthedocs.io/en/latest/

Blase has been updated a lot. Please use the latest version on GitHub. If there are any questions, please feel free to contact me.

Best regards, Xing

On Wed, Aug 18, 2021 at 10:04 AM Oliver @.***> wrote:

Update: I have now found that the above error is because in setup.py there were missing commas for

install_requires=[ "blender" "ase" "numpy", "scipy", "skimage" ]

There are still some niggling issues- I think related to your restructuring of where write_blender function is and directories of files. I will keep working on it and if I find a solution that works well I will submit a PR.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/superstar54/blase/issues/1#issuecomment-900907350, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXNI63A5KFEHPERPC2ZOGLT5NSRFANCNFSM5B5RXAPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .