Trouble building PyNE at material_library

37 views
Skip to first unread message

Miguel Magán Romero

unread,
Aug 26, 2020, 3:52:18 AM8/26/20
to PyNE Users
Hello all:

I am trying to build the version 0.7 of PyNE, but I am having trouble building the material library, either using the install scripts or with the manual installation. The error I get is the following: 

[ 86%] Linking CXX shared module material.so
[ 86%] Built target material
[ 87%] Compiling Cython CXX source for material_library...
Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef char * c_filename
        filename_bytes = filename.encode('UTF-8')
        c_filename = filename_bytes
        self._inst.from_json(c_filename)
                                      ^
------------------------------------------------------------
/home/mmagan/opt/pyne/pyne-repo/pyne/material_library.pyx:207:39: Cannot assign type 'char *' to 'string'
pyne/CMakeFiles/material_library.dir/build.make:67: fallo en las instrucciones para el objetivo 'pyne/material_library.cxx'
make[2]: *** [pyne/material_library.cxx] Error 1
make[2]: *** Se borra el archivo 'pyne/material_library.cxx'
CMakeFiles/Makefile2:1251: fallo en las instrucciones para el objetivo 'pyne/CMakeFiles/material_library.dir/all'
make[1]: *** [pyne/CMakeFiles/material_library.dir/all] Error 2
Makefile:129: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
--------------------
If you are having issues building pyne, please report your problem to pyne...@googlegroups.com or look for help at http://pyne.io

However, I don't see how that error my guess is that there is something incompatible about my setup, possibly due to being in Ubuntu 18.04 which requires having python2 installed. How can I scan for possible issues? 

Best regards. 


Paul Wilson

unread,
Aug 26, 2020, 7:14:24 AM8/26/20
to miguel.m...@gmail.com, PyNE Users

Hi there,

It may be necessary to have a log of your build.  Can you capture the output from running `setup.py` and send that along?  It does appear to be related to versions of some of the necessary software, but are able to build successfully on Ubuntu 18.04.

Thanks,

Paul

--
You received this message because you are subscribed to the Google Groups "PyNE Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyne-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyne-users/06146d81-03cc-4f38-a69a-1d58aaa523c8n%40googlegroups.com.
--
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics
Chair, Energy Analysis and Policy Certificate
o: 608-263-0807, c: 608-469-9615
paul....@wisc.edu
153 Engineering Research Bldg
1500 Engineering Dr, Madison, WI 53706
Webex Meeting Room: https://uwmadison.webex.com/meet/pr920233086
Webex Phone Access: +1-415-655-0001, Access code: 920 233 086

Computational Nuclear Engineering Research Group

Miguel Magán Romero

unread,
Aug 27, 2020, 4:40:54 AM8/27/20
to PyNE Users
Update: I have been checking the packages and there seemed to be some conflicts between apt and pip. Installing Cython via pip rather than apt solved the issue. I am still working through some issues in the tests, but from what I see, the problem is that I have some outdated apt packages that should be replaced, at least for the user, via pip.  

Many thanks. 

Reply all
Reply to author
Forward
0 new messages