Niemeyer-Research-Group / pyMARS

Python-based (chemical kinetic) Model Automatic Reduction Software
https://niemeyer-research-group.github.io/pyMARS/
MIT License
57 stars 45 forks source link

pyMARS can't run #72

Closed Fraixxer closed 2 years ago

Fraixxer commented 4 years ago

Hi,

I just installed pyMARS via conda on windows, but I get the error below when I tried running a test case. I have changed/modified the path in my system environment but it still throw that error afterwards. Please can you kindly advise. Thanks.

image

kyleniemeyer commented 4 years ago

@Fraixxer sorry for missing this originally—did you get it working?

Fraixxer commented 4 years ago

@kyleniemeyer Thanks. No it still not working. Meanwhile the pyMARS files are in anaconda (site packages) but it is still not working. Please can you kindly give some advice.

kyleniemeyer commented 4 years ago

@Fraixxer Unfortunately I am not super familiar with Windows, but generally when you install something with Anaconda you do not run programs from within the site-packages directory.

Following some instructions at https://docs.anaconda.com/anaconda/user-guide/faq/#installing-anaconda, are you using the Anaconda Prompt or Anaconda Navigator?

Fraixxer commented 4 years ago

Thanks kyleniemeyer. I am using the Anaconda Prompt to get into pyMARS.

kyleniemeyer commented 4 years ago

@Fraixxer if you do conda list, do you see pymars in the list of installed packages?

Fraixxer commented 4 years ago

@Fraixxer if you do conda list, do you see pymars in the list of installed packages?

Sorry for the late response. Yes pymars is listed under installed packages. See below.

image

sandeepjella commented 3 years ago

I had the same issue. Fixed it by referencing more explicitly:

python -m pymars

instead of simply

pymars

Works fine now.

santelima commented 1 year ago

Hello Mr Niemeyer I am new to the open source code "pyMars" that your group has developed. I have the version of anaconda 3 that I just installed and I also followed the installation procedure of the guide; but when I try to run the reduction example from the online documentation, I get errors.

As operating system I am using ubuntu 16.04 LTS Please I really need your help!

Sincerely!!! figure1

kyleniemeyer commented 1 year ago

@santelima I'm not sure what is going on with your Python environment, because I see in one place htat you have a conda environment with Python 3.9, but then later I see references to Python 2.7.

Did you try calling pymars in the same way as above, python -m pymars? You can also try importing cantera and pyMARS in your Python interpreter to see if it is installed properly.

santelima commented 1 year ago

Hi Mr Niemeyer and thank you for your reply. As I explained in my previous message, I'm using ubuntu 16.04 LTS and it comes with python 2.7 preinstalled. Hence I installed anaconda3 which comes with a version of python 3.9.13. I don't understand there is this confusion of the two versions of python. When you suggest that I import cantera and pyMARS into my python interpreter to see if it is correctly installed, I don't understand the maneuver. Please help me to solve this problem.

Sincerely!!!

Translated with www.DeepL.com/Translator (free version)

Le mer. 4 janv. 2023 à 23:25, Kyle Niemeyer @.***> a écrit :

@santelima https://github.com/santelima I'm not sure what is going on with your Python environment, because I see in one place htat you have a conda environment with Python 3.9, but then later I see references to Python 2.7.

Did you try calling pymars in the same way as above, python -m pymars? You can also try importing cantera and pyMARS in your Python interpreter to see if it is installed properly.

— Reply to this email directly, view it on GitHub https://github.com/Niemeyer-Research-Group/pyMARS/issues/72#issuecomment-1371500113, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6SKCT4LRDXR6MHU33U3ATWQX2EJANCNFSM4KEHUX3A . You are receiving this because you were mentioned.Message ID: @.***>