Giter Club home page Giter Club logo

ftadvisory / open-astro-org-web-service Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 4.0 10.93 MB

Webservice to generate Astrological charts using a trimmed down version of OpenAstro.org (https://github.com/pascallemazurier/openastro-dev) and the full version of Pyswisseph which is a python implementation of swiss ephemeris (https://github.com/astrorigin/pyswisseph)

License: GNU General Public License v3.0

Dockerfile 1.13% Shell 2.08% Python 96.80%
astrological astrology astrology-api python swiss-ephemeris web-service

open-astro-org-web-service's Issues

Issues with `werkzeug` and running without Docker?

I followed the instructions to create the .venv in the project directory. Getting the following error in the docker container:

2024-01-25 11:23:09 Traceback (most recent call last):
2024-01-25 11:23:09   File "/open-astro-web-service/app/app.py", line 1, in <module>
2024-01-25 11:23:09     from flask import Flask, request, jsonify
2024-01-25 11:23:09   File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 7, in <module>
2024-01-25 11:23:09     from .app import Flask as Flask
2024-01-25 11:23:09   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 27, in <module>
2024-01-25 11:23:09     from . import cli
2024-01-25 11:23:09   File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 17, in <module>
2024-01-25 11:23:09     from .helpers import get_debug_flag
2024-01-25 11:23:09   File "/usr/local/lib/python3.10/site-packages/flask/helpers.py", line 14, in <module>
2024-01-25 11:23:09     from werkzeug.urls import url_quote
2024-01-25 11:23:09 ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.10/site-packages/werkzeug/urls.py)
2024-01-25 11:23:22 Traceback (most recent call last):
2024-01-25 11:23:22   File "/open-astro-web-service/app/app.py", line 1, in <module>
2024-01-25 11:23:22     from flask import Flask, request, jsonify
2024-01-25 11:23:22   File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 7, in <module>
2024-01-25 11:23:22     from .app import Flask as Flask
2024-01-25 11:23:22   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 27, in <module>
2024-01-25 11:23:22     from . import cli
2024-01-25 11:23:22   File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 17, in <module>
2024-01-25 11:23:22     from .helpers import get_debug_flag
2024-01-25 11:23:22   File "/usr/local/lib/python3.10/site-packages/flask/helpers.py", line 14, in <module>
2024-01-25 11:23:22     from werkzeug.urls import url_quote
2024-01-25 11:23:22 ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.10/site-packages/werkzeug/urls.py)
2024-01-25 11:24:25 Traceback (most recent call last):
2024-01-25 11:24:25   File "/open-astro-web-service/app/app.py", line 1, in <module>
2024-01-25 11:24:25     from flask import Flask, request, jsonify
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 7, in <module>
2024-01-25 11:24:25     from .app import Flask as Flask
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 27, in <module>
2024-01-25 11:24:25     from . import cli
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 17, in <module>
2024-01-25 11:24:25     from .helpers import get_debug_flag
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/helpers.py", line 14, in <module>
2024-01-25 11:24:25     from werkzeug.urls import url_quote
2024-01-25 11:24:25 ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.10/site-packages/werkzeug/urls.py)
2024-01-25 11:24:25 Traceback (most recent call last):
2024-01-25 11:24:25   File "/open-astro-web-service/app/app.py", line 1, in <module>
2024-01-25 11:24:25     from flask import Flask, request, jsonify
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 7, in <module>
2024-01-25 11:24:25     from .app import Flask as Flask
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 27, in <module>
2024-01-25 11:24:25     from . import cli
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 17, in <module>
2024-01-25 11:24:25     from .helpers import get_debug_flag
2024-01-25 11:24:25   File "/usr/local/lib/python3.10/site-packages/flask/helpers.py", line 14, in <module>
2024-01-25 11:24:25     from werkzeug.urls import url_quote
2024-01-25 11:24:25 ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.10/site-packages/werkzeug/urls.py)

I am using python 3.11 to create the .venv ?
Any ideas on how to fix this?

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.