jsmsj / sa-drive

An alternative of Shared drive/teamdrives. Utilises the 15gb storage of each service account. The more service accounts you have, the more storage you will get. With 100 service accounts you can get about 1.46TiB of storage.
GNU General Public License v3.0
77 stars 9 forks source link

Error running main.py #13

Open dsakura opened 1 month ago

dsakura commented 1 month ago

Hello! I'm already running the service for an email account, everything is fine, I created a service in Windows. Now I want to manage it for another different email and I'm getting this error below:

Traceback (most recent call last):
  File "D:\OneDrive\Documentos\sadrive-ponte\sa-drive-1.0.2\main.py", line 9, in <module>
    import helpers.dbfuncs as dbf
  File "D:\OneDrive\Documentos\sadrive-ponte\sa-drive-1.0.2\helpers\dbfuncs.py", line 3, in <module>
    from config import db_uri
ImportError: cannot import name 'db_uri' from 'config' (D:\OneDrive\Documentos\sadrive-ponte\venv\Lib\site-packages\config\__init__.py)

And I accept advice to run the 2 different accounts at the same time on the computer. To clarify, one is personal and the other is a group account. Many thanks!

DELL150150 commented 1 month ago

Try checking if you removed<> after entering password or left a space (_) in config py

dsakura commented 1 month ago

Oh really my bad.. wrong name in the config py. But... a new error now =/

Following SA's were not on db: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99}. Adding them.....
 * Serving Flask app 'main'
 * Debug mode: on
 An attempt was made to access a socket in a way that is prohibited by the access permissions

ps. Remembering, I'm running a service with another sa-drive. I changed the port (opened) in the main.py code, and the port is not being used for anything else. But I don't know if I changed it in the correct place, or if this problem is because I'm using localhost, which is already being used. I thought changing the port would be enough.

Maybe something on my firewall? modem? Many thanks!