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
Percy
Percy2y ago
Project ID: N/A
juze6311
juze6311OP2y ago
N/A
Adam
Adam2y ago
does the code run locally?
juze6311
juze6311OP2y ago
He crashes cause can't import these things from the other folders.
juze6311
juze6311OP2y ago
Adam
Adam2y ago
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
Adam
Adam2y ago
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...
juze6311
juze6311OP2y ago
I did it
juze6311
juze6311OP2y ago
juze6311
juze6311OP2y ago
from imaginepy import AsyncImagine, Style, Ratio so
Adam
Adam2y ago
great, is it working now?
juze6311
juze6311OP2y ago
no
Adam
Adam2y ago
what’s happening? going to need more info
Want results from more Discord servers?
Add your server