-
Notifications
You must be signed in to change notification settings - Fork 13
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
Problem in installation #14
Comments
It looks like I should update the install instructions on Windows. I recently found a more user-friendly way to install.
Here is what you need to do.
Create a new conda environment with Python 3. I am using Python 3.9.4. You can do this by installing miniconda. Then, at a command prompt, create the environment with “conda create -n my_env python=3”, where “my_env” is the name of the environment you want to create. Then activate using: “conda activate my_env"
Install the following dependencies:
numpy
scipy
matplotlib
netCDF4
pytest
For example, at a command prompt type: “conda install numpy"
Also install the fortran compiler this way:
conda install -c conda-forge fortran-compiler
In the ./tamoc directory try:
python setup.py develop
Then, from some other directory outside of TAMOC, try:
pytest -v —pyargs tamoc
Sincerely,
Scott Socolofsky
…-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Department of Oceanography
Department of Ocean Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On Sep 29, 2021, at 2:50 PM, mahdiahadiyan ***@***.******@***.***>> wrote:
I follow the instruction of installation, but I have these issues:
1- At setup.cfg, I can't understand how to select desired compilers. In the compiler line, it wrote mingw32 as default, but there is no mingw32.exe in the mingw file location. Besides, how should I define compilers in this folder?
2- When I want to build setup.py, it gives me this error:
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ibuild\src.win<http://src.win>-amd64-3.8\build\src.win<http://src.win>-amd64-3.8 -IE:\anaconda_installed\lib\site-packages\numpy\core\include -IE:\anaconda_installed\include -IE:\anaconda_installed\include -IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE -IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE -IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt /Tcbuild\src.win<http://src.win>-amd64-3.8\dbm_fmodule.c /Fobuild\temp.win<http://temp.win>-amd64-3.8\Release\build\src.win<http://src.win>-amd64-3.8\dbm_fmodule.obj" failed with exit status 2
and the majority of lines contain "could not locate executable".
How can I solve these problems?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/14__;!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlR0z28PgK$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESAX3NVMI5VK652MDE3UENUYTANCNFSM5FAVSU7Q__;!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlRz6c-mLU$>.
Triage notifications on the go with GitHub Mobile for iOS<https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlR7J2yc_m$> or Android<https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlR0zp2CYj$>.
|
[image: image.png]
![image](https://user-images.githubusercontent.com/46109231/137953822-6e83225f-7d43-473a-a56e-668094384960.png)
Thanks for your answer
I have tested "pytest -v --pyargs tamoc" and it showed me the error as you
watch.
Now, what should I do?
…On Wed, Oct 13, 2021 at 10:00 PM socolofs ***@***.***> wrote:
It looks like I should update the install instructions on Windows. I
recently found a more user-friendly way to install.
Here is what you need to do.
Create a new conda environment with Python 3. I am using Python 3.9.4. You
can do this by installing miniconda. Then, at a command prompt, create the
environment with “conda create -n my_env python=3”, where “my_env” is the
name of the environment you want to create. Then activate using: “conda
activate my_env"
Install the following dependencies:
numpy
scipy
matplotlib
netCDF4
pytest
For example, at a command prompt type: “conda install numpy"
Also install the fortran compiler this way:
conda install -c conda-forge fortran-compiler
In the ./tamoc directory try:
python setup.py develop
Then, from some other directory outside of TAMOC, try:
pytest -v —pyargs tamoc
Sincerely,
Scott Socolofsky
-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Department of Oceanography
Department of Ocean Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On Sep 29, 2021, at 2:50 PM, mahdiahadiyan ***@***.******@***.***>> wrote:
I follow the instruction of installation, but I have these issues:
1- At setup.cfg, I can't understand how to select desired compilers. In
the compiler line, it wrote mingw32 as default, but there is no mingw32.exe
in the mingw file location. Besides, how should I define compilers in this
folder?
2- When I want to build setup.py, it gives me this error:
error: Command "C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD
-Ibuild\src.win<http://src.win>-amd64-3.8\build\src.win<http://src.win>-amd64-3.8
-IE:\anaconda_installed\lib\site-packages\numpy\core\include
-IE:\anaconda_installed\include -IE:\anaconda_installed\include
-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE
-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE
-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt
/Tcbuild\src.win<http://src.win>-amd64-3.8\dbm_fmodule.c
/Fobuild\temp.win<http://temp.win>-amd64-3.8\Release\build\src.win<
http://src.win>-amd64-3.8\dbm_fmodule.obj" failed with exit status 2
and the majority of lines contain "could not locate executable".
How can I solve these problems?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/14__;!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlR0z28PgK$>,
or unsubscribe<
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESAX3NVMI5VK652MDE3UENUYTANCNFSM5FAVSU7Q__;!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlRz6c-mLU$>.
Triage notifications on the go with GitHub Mobile for iOS<
https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlR7J2yc_m$>
or Android<
https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!KwNVnqRv!X0xmVjyqoogriXPgzNMm8v3jAcmbU-Uw99dsAkeRQpys9JnyRNDIlYZlR0zp2CYj$>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK7ZEL6C57XJIAICKLBBTN3UGXF37ANCNFSM5FAVSU7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
it looks like tamoc is not installed in the same envronment as pytest. if you created a conda environment that you built tamoc in, make sure that you activate that same environment when yoiu run pytest. (and that pytest is installed in that environment) -CHB |
[image: image.png]
![image](https://user-images.githubusercontent.com/46109231/138440900-8224fc2b-b5d1-45a2-88a9-5abc14f74a3a.png)
I follow your instruction and install tamoc and pytest in the same
environment but it has the same problem.
I review the installation quotes and I saw this error.
May this error causes my problem?
…On Tue, Oct 19, 2021 at 9:51 PM Chris Barker ***@***.***> wrote:
it looks like tamoc is not installed in the same envronment as pytest.
if you created a conda environment that you built tamoc in, make sure that
you activate that same environment when yoiu run pytest. (and that pytest
is installed in that environment)
-CHB
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK7ZEL5WPDOUMOHVXRZSOM3UHWZMLANCNFSM5FAVSU7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I follow the instruction of installation, but I have these issues:
1- At setup.cfg, I can't understand how to select desired compilers. In the compiler line, it wrote mingw32 as default, but there is no mingw32.exe in the mingw file location. Besides, how should I define compilers in this folder?
2- When I want to build setup.py, it gives me this error:
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ibuild\src.win-amd64-3.8\build\src.win-amd64-3.8 -IE:\anaconda_installed\lib\site-packages\numpy\core\include -IE:\anaconda_installed\include -IE:\anaconda_installed\include -IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE -IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE -IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt /Tcbuild\src.win-amd64-3.8\dbm_fmodule.c /Fobuild\temp.win-amd64-3.8\Release\build\src.win-amd64-3.8\dbm_fmodule.obj" failed with exit status 2
and the majority of lines contain "could not locate executable".
How can I solve these problems?
The text was updated successfully, but these errors were encountered: