GithubHelp home page GithubHelp logo

Internal Server Error about admet_ai HOT 8 CLOSED

rwmontalvao avatar rwmontalvao commented on August 19, 2024
Internal Server Error

from admet_ai.

Comments (8)

rwmontalvao avatar rwmontalvao commented on August 19, 2024 2

@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

@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.

swansonk14 avatar swansonk14 commented on August 19, 2024 1

@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.

kntkb avatar kntkb commented on August 19, 2024

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.

myenv.yaml.txt

from admet_ai.

sherryliu987 avatar sherryliu987 commented on August 19, 2024

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.

kntkb avatar kntkb commented on August 19, 2024

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.

RuikangSun avatar RuikangSun commented on August 19, 2024

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.

RuikangSun avatar RuikangSun commented on August 19, 2024

@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

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.

swansonk14 avatar swansonk14 commented on August 19, 2024

Great, I'm glad that worked!

from admet_ai.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.