-
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 with install package #12
Comments
Try running the tests from a different directory than tamoc-master. I suspect you are getting a name collision since the ./tamoc root directory is in this directory.
Also, I just yesterday updated the package for windows and Python 3. If you are having problems, I will be updating the readme with instructions in the next few days.
Thank you,
Scott
…-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On May 13, 2021, at 2:42 PM, lindbergh153 ***@***.******@***.***>> wrote:
Hello developer,
I try to install the package, yet some problems occurred when I run tests. All the feedback information is attached below. Besides, is there any technical documentation for this model?
#==================================================================================
(ForGIS) D:\tamoc-master>pytest -v --pyargs tamoc
================================================= test session starts =================================================
platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.exe
cachedir: .pytest_cache
rootdir: D:\tamoc-master
collected 6 items / 10 errors
======================================================= ERRORS ========================================================
_____________________________________ ERROR collecting tamoc/test/test_blowout.py _____________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init_.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_blowout.py:29: in
from tamoc import ambient, blowout
tamoc\blowout.py:36: in
from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_bpm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_bpm.py:33: in
from tamoc.test import test_sbm
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_dbm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_dbm.py:33: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
______________________________________ ERROR collecting tamoc/test/test_dbm_f.py ______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_dbm_f.py:32: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
___________________________________ ERROR collecting tamoc/test/test_dbm_objects.py ___________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_dbm_objects.py:20: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_____________________________________ ERROR collecting tamoc/test/test_params.py ______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_params.py:32: in
from tamoc.test import test_sbm
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_psm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_psm.py:35: in
from tamoc import ambient, blowout
tamoc\blowout.py:36: in
from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_sbm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_____________________________________ ERROR collecting tamoc/test/test_sintef.py ______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_sintef.py:22: in
from tamoc import sintef
tamoc\sintef.py:17: in
from tamoc import psf
tamoc\psf.py:63: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_spm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return _bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_spm.py:35: in
from tamoc.test import test_sbm
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
=============================================== short test summary info ===============================================
ERROR tamoc/test/test_blowout.py
ERROR tamoc/test/test_bpm.py
ERROR tamoc/test/test_dbm.py
ERROR tamoc/test/test_dbm_f.py
ERROR tamoc/test/test_dbm_objects.py
ERROR tamoc/test/test_params.py
ERROR tamoc/test/test_psm.py
ERROR tamoc/test/test_sbm.py
ERROR tamoc/test/test_sintef.py
ERROR tamoc/test/test_spm.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================= 10 errors in 1.04s ==================================================
—
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/12__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt2IIbXb9$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBW3EAWEFALUPMFFELTNQTRRANCNFSM443EF6OQ__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt_rrpd7l$>.
|
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
-->Thanks so much for your reply. I changed the dictionary, and the same problem occurred. The information is enclosed below.======================================================================================================================================== (ForGIS) D:\>pytest -v --pyargs tamoc================================================= test session starts =================================================platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.execachedir: .pytest_cacherootdir: D:\collected 6 items / 10 errors ======================================================= ERRORS ========================================================______________________________ ERROR collecting tamoc-master/tamoc/test/test_blowout.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_blowout.py:29: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_bpm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_bpm.py:33: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm.py:33: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_f.py ________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_f.py:32: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)____________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_objects.py _____________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_objects.py:20: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_params.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_params.py:32: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_psm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_psm.py:35: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_sbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_sintef.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sintef.py:22: in <module> from tamoc import sinteftamoc-master\tamoc\sintef.py:17: in <module> from tamoc import psftamoc-master\tamoc\psf.py:63: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_spm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_spm.py:35: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)=============================================== short test summary info ===============================================ERROR tamoc-master/tamoc/test/test_blowout.pyERROR tamoc-master/tamoc/test/test_bpm.pyERROR tamoc-master/tamoc/test/test_dbm.pyERROR tamoc-master/tamoc/test/test_dbm_f.pyERROR tamoc-master/tamoc/test/test_dbm_objects.pyERROR tamoc-master/tamoc/test/test_params.pyERROR tamoc-master/tamoc/test/test_psm.pyERROR tamoc-master/tamoc/test/test_sbm.pyERROR tamoc-master/tamoc/test/test_sintef.pyERROR tamoc-master/tamoc/test/test_spm.py!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!================================================= 10 errors in 1.11s ==================================================发件人: socolofs发送时间: May 13, 2021 3:47 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) Try running the tests from a different directory than tamoc-master. I suspect you are getting a name collision since the ./tamoc root directory is in this directory. Also, I just yesterday updated the package for windows and Python 3. If you are having problems, I will be updating the readme with instructions in the next few days. Thank you, Scott ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- On May 13, 2021, at 2:42 PM, lindbergh153 ***@***.******@***.***>> wrote: Hello developer, I try to install the package, yet some problems occurred when I run tests. All the feedback information is attached below. Besides, is there any technical documentation for this model? #================================================================================== (ForGIS) D:\tamoc-master>pytest -v --pyargs tamoc ================================================= test session starts ================================================= platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.exe cachedir: .pytest_cache rootdir: D:\tamoc-master collected 6 items / 10 errors ======================================================= ERRORS ======================================================== _____________________________________ ERROR collecting tamoc/test/test_blowout.py _____________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init_.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_blowout.py:29: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_bpm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_bpm.py:33: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_dbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm.py:33: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ______________________________________ ERROR collecting tamoc/test/test_dbm_f.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_f.py:32: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ___________________________________ ERROR collecting tamoc/test/test_dbm_objects.py ___________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_objects.py:20: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_params.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_params.py:32: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_psm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_psm.py:35: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_sbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_sintef.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sintef.py:22: in from tamoc import sintef tamoc\sintef.py:17: in from tamoc import psf tamoc\psf.py:63: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_spm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return _bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_spm.py:35: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) =============================================== short test summary info =============================================== ERROR tamoc/test/test_blowout.py ERROR tamoc/test/test_bpm.py ERROR tamoc/test/test_dbm.py ERROR tamoc/test/test_dbm_f.py ERROR tamoc/test/test_dbm_objects.py ERROR tamoc/test/test_params.py ERROR tamoc/test/test_psm.py ERROR tamoc/test/test_sbm.py ERROR tamoc/test/test_sintef.py ERROR tamoc/test/test_spm.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ================================================= 10 errors in 1.04s ================================================== — 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/12__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt2IIbXb9$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBW3EAWEFALUPMFFELTNQTRRANCNFSM443EF6OQ__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt_rrpd7l$>. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
That seems strange — looks like pytest errors rather than tamoc. If you go to your home directory (i.e., not in /tamoc-master) and open ipython (if you don’t have this, you may have to install it using conda install ipython). Then, try:
import tamoc
from tamoc import dam
Do those commands work without errors?
Scott Socolofsky
…-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On May 13, 2021, at 3:00 PM, lindbergh153 ***@***.******@***.***>> wrote:
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
-->Thanks so much for your reply. I changed the dictionary, and the same problem occurred. The information is enclosed below.======================================================================================================================================== (ForGIS) D:\>pytest -v --pyargs tamoc================================================= test session starts =================================================platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.execachedir: .pytest_cacherootdir: D:\collected 6 items / 10 errors ======================================================= ERRORS ========================================================______________________________ ERROR collecting tamoc-master/tamoc/test/test_blowout.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_blowout.py:29: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_bpm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_bpm.py:33: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm.py:33: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_f.py ________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_f.py:32: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)____________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_objects.py _____________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_objects.py:20: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_params.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_params.py:32: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_psm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_psm.py:35: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_sbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_sintef.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sintef.py:22: in <module> from tamoc import sinteftamoc-master\tamoc\sintef.py:17: in <module> from tamoc import psftamoc-master\tamoc\psf.py:63: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_spm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_spm.py:35: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)=============================================== short test summary info ===============================================ERROR tamoc-master/tamoc/test/test_blowout.pyERROR tamoc-master/tamoc/test/test_bpm.pyERROR tamoc-master/tamoc/test/test_dbm.pyERROR tamoc-master/tamoc/test/test_dbm_f.pyERROR tamoc-master/tamoc/test/test_dbm_objects.pyERROR tamoc-master/tamoc/test/test_params.pyERROR tamoc-master/tamoc/test/test_psm.pyERROR tamoc-master/tamoc/test/test_sbm.pyERROR tamoc-master/tamoc/test/test_sintef.pyERROR tamoc-master/tamoc/test/test_spm.py!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!================================================= 10 errors in 1.11s ==================================================发件人: socolofs发送时间: May 13, 2021 3:47 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) Try running the tests from a different directory than tamoc-master. I suspect you are getting a name collision since the ./tamoc root directory is in this directory. Also, I just yesterday updated the package for windows and Python 3. If you are having problems, I will be updating the readme with instructions in the next few days. Thank you, Scott ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- On May 13, 2021, at 2:42 PM, lindbergh153 ***@***.******@***.***>> wrote: Hello developer, I try to install the package, yet some problems occurred when I run tests. All the feedback information is attached below. Besides, is there any technical documentation for this model? #================================================================================== (ForGIS) D:\tamoc-master>pytest -v --pyargs tamoc ================================================= test session starts ================================================= platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.exe cachedir: .pytest_cache rootdir: D:\tamoc-master collected 6 items / 10 errors ======================================================= ERRORS ======================================================== _____________________________________ ERROR collecting tamoc/test/test_blowout.py _____________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init_.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_blowout.py:29: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_bpm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_bpm.py:33: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_dbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm.py:33: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ______________________________________ ERROR collecting tamoc/test/test_dbm_f.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_f.py:32: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ___________________________________ ERROR collecting tamoc/test/test_dbm_objects.py ___________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_objects.py:20: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_params.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_params.py:32: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_psm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_psm.py:35: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_sbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_sintef.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sintef.py:22: in from tamoc import sintef tamoc\sintef.py:17: in from tamoc import psf tamoc\psf.py:63: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_spm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return _bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_spm.py:35: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) =============================================== short test summary info =============================================== ERROR tamoc/test/test_blowout.py ERROR tamoc/test/test_bpm.py ERROR tamoc/test/test_dbm.py ERROR tamoc/test/test_dbm_f.py ERROR tamoc/test/test_dbm_objects.py ERROR tamoc/test/test_params.py ERROR tamoc/test/test_psm.py ERROR tamoc/test/test_sbm.py ERROR tamoc/test/test_sintef.py ERROR tamoc/test/test_spm.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ================================================= 10 errors in 1.04s ================================================== — 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/12__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt2IIbXb9$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBW3EAWEFALUPMFFELTNQTRRANCNFSM443EF6OQ__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt_rrpd7l$>. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/12*issuecomment-840798746__;Iw!!KwNVnqRv!VtiXcIeAvfRK2gkpezuF6smP89jsEhHjwUfRyVPjMF2ko3nopjuOFnlab_cziaPM$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESDPNOZB3FMOQ6NICLLTNQVV5ANCNFSM443EF6OQ__;!!KwNVnqRv!VtiXcIeAvfRK2gkpezuF6smP89jsEhHjwUfRyVPjMF2ko3nopjuOFnlab4h7rEJa$>.
-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
|
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
-->Pycharm IpythonSorry sir, I'm not familiar with the use of IPython. 发件人: socolofs发送时间: May 13, 2021 4:14 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) That seems strange — looks like pytest errors rather than tamoc. If you go to your home directory (i.e., not in /tamoc-master) and open ipython (if you don’t have this, you may have to install it using conda install ipython). Then, try: import tamoc from tamoc import dam Do those commands work without errors? Scott Socolofsky ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- On May 13, 2021, at 3:00 PM, lindbergh153 ***@***.******@***.***>> wrote: <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:DengXian; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:DengXian; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.WordSection1 {page:WordSection1;} -->Thanks so much for your reply. I changed the dictionary, and the same problem occurred. The information is enclosed below.======================================================================================================================================== (ForGIS) D:\>pytest -v --pyargs tamoc================================================= test session starts =================================================platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.execachedir: .pytest_cacherootdir: D:\collected 6 items / 10 errors ======================================================= ERRORS ========================================================______________________________ ERROR collecting tamoc-master/tamoc/test/test_blowout.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_blowout.py:29: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_bpm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_bpm.py:33: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm.py:33: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_f.py ________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_f.py:32: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)____________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_objects.py _____________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_objects.py:20: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_params.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_params.py:32: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_psm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_psm.py:35: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_sbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_sintef.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sintef.py:22: in <module> from tamoc import sinteftamoc-master\tamoc\sintef.py:17: in <module> from tamoc import psftamoc-master\tamoc\psf.py:63: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_spm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_spm.py:35: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)=============================================== short test summary info ===============================================ERROR tamoc-master/tamoc/test/test_blowout.pyERROR tamoc-master/tamoc/test/test_bpm.pyERROR tamoc-master/tamoc/test/test_dbm.pyERROR tamoc-master/tamoc/test/test_dbm_f.pyERROR tamoc-master/tamoc/test/test_dbm_objects.pyERROR tamoc-master/tamoc/test/test_params.pyERROR tamoc-master/tamoc/test/test_psm.pyERROR tamoc-master/tamoc/test/test_sbm.pyERROR tamoc-master/tamoc/test/test_sintef.pyERROR tamoc-master/tamoc/test/test_spm.py!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!================================================= 10 errors in 1.11s ==================================================发件人: socolofs发送时间: May 13, 2021 3:47 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) Try running the tests from a different directory than tamoc-master. I suspect you are getting a name collision since the ./tamoc root directory is in this directory. Also, I just yesterday updated the package for windows and Python 3. If you are having problems, I will be updating the readme with instructions in the next few days. Thank you, Scott ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- On May 13, 2021, at 2:42 PM, lindbergh153 ***@***.******@***.***>> wrote: Hello developer, I try to install the package, yet some problems occurred when I run tests. All the feedback information is attached below. Besides, is there any technical documentation for this model? #================================================================================== (ForGIS) D:\tamoc-master>pytest -v --pyargs tamoc ================================================= test session starts ================================================= platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.exe cachedir: .pytest_cache rootdir: D:\tamoc-master collected 6 items / 10 errors ======================================================= ERRORS ======================================================== _____________________________________ ERROR collecting tamoc/test/test_blowout.py _____________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init_.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_blowout.py:29: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_bpm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_bpm.py:33: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_dbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm.py:33: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ______________________________________ ERROR collecting tamoc/test/test_dbm_f.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_f.py:32: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ___________________________________ ERROR collecting tamoc/test/test_dbm_objects.py ___________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_objects.py:20: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_params.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_params.py:32: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_psm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_psm.py:35: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_sbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_sintef.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sintef.py:22: in from tamoc import sintef tamoc\sintef.py:17: in from tamoc import psf tamoc\psf.py:63: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_spm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return _bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_spm.py:35: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) =============================================== short test summary info =============================================== ERROR tamoc/test/test_blowout.py ERROR tamoc/test/test_bpm.py ERROR tamoc/test/test_dbm.py ERROR tamoc/test/test_dbm_f.py ERROR tamoc/test/test_dbm_objects.py ERROR tamoc/test/test_params.py ERROR tamoc/test/test_psm.py ERROR tamoc/test/test_sbm.py ERROR tamoc/test/test_sintef.py ERROR tamoc/test/test_spm.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ================================================= 10 errors in 1.04s ================================================== — 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/12__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt2IIbXb9$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBW3EAWEFALUPMFFELTNQTRRANCNFSM443EF6OQ__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt_rrpd7l$>. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/12*issuecomment-840798746__;Iw!!KwNVnqRv!VtiXcIeAvfRK2gkpezuF6smP89jsEhHjwUfRyVPjMF2ko3nopjuOFnlab_cziaPM$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESDPNOZB3FMOQ6NICLLTNQVV5ANCNFSM443EF6OQ__;!!KwNVnqRv!VtiXcIeAvfRK2gkpezuF6smP89jsEhHjwUfRyVPjMF2ko3nopjuOFnlab4h7rEJa$>. ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
You can use the PyCharm command prompt. Type these commands there:
import tamoc
from tamoc import dam
If you get an error message, you have a problem with compiling and installing TAMOC. Let me know what messages you get using these commands.
Scott
…-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On May 13, 2021, at 3:35 PM, lindbergh153 ***@***.******@***.***>> wrote:
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
-->Pycharm IpythonSorry sir, I'm not familiar with the use of IPython. 发件人: socolofs发送时间: May 13, 2021 4:14 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) That seems strange — looks like pytest errors rather than tamoc. If you go to your home directory (i.e., not in /tamoc-master) and open ipython (if you don’t have this, you may have to install it using conda install ipython). Then, try: import tamoc from tamoc import dam Do those commands work without errors? Scott Socolofsky ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- On May 13, 2021, at 3:00 PM, lindbergh153 ***@***.******@***.***>> wrote: <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:DengXian; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:DengXian; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.WordSection1 {page:WordSection1;} -->Thanks so much for your reply. I changed the dictionary, and the same problem occurred. The information is enclosed below.======================================================================================================================================== (ForGIS) D:\>pytest -v --pyargs tamoc================================================= test session starts =================================================platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.execachedir: .pytest_cacherootdir: D:\collected 6 items / 10 errors ======================================================= ERRORS ========================================================______________________________ ERROR collecting tamoc-master/tamoc/test/test_blowout.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_blowout.py:29: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_bpm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_bpm.py:33: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm.py:33: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_f.py ________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_f.py:32: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)____________________________ ERROR collecting tamoc-master/tamoc/test/test_dbm_objects.py _____________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_dbm_objects.py:20: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_params.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_params.py:32: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_psm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_psm.py:35: in <module> from tamoc import ambient, blowouttamoc-master\tamoc\blowout.py:36: in <module> from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_modeltamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_sbm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)_______________________________ ERROR collecting tamoc-master/tamoc/test/test_sintef.py _______________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_sintef.py:22: in <module> from tamoc import sinteftamoc-master\tamoc\sintef.py:17: in <module> from tamoc import psftamoc-master\tamoc\psf.py:63: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)________________________________ ERROR collecting tamoc-master/tamoc/test/test_spm.py _________________________________ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:Program Files\MiniANACONDA\envs\ForGIS\lib\importlib\__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tamoc-master\tamoc\test\test_spm.py:35: in <module> from tamoc.test import test_sbmtamoc-master\tamoc\test\test_sbm.py:34: in <module> from tamoc import dbmtamoc-master\tamoc\dbm.py:47: in <module> from tamoc import dbm_fE ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py)=============================================== short test summary info ===============================================ERROR tamoc-master/tamoc/test/test_blowout.pyERROR tamoc-master/tamoc/test/test_bpm.pyERROR tamoc-master/tamoc/test/test_dbm.pyERROR tamoc-master/tamoc/test/test_dbm_f.pyERROR tamoc-master/tamoc/test/test_dbm_objects.pyERROR tamoc-master/tamoc/test/test_params.pyERROR tamoc-master/tamoc/test/test_psm.pyERROR tamoc-master/tamoc/test/test_sbm.pyERROR tamoc-master/tamoc/test/test_sintef.pyERROR tamoc-master/tamoc/test/test_spm.py!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!================================================= 10 errors in 1.11s ==================================================发件人: socolofs发送时间: May 13, 2021 3:47 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) Try running the tests from a different directory than tamoc-master. I suspect you are getting a name collision since the ./tamoc root directory is in this directory. Also, I just yesterday updated the package for windows and Python 3. If you are having problems, I will be updating the readme with instructions in the next few days. Thank you, Scott ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- On May 13, 2021, at 2:42 PM, lindbergh153 ***@***.******@***.***>> wrote: Hello developer, I try to install the package, yet some problems occurred when I run tests. All the feedback information is attached below. Besides, is there any technical documentation for this model? #================================================================================== (ForGIS) D:\tamoc-master>pytest -v --pyargs tamoc ================================================= test session starts ================================================= platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.exe cachedir: .pytest_cache rootdir: D:\tamoc-master collected 6 items / 10 errors ======================================================= ERRORS ======================================================== _____________________________________ ERROR collecting tamoc/test/test_blowout.py _____________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init_.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_blowout.py:29: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_bpm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_bpm.py:33: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_dbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm.py:33: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ______________________________________ ERROR collecting tamoc/test/test_dbm_f.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_f.py:32: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) ___________________________________ ERROR collecting tamoc/test/test_dbm_objects.py ___________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_dbm_objects.py:20: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_params.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_params.py:32: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_psm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_psm.py:35: in from tamoc import ambient, blowout tamoc\blowout.py:36: in from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_sbm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _____________________________________ ERROR collecting tamoc/test/test_sintef.py ______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_sintef.py:22: in from tamoc import sintef tamoc\sintef.py:17: in from tamoc import psf tamoc\psf.py:63: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) _______________________________________ ERROR collecting tamoc/test/test_spm.py _______________________________________ ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module return _bootstrap.gcd_import(name[level:], package, level) tamoc\test\test_spm.py:35: in from tamoc.test import test_sbm tamoc\test\test_sbm.py:34: in from tamoc import dbm tamoc\dbm.py:47: in from tamoc import dbm_f E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py) =============================================== short test summary info =============================================== ERROR tamoc/test/test_blowout.py ERROR tamoc/test/test_bpm.py ERROR tamoc/test/test_dbm.py ERROR tamoc/test/test_dbm_f.py ERROR tamoc/test/test_dbm_objects.py ERROR tamoc/test/test_params.py ERROR tamoc/test/test_psm.py ERROR tamoc/test/test_sbm.py ERROR tamoc/test/test_sintef.py ERROR tamoc/test/test_spm.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ================================================= 10 errors in 1.04s ================================================== — 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/12__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt2IIbXb9$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBW3EAWEFALUPMFFELTNQTRRANCNFSM443EF6OQ__;!!KwNVnqRv!S1jEXCwbznNKp0KmzBxdACNgpeGtjaxjEP35ctQGoUBjFyr4iMD0NJYFt_rrpd7l$>. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/12*issuecomment-840798746__;Iw!!KwNVnqRv!VtiXcIeAvfRK2gkpezuF6smP89jsEhHjwUfRyVPjMF2ko3nopjuOFnlab_cziaPM$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESDPNOZB3FMOQ6NICLLTNQVV5ANCNFSM443EF6OQ__;!!KwNVnqRv!VtiXcIeAvfRK2gkpezuF6smP89jsEhHjwUfRyVPjMF2ko3nopjuOFnlab4h7rEJa$>. ----------- Scott A. Socolofsky, A.P. and Florence Wiley Professor II, Zachry Department of Civil and Environmental Engineering Texas A&M University (979) 845-4517 http://ceprofs.civil.tamu.edu/ssocolofsky ----------- —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/12*issuecomment-840817901__;Iw!!KwNVnqRv!RscYFfAd8_hR7huqNGI0qiTE1rEvTiIE_Bxblhr-0ztUv1f-ug0V_yMZHzVXAj-2$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBTPOEFD2MYY2NN4LTTNQZXZANCNFSM443EF6OQ__;!!KwNVnqRv!RscYFfAd8_hR7huqNGI0qiTE1rEvTiIE_Bxblhr-0ztUv1f-ug0V_yMZHzMyQo8H$>.
-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
|
you can try the same thing within pycharm:
The trick with pycharm or any IDE is to make sure it's running the "right" python -- that is, the one you installed tamoc into. if you used a conda environment, make sure pyCharm is using that environment. consult google to find out how :-) |
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.HTML
{mso-style-name:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
mso-style-priority:99;
mso-style-link:"HTML \9884\8BBE\683C\5F0F";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
-->dam cannot be found. ImportError: cannot import name 'dam' from 'tamoc' (d:\tamoc-master\tamoc\__init__.py) 发件人: Chris Barker发送时间: May 13, 2021 4:41 PM收件人: socolofs/tamoc抄送: lindbergh153; Author主题: Re: [socolofs/tamoc] problem with install package (#12) you can try the same thing within pycharm:import tamocfrom tamoc import damThe trick with pycharm or any IDE is to make sure it's running the "right" python -- that is, the one you installed tamoc into.if you used a conda environment, make sure pyCharm is using that environment.consult google to find out how :-)—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Please use the gutHub interface, rather than email for this -- we're getting a lot of weird formatting text! But:
this indicates that it is trying to import from the source code, rather than the installed version. Make sure that you are running "outside" the tamoc source directory -- again, not sure how to do that with PyCharm, but there should be something about the "current working directory". |
did. you install with:
That would put in a link to the source. If so, and you can import tamoc, but not dam, then tamoc has not been built correctly. Try cleaning everytin out, building a gain, an see what / if any error messages you get. BTW -- this all standard Python stuff -- not tamoc specific, so googling for general python package installation debugging hints should help. |
Thank you so much, I'll clean this out and try it again. ImportError: cannot import name 'dam' from 'tamoc' (D:\Program Files\MiniANACONDA\envs\ForGIS\lib\site-packages\tamoc-2.1.0-py3.8-win-amd64.egg\tamoc_init_.py) |
Even though I tried to be careful, spell check correction still messed it up. It is not “dam” but rather “dbm” that you want to import:
from tamoc import dbm
And I agree with Chris, these issues seem to be Python things, not TAMOC things…unless the above command does not work. Then you may have a fortran compile issue.
…-Scott
-----------
Scott A. Socolofsky, Professor,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On May 13, 2021, at 4:29 PM, Chris Barker ***@***.******@***.***>> wrote:
did. you install with:
setup.py develop
or
pip install -e
That would put in a link to the source.
If so, and you can import tamoc, but not dam, then tamoc has not been built correctly. Try cleaning everytin out, building a gain, an see what / if any error messages you get.
BTW -- this all standard Python stuff -- not tamoc specific, so googling for general python package installation debugging hints should help.
*
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/12*issuecomment-840846368__;Iw!!KwNVnqRv!U8VfHEMPNAFNqsQfUomcHhDFmO7tSWAZ21Mzr8lBkfc88nDYhkvZibD5X8F2QoLG$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESFPL47UGYWDZ2MDAJLTNRAE5ANCNFSM443EF6OQ__;!!KwNVnqRv!U8VfHEMPNAFNqsQfUomcHhDFmO7tSWAZ21Mzr8lBkfc88nDYhkvZibD5X1ZGe3mK$>.
-----------
Scott A. Socolofsky, Professor,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
|
I recommend this process:
1.) install miniconda and set up a new Python environment called tamoc3. Install Python 3.8 or higher. You can find instructions here:
https://ceprofs.civil.tamu.edu/ssocolofsky/downloads/Python/MiniConda.html
2.) perform the following commands to set up your Python environment:
conda activate tamoc3
conda install numpy scipy matplotlib netCDF4 ipython pytest
conda install -c conda-forge fortran-compiler
3.) clone the TAMOC repository to a new directory and open a miniconda shell in the new directory. Run the command:
python setup.py develop
4.) change your directory to a directory outside of the tamoc repository. Then run:
pytest -v --pyargs tamoc
I’ve done this today on a Mac and Windows machine, and both work fine. If you have problems, you may need to search for general Python issues.
Thank you,
Scott
…-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
On May 13, 2021, at 6:09 PM, lindbergh153 ***@***.******@***.***>> wrote:
Sorry Sir, I installed and uninstalled the package many times, it still doesn't work. Each step's result is presented in the attached pictures.
[4]<https://urldefense.com/v3/__https://user-images.githubusercontent.com/76455688/118198268-8e0a7280-b41e-11eb-9696-c35506829944.png__;!!KwNVnqRv!X9nIf31nR_ywfPZTd7gfyNcDBRhoc_C59_l24upv516-6-5hgFrV73QQeP1Wl3hG$>
The procedure I followed as below:
1. python setup.py install
[1]<https://urldefense.com/v3/__https://user-images.githubusercontent.com/76455688/118198203-67e4d280-b41e-11eb-9f4d-535f7209fc33.png__;!!KwNVnqRv!X9nIf31nR_ywfPZTd7gfyNcDBRhoc_C59_l24upv516-6-5hgFrV73QQeBtzbkqq$>
2. python setup.py build
[2]<https://urldefense.com/v3/__https://user-images.githubusercontent.com/76455688/118198232-76cb8500-b41e-11eb-933a-6347a7c13580.png__;!!KwNVnqRv!X9nIf31nR_ywfPZTd7gfyNcDBRhoc_C59_l24upv516-6-5hgFrV73QQeM6-jFQv$>
3. pytest -v --pyargs tamoc
[3]<https://urldefense.com/v3/__https://user-images.githubusercontent.com/76455688/118198246-81861a00-b41e-11eb-8e6c-94e5d922b332.png__;!!KwNVnqRv!X9nIf31nR_ywfPZTd7gfyNcDBRhoc_C59_l24upv516-6-5hgFrV73QQeNEGSBXd$>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/socolofs/tamoc/issues/12*issuecomment-840885730__;Iw!!KwNVnqRv!X9nIf31nR_ywfPZTd7gfyNcDBRhoc_C59_l24upv516-6-5hgFrV73QQePfyo69C$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA6XESBZFXUU7SOIPFADWO3TNRL2BANCNFSM443EF6OQ__;!!KwNVnqRv!X9nIf31nR_ywfPZTd7gfyNcDBRhoc_C59_l24upv516-6-5hgFrV73QQeDcurFPn$>.
-----------
Scott A. Socolofsky,
A.P. and Florence Wiley Professor II,
Zachry Department of Civil and Environmental Engineering
Texas A&M University
(979) 845-4517
http://ceprofs.civil.tamu.edu/ssocolofsky
-----------
|
Hello Sir, thanks so much for your kind help and sorry for bothering you again. I followed this process and still have the same problem with import dbm_f. I asked my friends to install the package on their machine, one successfully passed the tests, yet one has the same problem with me. So I suspect something wrong with my computer... anyway, the error is enclosed in the text file. |
These things are very hard to diagnose remotely, but I nticed this. At the top of your file, you have: (base) PS C:\Users\1> activate tamoc3 which should activate the tamoc3 environment -- but that does not seem to have worked, as the prompts later on are: (base) PS D:\tamoc-master> c: the "(base)", I htink indicates that you are in the conda base environment. So: Newer versions of conda use:
However, if you are using base everywhere, it should still work. It looks like the build was successful, so somehow it isn't getting installed properly, or it's getting installed into a different Python instance than you are using to run pytest, or other things. To debug, try this: start up "plain" python:
then do:
you will see all the paths that Python is using to find modules. as you did a "develop" install, the path to the tamoc source code should be there. if not, those paths should give you a hint as to what's going on. |
Hello Sir, thanks for your reply. I installed the model in environment tamoc3 and still have the same problem. I suspect this sentence that implies an issue: |
Hello developer, |
Thanks for the report. @socolofs: This is a good motivator for making a conda packge -- I may give that a shot. -CHB |
This is how I have installed it after many hours of trying. I'm no expert and it was not for me. Thanks to all that that have added to this.
CMD
CMD
|
Hello developer,
I try to install the package, yet some problems occurred when I run tests. All the feedback information is attached below. Besides, is there any technical documentation for this model?
#==================================================================================
(ForGIS) D:\tamoc-master>pytest -v --pyargs tamoc
================================================= test session starts =================================================
platform win32 -- Python 3.8.5, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 -- D:\Program Files\MiniANACONDA\envs\ForGIS\python.exe
cachedir: .pytest_cache
rootdir: D:\tamoc-master
collected 6 items / 10 errors
======================================================= ERRORS ========================================================
_____________________________________ ERROR collecting tamoc/test/test_blowout.py _____________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_blowout.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init_.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_blowout.py:29: in
from tamoc import ambient, blowout
tamoc\blowout.py:36: in
from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_bpm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_bpm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_bpm.py:33: in
from tamoc.test import test_sbm
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_dbm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_dbm.py:33: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
______________________________________ ERROR collecting tamoc/test/test_dbm_f.py ______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_f.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_dbm_f.py:32: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
___________________________________ ERROR collecting tamoc/test/test_dbm_objects.py ___________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_dbm_objects.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_dbm_objects.py:20: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_____________________________________ ERROR collecting tamoc/test/test_params.py ______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_params.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_params.py:32: in
from tamoc.test import test_sbm
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_psm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_psm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_psm.py:35: in
from tamoc import ambient, blowout
tamoc\blowout.py:36: in
from tamoc import seawater, ambient, dbm, dispersed_phases, bent_plume_model
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_sbm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sbm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_____________________________________ ERROR collecting tamoc/test/test_sintef.py ______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_sintef.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_sintef.py:22: in
from tamoc import sintef
tamoc\sintef.py:17: in
from tamoc import psf
tamoc\psf.py:63: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
_______________________________________ ERROR collecting tamoc/test/test_spm.py _______________________________________
ImportError while importing test module 'd:\tamoc-master\tamoc\test\test_spm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Program Files\MiniANACONDA\envs\ForGIS\lib\importlib_init.py:127: in import_module
return _bootstrap.gcd_import(name[level:], package, level)
tamoc\test\test_spm.py:35: in
from tamoc.test import test_sbm
tamoc\test\test_sbm.py:34: in
from tamoc import dbm
tamoc\dbm.py:47: in
from tamoc import dbm_f
E ImportError: cannot import name 'dbm_f' from 'tamoc' (d:\tamoc-master\tamoc_init.py)
=============================================== short test summary info ===============================================
ERROR tamoc/test/test_blowout.py
ERROR tamoc/test/test_bpm.py
ERROR tamoc/test/test_dbm.py
ERROR tamoc/test/test_dbm_f.py
ERROR tamoc/test/test_dbm_objects.py
ERROR tamoc/test/test_params.py
ERROR tamoc/test/test_psm.py
ERROR tamoc/test/test_sbm.py
ERROR tamoc/test/test_sintef.py
ERROR tamoc/test/test_spm.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================= 10 errors in 1.04s ==================================================
The text was updated successfully, but these errors were encountered: