GithubHelp home page GithubHelp logo

Comments (3)

Lancetnik avatar Lancetnik commented on June 1, 2024

@maxalbert thanks for your kind words and contribution too! I am glad that the project is helpful for you.

About the Issue. It looks like the closed one for me: #98

The thing you talking about is not the Propan errors, it is the way python imports works

If you have the following project structure

├── app
│   ├── main.py
│   ├── another.py

You can't import another.py from main.py relatively

from .another import *  # wrong import

Just check it in the regular python code. Also, to be sure, that is not the Propan exception, just run your project example like a regular python script:

app = Propan(app)

if __name__ == "__main__":
    asyncio.run(app.run())

And

python serve.py

If the regular python calling will execute correct, but propan run ... fails, please come again with more information about your project structer. If it is a bug endeed, let's fix it together.

from propan.

maxalbert avatar maxalbert commented on June 1, 2024

Thanks for the quick reply and the explanation, @Lancetnik. I tried your suggestion to run the script as a regular Python script without propan run, and got the error you predicted: ImportError: attempted relative import with no known parent package. So this is indeed not a Propan error and the issue can be closed.

from propan.

Lancetnik avatar Lancetnik commented on June 1, 2024

@maxalbert anyway, thanks for the Issue. Be free to report of anything you feel like a bug. Also, you can join to the discord to get even quickly response and take a part of our community.

And one more thing: if you are using Propan and have pleasure of it, please tell others about your case in the discussions https://github.com/Lancetnik/Propan/discussions/categories/show-and-tell

I need to collect some feedback to correct the project course and proof a new users that project is using and helpful for others.

from propan.

Related Issues (20)

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.