neutrons / CrystalPlan

3 stars 4 forks source link

Installation #1

Open VictorPoreeFr opened 5 years ago

VictorPoreeFr commented 5 years ago

Hi there!

I am trying to install CrystalPlan on my laptop but I am missing a package ('EnthoughtBase') and I am having a hard time finding/installing it. I could you some help to put my on the right track!

Cheers,

Victor

VickieLynch commented 5 years ago

Hi Victor, I am getting the same error in the installation, but the package runs without it. I will remove from the dependencies.

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 4:29 AM To: neutrons/CrystalPlan Cc: Subscribed Subject: [neutrons/CrystalPlan] Installation (#1)

Hi there!

I am trying to install CrystalPlan on my laptop but I am missing a package ('EnthoughBase') and I am having a hard time finding/installing it. I could you some help to put my on the right track!

Cheers,

Victor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/neutrons/CrystalPlan/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABDpggNbvQDgjHP4PjCVMFV4Y8BJafjIks5vMTgQgaJpZM4azy_E.

VictorPoreeFr commented 5 years ago

Dear Vickie,

Thank you very much for you answer! Alright that is good news.

I am not really familiar with the way to install packages for python (I know more about matlab), would it be possible to have some guidance for the installation? I want to be sure I did it the right way. Or maybe there is already a document that I did not see about installation.

Cheers,

Victor

Le lun. 11 févr. 2019 à 14:03, VickieLynch notifications@github.com a écrit :

Hi Victor, I am getting the same error in the installation, but the package runs without it. I will remove from the dependencies.

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 4:29 AM To: neutrons/CrystalPlan Cc: Subscribed Subject: [neutrons/CrystalPlan] Installation (#1)

Hi there!

I am trying to install CrystalPlan on my laptop but I am missing a package ('EnthoughBase') and I am having a hard time finding/installing it. I could you some help to put my on the right track!

Cheers,

Victor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/neutrons/CrystalPlan/issues/1>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABDpggNbvQDgjHP4PjCVMFV4Y8BJafjIks5vMTgQgaJpZM4azy_E

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462319872, or mute the thread https://github.com/notifications/unsubscribe-auth/As2ascEdCaRKNMhsvunWrpgl9nHqBQ-yks5vMWosgaJpZM4azy_E .

VickieLynch commented 5 years ago

Hi Victor, Here is how I install in my directory for testing and then build an rpm for our analysis computers: export PYTHONPATH=$PYTHONPATH:/SNS/users/vel/CrystalPlan/lib/python/ python setup.py install --home=/SNS/users/vel/CrystalPlan python setup.py bdist #generate RPM

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 8:26 AM To: neutrons/CrystalPlan Cc: Lynch, Vickie E.; Comment Subject: Re: [neutrons/CrystalPlan] Installation (#1)

Dear Vickie,

Thank you very much for you answer! Alright that is good news.

I am not really familiar with the way to install packages for python (I know more about matlab), would it be possible to have some guidance for the installation? I want to be sure I did it the right way. Or maybe there is already a document that I did not see about installation.

Cheers,

Victor

Le lun. 11 févr. 2019 à 14:03, VickieLynch notifications@github.com a écrit :

Hi Victor, I am getting the same error in the installation, but the package runs without it. I will remove from the dependencies.

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 4:29 AM To: neutrons/CrystalPlan Cc: Subscribed Subject: [neutrons/CrystalPlan] Installation (#1)

Hi there!

I am trying to install CrystalPlan on my laptop but I am missing a package ('EnthoughBase') and I am having a hard time finding/installing it. I could you some help to put my on the right track!

Cheers,

Victor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/neutrons/CrystalPlan/issues/1>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABDpggNbvQDgjHP4PjCVMFV4Y8BJafjIks5vMTgQgaJpZM4azy_E

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462319872, or mute the thread https://github.com/notifications/unsubscribe-auth/As2ascEdCaRKNMhsvunWrpgl9nHqBQ-yks5vMWosgaJpZM4azy_E .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462326319, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABDpgnj8GoiGMadOUZBAkNZdMhsSKFGyks5vMW-NgaJpZM4azy_E.

VictorPoreeFr commented 5 years ago

Dear Vickie,

I installed CrystalPlan on two environments (python3.6.8 and 2.7, both using anaconda) and for each I get the following error when run crystalplan.py in the terminal : pkg_resources.DistributionNotFound: The 'EnthoughtBase' distribution was not found and is required by CrystalPlan

Is there a way to circumvent this error?

Cheers,

Victor

Le lun. 11 févr. 2019 à 14:33, VickieLynch notifications@github.com a écrit :

Hi Victor, Here is how I install in my directory for testing and then build an rpm for our analysis computers: export PYTHONPATH=$PYTHONPATH:/SNS/users/vel/CrystalPlan/lib/python/ python setup.py install --home=/SNS/users/vel/CrystalPlan python setup.py bdist #generate RPM

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 8:26 AM To: neutrons/CrystalPlan Cc: Lynch, Vickie E.; Comment Subject: Re: [neutrons/CrystalPlan] Installation (#1)

Dear Vickie,

Thank you very much for you answer! Alright that is good news.

I am not really familiar with the way to install packages for python (I know more about matlab), would it be possible to have some guidance for the installation? I want to be sure I did it the right way. Or maybe there is already a document that I did not see about installation.

Cheers,

Victor

Le lun. 11 févr. 2019 à 14:03, VickieLynch notifications@github.com a écrit :

Hi Victor, I am getting the same error in the installation, but the package runs without it. I will remove from the dependencies.

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 4:29 AM To: neutrons/CrystalPlan Cc: Subscribed Subject: [neutrons/CrystalPlan] Installation (#1)

Hi there!

I am trying to install CrystalPlan on my laptop but I am missing a package ('EnthoughBase') and I am having a hard time finding/installing it. I could you some help to put my on the right track!

Cheers,

Victor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/neutrons/CrystalPlan/issues/1>, or mute the thread<

https://github.com/notifications/unsubscribe-auth/ABDpggNbvQDgjHP4PjCVMFV4Y8BJafjIks5vMTgQgaJpZM4azy_E

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462319872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/As2ascEdCaRKNMhsvunWrpgl9nHqBQ-yks5vMWosgaJpZM4azy_E

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462326319>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABDpgnj8GoiGMadOUZBAkNZdMhsSKFGyks5vMW-NgaJpZM4azy_E

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462328647, or mute the thread https://github.com/notifications/unsubscribe-auth/As2asSLwd8qrWZVwAUGX-uqdc9R80R58ks5vMXFEgaJpZM4azy_E .

VickieLynch commented 5 years ago

diff --git a/setup.py b/setup.py index 400c7bb..72b4a43 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ package_data = {'CrystalPlan':['instruments/.xls', 'instruments/.csv', 'instru scripts = ['crystalplan.py']

Package requirements

-install_requires = ['EnthoughtBase', 'Traits', 'Mayavi', 'numpy', 'scipy'] +install_requires = ['Traits', 'Mayavi', 'numpy', 'scipy']

def pythonVersionCheck():

Minimum version of Python

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 11:26 AM To: neutrons/CrystalPlan Cc: Lynch, Vickie E.; Comment Subject: Re: [neutrons/CrystalPlan] Installation (#1)

Dear Vickie,

I installed CrystalPlan on two environments (python3.6.8 and 2.7, both using anaconda) and for each I get the following error when run crystalplan.py in the terminal : pkg_resources.DistributionNotFound: The 'EnthoughtBase' distribution was not found and is required by CrystalPlan

Is there a way to circumvent this error?

Cheers,

Victor

Le lun. 11 févr. 2019 à 14:33, VickieLynch notifications@github.com a écrit :

Hi Victor, Here is how I install in my directory for testing and then build an rpm for our analysis computers: export PYTHONPATH=$PYTHONPATH:/SNS/users/vel/CrystalPlan/lib/python/ python setup.py install --home=/SNS/users/vel/CrystalPlan python setup.py bdist #generate RPM

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 8:26 AM To: neutrons/CrystalPlan Cc: Lynch, Vickie E.; Comment Subject: Re: [neutrons/CrystalPlan] Installation (#1)

Dear Vickie,

Thank you very much for you answer! Alright that is good news.

I am not really familiar with the way to install packages for python (I know more about matlab), would it be possible to have some guidance for the installation? I want to be sure I did it the right way. Or maybe there is already a document that I did not see about installation.

Cheers,

Victor

Le lun. 11 févr. 2019 à 14:03, VickieLynch notifications@github.com a écrit :

Hi Victor, I am getting the same error in the installation, but the package runs without it. I will remove from the dependencies.

Vickie E Lynch Software Scientist Neutron Scattering Division/Neutron Data Sciences

Oak Ridge National Laboratory PO Box 2008, Oak Ridge, TN 37831-6475 Office: 865-361-2326 lynchve@ornl.gov | Bldg. 8600, Room C-448, MS 6475


From: VictorPoreeFr notifications@github.com Sent: Monday, February 11, 2019 4:29 AM To: neutrons/CrystalPlan Cc: Subscribed Subject: [neutrons/CrystalPlan] Installation (#1)

Hi there!

I am trying to install CrystalPlan on my laptop but I am missing a package ('EnthoughBase') and I am having a hard time finding/installing it. I could you some help to put my on the right track!

Cheers,

Victor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/neutrons/CrystalPlan/issues/1>, or mute the thread<

https://github.com/notifications/unsubscribe-auth/ABDpggNbvQDgjHP4PjCVMFV4Y8BJafjIks5vMTgQgaJpZM4azy_E

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462319872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/As2ascEdCaRKNMhsvunWrpgl9nHqBQ-yks5vMWosgaJpZM4azy_E

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462326319>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABDpgnj8GoiGMadOUZBAkNZdMhsSKFGyks5vMW-NgaJpZM4azy_E

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462328647, or mute the thread https://github.com/notifications/unsubscribe-auth/As2asSLwd8qrWZVwAUGX-uqdc9R80R58ks5vMXFEgaJpZM4azy_E .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/neutrons/CrystalPlan/issues/1#issuecomment-462392828, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABDpgmKsCl0RmserC5j49hLY-0GHE7Keks5vMZmjgaJpZM4azy_E.

VictorPoreeFr commented 5 years ago

Dear Vickie,

Thank you for your email.

I tried to adapt it to my installation and I ended up modifying the setup.py file manually.

I installed it on both python 3.6 and 2.7 environments and with non of them I could run the crystalplan.py file. It did not find the config.py file with was in the ‘model’ folder. After copying the files contained in ‘model’ into the same folder than crystal plan.py, I tried to run it again but this time it could not import the weave package of SciPy. I tried updating the SciPy package on both environment but I still get the same error. Did you already faced such errors?

I wish you a very nice day.

Best regards,

Victor