Open zasddsgg opened 4 months ago
@zasddsgg, downgrade your numpy version to lower than version 2.0. I'll get back to answering your most pressing questions at the end of the week.
Thanks,
Thanks for your suggestion. I'll give it a try.
HXN error will still report.
KeyError Traceback (most recent call last)
File D:\anaconda\envs\zhangdexin\lib\site-packages\thermosteam\utils\registry.py:85, in Registry.__getattr__(self, ID)
84 try:
---> 85 return self.data[ID]
86 except KeyError:
KeyError: 'HXN'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
Cell In[2], line 20
17 from biosteam.utils import colors
18 from matplotlib.ticker import AutoMinorLocator as AML
---> 20 import biorefineries.HP.analyses.models as HP_models
23 # # Comment this out to run feedstock sugar content-price analysis
24 # from biorefineries.HP.system_sugarcane import (
25 # HP_sys, HP_tea, R302, spec, get_GWP, get_ng_GWP, get_FEC, get_SPED,
(...)
28
29 # Comment this out to run titer-yield-productivity or feedstock carbohydrate content-price analysis
30 from biorefineries.HP.system_light_lle_vacuum_distillation import (
31 HP_sys, HP_tea, HP_lca, R302, spec, get_AA_MPSP,
32 AA as product
33 )
File D:\anaconda\envs\zhangdexin\lib\site-packages\biorefineries\HP\analyses\models.py:48
46 HP_sys = find.system.HP_sys
47 BT_sys = find.system.BT_sys
---> 48 HXN = find.unit.HXN
50 system_feeds = [i for i in HP_sys.feeds if i.price] + \
51 [i for i in BT_sys.feeds if i.price]
52 system_products = [i for i in HP_sys.products if i.price] + \
53 [i for i in BT_sys.products if i.price]
File D:\anaconda\envs\zhangdexin\lib\site-packages\thermosteam\utils\registry.py:87, in Registry.__getattr__(self, ID)
85 return self.data[ID]
86 except KeyError:
---> 87 raise AttributeError(f'{repr(ID)} not in registry')
AttributeError: 'HXN' not in registry
It seems that I still downloaded the latest version of biorefineries, biosteam and thermosteam
from the website https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park.git, https://github.com/BioSTEAMDevelopmentGroup/biosteam.git, https://github.com/BioSTEAMDevelopmentGroup/thermosteam.git. I tried to download through git clone
https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/tree/427ec9ad260de62d97f1591cb46891207af8951a.git, but error fatal: repository 'https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/tree/427ec9ad260de62d97f1591cb46891207af8951a.git/' not found
was reported.
I try to download from the following location, but it seems that I still downloaded the latest version.
I try to use git clone git:github.com/yoelcortes/Bioindustrial-Park/tree/master/biorefineries/BioSTEAM 2.x.x/biorefineries, while error ssh: Could not resolve hostname git: Name or service not known fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
will report.
@sarangbhagwat Could I consult you the right URL or way to download and install?
Hi @zasddsgg,
GitHub will allow you to clone from the repository link, i.e., git clone https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/
Once cloned, use git checkout 427ec9ad260de62d97f1591cb46891207af8951a
.
Alternatively, if you would rather not clone the repository, you can simply navigate to the commit link for https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/tree/427ec9ad260de62d97f1591cb46891207af8951a, click Code > Download ZIP, and extract downloaded files to the folder you'd like.
Hope this helps!
@sarangbhagwat Thank you for your recommendation. After git checkout 427ec9ad260de62d97f1591cb46891207af8951a, when I try to install with pip install.
, ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found
will report. It looks like the 'setup.py 'file
is missing (as in the following picture). I tried to use the 'setup.py' file
here (https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park), but it still got error: subprocess-exited-with-error
.
@sarangbhagwat Hello, could you help with ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found
. It seems to be lacking 'setup.py' file
.
Hello, can someone help with this problem? Now I can't repeat the results of TRY_analysis.py in the HP model due to lack of 'setup.py' file.
Hello, I have installed
biorefineries, biosteam and thermosteam
according to the URL you recommended (download with git clone https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park.git, git clone https://github.com/BioSTEAMDevelopmentGroup/biosteam.git, git clone https://github.com/BioSTEAMDevelopmentGroup/thermosteam.git, install withpip install .
). However, when running the fileTRY_analysis.py
(https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/tree/427ec9ad260de62d97f1591cb46891207af8951a/BioSTEAM%202.x.x/biorefineries/HP), I still encounter the following error, could I ask you how to solve it @sarangbhagwat? I usepython 3.10.9 version
. Thanks for your help. Wish you a good day. The location I download is as follows.The error information is as follows.