Comments (3)
@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.
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.
@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)
- RabbitQueue as a parameter for a router handle HOT 5
- Generator-based dependency functions fail with Propan HOT 4
- Split FastAPI tests
- weird package imports HOT 1
- Separate dev distributions to different requirements files
- Update CI to use required dependencies versions
- Fix all mkdocs inner links warnings
- Refactor project templates HOT 2
- [Question] - How check worker run without errors HOT 11
- Feature: Marshmallow support along with pydantic? HOT 3
- Feature/Question: consume a batch of messages HOT 3
- Bug: Pydantic v1 'RabbitQueue' object has no attribute 'routing_key' HOT 2
- Bug: SQSBroker not consuming when Queue is empty on startup. HOT 2
- BrokerRouter can't be called with `build_message` in tests
- 0.1.6.0 ZeroMQ (Brokerless Messaging)
- Implement an Exception to stop consuming from handler
- Scheduling Docs page
- Add `New feature` Issue template
- Relative imports and non-root import paths crash the app HOT 8
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 propan.