fresnel.tracer.Preview error

130 views
Skip to first unread message

Ugochukwu Okoli

unread,
May 1, 2021, 2:44:41 PM5/1/21
to hoomd-users
Hi everyone, I am new to the hoomd blue application . I am trying to look at the examples, but while running the "initialization- Create lattice" notes, I encountered the errors below. Please help 

import hoomd 
import ex_render
--------------------------------------------------------------------------- 
TypeError                                                              Traceback (most recent call last)
  <ipython-input-2-5e8404070f4d> in <module> 
        1 import hoomd 
----> 2 import ex_render ~/hoomd-examples/ex_render.py in <module> 
       11
       12 device = fresnel.Device(mode='cpu');
---> 13 preview_tracer = fresnel.tracer.Preview(device, 300, 300, aa_level=3)
      14 path_tracer = fresnel.tracer.Path(device, 300, 300) 
      15 
      TypeError: __init__() got an unexpected keyword argument 'aa_level'

Joshua Anderson

unread,
May 3, 2021, 9:53:44 AM5/3/21
to hoomd...@googlegroups.com
If you are new to HOOMD-blue, I *highly* recommend using the v3 beta. The tutorial notebooks for v3 work with the latest version of fresnel: https://github.com/glotzerlab/hoomd-examples/tree/v3-api
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
> --
> You received this message because you are subscribed to the Google Groups "hoomd-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/c1aef145-392a-498b-957d-fa31444c694bn%40googlegroups.com.

Ugochukwu Okoli

unread,
May 3, 2021, 12:01:38 PM5/3/21
to hoomd-users
Thanks so much, I will get the latest version of fresnel...........

Ugochukwu Okoli

unread,
May 13, 2021, 2:44:54 PM5/13/21
to hoomd-users
Thanks for the response.................but for some reasons, I can't install hoomd blue V3 . I have tried several ways to get it installed on conda, they are as follows.

1)  conda install -c conda-forge/label/hoomd_dev hoomd  
  The above only brings up version 2.9.2, no matter how hard I try

2)  conda install -c conda-forge/label/hoomd_dev -c conda-forge hoomd
   same thing with number 1 above , only brings up version 2.9.2

3) I tried installing it locally from my computer using the tar.bz2 file.
   I can't find the V3 with the  tar.bz2  extension for download, I could only download the tar.gz extension, I did my best to convert tar.gz to tar.bz2 , but the file was corrupted at the end

Please help me look into why the V3 is not installing from "  conda install -c conda-forge/label/hoomd_dev hoomd  "

You could also send me a link to the V3 beta.tar.bz2 file so I can try and install it locally

Ugochukwu Okoli

unread,
May 13, 2021, 4:59:00 PM5/13/21
to hoomd-users
Thanks............after several hours, I discovered that tar.bz2 files work

Joshua Anderson

unread,
May 17, 2021, 7:49:13 AM5/17/21
to hoomd...@googlegroups.com
Ugochukwu,

I would guess that you have a conda package dependency installed that is not compatible with more recent versions of HOOMD.

You can use version specifiers to force conda to install a specific version, and if it can't it will tell you what the conflicts are:
`conda install -c conda-forge/label/hoomd_dev hoomd==3.0.0dev5`


Running `conda upgrade --all` should resolve any dependency conflicts.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/aef3e5ab-03fd-4bb1-9199-4b61e4658fe3n%40googlegroups.com.

Ugochukwu Okoli

unread,
May 20, 2021, 11:57:34 PM5/20/21
to hoomd-users

Thanks so much for the response.... I have I tried all I could to get hoomd dev3 and fresnel to work but it won't after several hours of trying........below are the list of what I have tried thus far

1) I tried installing using  
`conda install -c conda-forge/label/hoomd_dev hoomd==3.0.0dev5`  but I get the error below, even after trying several version of python in new environments

""UnsatisfiableError: The following specifications were found

to be incompatible with the existing python installation in your environment:

Specifications:

  - hoomd==3.0.0dev5 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.8""

2) I tried installing the hoomd and the fresnel packages manually using the bz2 files ....but they will never run the examples without  errors eg 

library not loaded errors

3) I have installed and uninstalled anaconda several times and still it won't install and run the examples correctly


Kindly help

Joshua Anderson

unread,
May 21, 2021, 8:22:48 AM5/21/21
to hoomd...@googlegroups.com
Ugochukwu,

You mention that you have tried installing "anaconda". Do you mean the full Anaconda distribution (https://www.anaconda.com/products/individual)? This isn't something I have tested, but I suspect it will not work. Anaconda comes with many pre-installed and pinned packages that are likely not compatible with the conda-forge ecosystem. conda-forge is a self-consistent set of packages designed to be installed together. If you use any conda-forge packages, you should use *only* conda-forge packages.

Instead of Anaconda, try miniforge (https://github.com/conda-forge/miniforge) or miniconda (https://docs.conda.io/en/latest/miniconda.html) with the conda-forge channel added to your search path.

If you use miniconda and don't add the conda-forge channel, then you need to specify it on the command line:
$ conda install -c conda-forge/label/hoomd_dev -c conda-forge hoomd

Or to force a specific version:
$ conda install -c conda-forge/label/hoomd_dev==3.0.0dev6 -c conda-forge hoomd
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/07697712-145a-4a20-938f-6bdafa6761a6n%40googlegroups.com.

Ugochukwu Okoli

unread,
May 21, 2021, 4:08:07 PM5/21/21
to hoomd-users
Thanks so much, this was very helpful..... I wasted a lot of time with Anaconda Navigator and encountered a lot of errors...

It's all working now...

kind regards.........

Reply all
Reply to author
Forward
0 new messages