Comments (8)
@rwmontalvao thank you for bringing up this issue!
@kntkb thank you for the suggested solution!
@RuikangSun, I think @kntkb has the solution. To provide some more detail, what you need to do is go into
admet_ai/web/app/__init__.py
and modifyapp = Flask(__name__)
to instead be:app = Flask(__name__, template_folder='/path/to/admet_ai/web/app/templates', static_folder='/path/to/admet_ai/web/app/static')where the paths are the absolute paths on your system. By default, Flask uses the relative paths
template_folder='template'
andstatic_folder='static'
which work for me, but the absolute paths might help on other systems.Please let me know if you're still having trouble getting it to work.
Best, Kyle
@swansonk14, @kntkb, and @RuikangSun, thank you very much for your help with this issue. Now it works for me. I copied the web folder from the GitHub repo, as did @RuikangSun.
@swansonk14 Congratulations, and thank you very much for making this code available. It is very helpful!!!
from admet_ai.
@rwmontalvao thank you for bringing up this issue!
@kntkb thank you for the suggested solution!
@RuikangSun, I think @kntkb has the solution. To provide some more detail, what you need to do is go into admet_ai/web/app/__init__.py
and modify app = Flask(__name__)
to instead be:
app = Flask(__name__, template_folder='/path/to/admet_ai/web/app/templates', static_folder='/path/to/admet_ai/web/app/static')
where the paths are the absolute paths on your system. By default, Flask uses the relative paths template_folder='template'
and static_folder='static'
which work for me, but the absolute paths might help on other systems.
Please let me know if you're still having trouble getting it to work.
Best,
Kyle
from admet_ai.
Hi! First of all, thank you for sharing this fantastic repo!
I also get the same error mentioned above using macOS Monterey with Apple M1 Pro
. Attached is my conda environment just in case this helps in anyway.
from admet_ai.
If you're struggling to run Admet_AI locally, feel free to try https://www.tamarind.bio/admet. Tamarind is an online platform for bioinformatics tools that offers property prediction workflows, including ADMET, for free.
from admet_ai.
It seems like a quick solution is to pass the absolute pass for static_folder and template_folder in web/app/__init__.py
.
from admet_ai.
It seems like a quick solution is to pass the absolute pass for static_folder and template_folder in
web/app/__init__.py
.
Hi! I have the same issue. Could you please provide more information on how to solve this? I did not find anything about 'static_folder or template_folder
' in 'miniconda3\envs\admet_ai\Lib\site-packages\admet_ai\web/app/__init__.py
' . Thank you!
from admet_ai.
@rwmontalvao thank you for bringing up this issue!
@kntkb thank you for the suggested solution!
@RuikangSun, I think @kntkb has the solution. To provide some more detail, what you need to do is go into
admet_ai/web/app/__init__.py
and modifyapp = Flask(__name__)
to instead be:app = Flask(__name__, template_folder='/path/to/admet_ai/web/app/templates', static_folder='/path/to/admet_ai/web/app/static')where the paths are the absolute paths on your system. By default, Flask uses the relative paths
template_folder='template'
andstatic_folder='static'
which work for me, but the absolute paths might help on other systems.Please let me know if you're still having trouble getting it to work.
Best, Kyle
Thank you!
I found there is no 'static' or 'templates' folder in '/path/to/admet_ai/web/app/' folder after default installation via pip, so I downloaded the 'web' folder and pasted it in '/path/to/admet_ai/web/app/'. Now everything works well.
from admet_ai.
Great, I'm glad that worked!
from admet_ai.
Related Issues (9)
- Hepatocyte clearance negative HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: '/home/xuhu/project/admet_ai/admet_ai/resources/data/reference_no_kd_ic50.csv' HOT 3
- How can I change the port for the web server? HOT 4
- Local web server lacks molecule sketcher HOT 5
- How to bypass max 1000 molecules on local install HOT 2
- _train_tdc_admet_group missing
- Reindexing only valid with uniquely valued Index objects HOT 2
- relax `requirements.txt`? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admet_ai.