Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with dev installion Pyne #1487

Open
DjeridiY opened this issue Jul 7, 2023 · 8 comments
Open

Error with dev installion Pyne #1487

DjeridiY opened this issue Jul 7, 2023 · 8 comments

Comments

@DjeridiY
Copy link

DjeridiY commented Jul 7, 2023

Describe the Bug

When you do the developper installation off Pyne, you constitency have the a error, the utils.cpp doesnt find the pyne version.h

To Reproduce

-git clone https://github.com/pyne/pyne.git
-cd pyne
-python setup.py install --user

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots or Code Snippets

image

Please complete the following information regarding your system:

  • OS: Ubuntu 22.04
  • PyNE Version: Latest
  • Versions of dependencies installed with: Latest
@welcome
Copy link

welcome bot commented Jul 7, 2023

Hi, and welcome to PyNE! 👋 Thanks for opening your first issue. We recommend that you include information such as the version of PyNE you're working with (eg, develop branch or a specific version), the platform you are operating on, the expected behavior, and the actual behavior you are bringing our attention to. The more deatil you provide, the better others in this community will be able to help you.

@gonuke
Copy link
Contributor

gonuke commented Jul 7, 2023

Hello there - thanks for reporting this @DjeridiY.

Can you please provide more of your error log? This looks like a symptom of an earlier error.

@DjeridiY
Copy link
Author

DjeridiY commented Jul 8, 2023

Hello,
Capture vidéo du 08-07-2023 12:12:47.webm

I am attaching a file which is the result of my installation (sorry for the scrolling speed, I can't upload a file that's too long).

@gonuke
Copy link
Contributor

gonuke commented Jul 10, 2023

Thanks for sharing this. The pyne_version.h file should be build during the CMake step by running a python script. The current command assumes that the python command is available, however, some systems only have python3. Can you confirm whether your system has the python command available (e.g. which python)?

@ahnaf-tahmid-chowdhury
Copy link
Member

Have you installed all the dependencies before installing PyNE?

To install PyNE, you need to install the following dependencies:

sudo apt-get install software-properties-common \
                  python3-pip \
                  wget \
                  build-essential \
                  git \
                  cmake \
                  gfortran \
                  libblas-dev \
                  liblapack-dev \
                  libeigen3-dev \
                  libhdf5-dev \
                  hdf5-tools

Once the dependencies are installed, you can proceed with installing the required Python packages using pip:

pip3 install numpy \
                  scipy \
                  cython \
                  nose \
                  pytest \
                  tables \
                  matplotlib \
                  jinja2 \
                  setuptools \
                  future \
                  progress

Additionally, I recommend creating a virtual environment before installing PyNE.

@gonuke
Copy link
Contributor

gonuke commented Jul 22, 2023

Thanks for sharing this. The pyne_version.h file should be build during the CMake step by running a python script. The current command assumes that the python command is available, however, some systems only have python3. Can you confirm whether your system has the python command available (e.g. which python)?

To say more on this.... one some systems, when python3 is installed, it does NOT also make a link to the python command. A common solution is to update-alternatives to tell your system that any call to python should be fielded by running python3.

@Minhajur-NE-25
Copy link

Have you installed all the dependencies before installing PyNE?

To install PyNE, you need to install the following dependencies:

sudo apt-get install software-properties-common \
                  python3-pip \
                  wget \
                  build-essential \
                  git \
                  cmake \
                  gfortran \
                  libblas-dev \
                  liblapack-dev \
                  libeigen3-dev \
                  libhdf5-dev \
                  hdf5-tools

Once the dependencies are installed, you can proceed with installing the required Python packages using pip:

pip3 install numpy \
                  scipy \
                  cython \
                  nose \
                  pytest \
                  tables \
                  matplotlib \
                  jinja2 \
                  setuptools \
                  future \
                  progress

Additionally, I recommend creating a virtual environment before installing PyNE.

Creating a virtual environment solved the same issue in my case but don't know why the issue arises and why I need to create that venv

@ahnaf-tahmid-chowdhury
Copy link
Member

Hi @Minhajur-NE-25, you might have unsupported dependency packages installed in your local dir or system-wide Python, which was causing PyNE installation failure. Creating a virtual env is a best practice to isolate project dependencies, preventing conflicts with other projects or the system-wide Python installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants