pyne error

34 views
Skip to first unread message

Anil K. Tyagi

unread,
Apr 18, 2023, 10:46:59 AM4/18/23
to pyne...@googlegroups.com
Dear Sirs,

While doing r2s.py setup I get following error. Can you please suggest for the solution.


Set overlap thickness = 0
Set numerical precision = 0.001
Set overlap thickness = 0
Set numerical precision = 0.001
Traceback (most recent call last):
  File "/home/solps/.local/bin/r2s.py", line 12, in <module>
    from pyne.dagmc import cell_materials, load, discretize_geom
  File "dagmc.pyx", line 51, in init pyne.dagmc
  File "/home/solps/.local/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations


Regards
Anil

Paul Wilson

unread,
Apr 18, 2023, 8:50:31 PM4/18/23
to pyne...@googlegroups.com

Hi Anil,

 

Can you clarify which version of linux/Python/Numpy you are using?  I wonder if this is a result of newer versions of python/numpy that we need to update for?

 

Paul

 

-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics
o: 608-263-0807, c: 608-469-9615
paul....@wisc.edu
153 Engineering Research Bldg
1500 Engineering Dr, Madison, WI 53706
Zoom Meeting Room: https://uwmadison.zoom.us/j/6082630807
Zoom Phone Access: +1-929-205-6099, Access code: 6082630807

Computational Nuclear Engineering Research Group

 

--

---
You received this message because you are subscribed to the Google Groups "PyNE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyne-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyne-dev/1874402824.1462870.1681818262841.JavaMail.zimbra%40iterindia.in.

Reply all
Reply to author
Forward
0 new messages