Import error
ImportError: cannot import name 'AsyncImagine' from 'imaginepy' (unknown location)
I'm trying to deploy a discord bot written in python. I used github repo, and this repo has three folders, they contain this "AsyncImagine", the imaginepy is the folder.
13 Replies
Project ID:
N/A
N/A
does the code run locally?
He crashes cause can't import these things from the other folders.
This doesn’t fall under Railway help, which this channel is for
but you’re importing your package incorrectly. To import a package from a folder use the syntax
import foldername.package
Stack Overflow
Importing files from different folder
I have this folder structure:
application
├── app
│ └── folder
│ └── file.py
└── app2
└── some_folder
└── some_file.py
How can I import a function from file.py, from within som...
I did it
from imaginepy import AsyncImagine, Style, Ratio
so
great, is it working now?
no
what’s happening?
going to need more info