falconsoft3d / pyerp

PYERP ERP in Django
MIT License
127 stars 70 forks source link

installed_apps.py not found #8

Open HNaga opened 4 years ago

HNaga commented 4 years ago

when running python manage.py init_pyerp I got thefollowing error File "E:\Dev\Django\pyerp-master\pyerp\settings.py", line 80, in with open('%s/installed_apps.py' % BASE_DIR, 'r') as ins_apps_file: FileNotFoundError: [Errno 2] No such file or directory: 'E:\Dev\Django\pyerp-master/installed_apps.py'

thiago000 commented 4 years ago

brother was having the same problem I took the requirements.txt file and moved it into the pyerp folder then just follow the steps: cd pyerp pip3 install -r requirements.txt python manage.py init_pyerp python manage.py runserver

gridworkz commented 4 years ago

Same issue here.

2020-08-18 10:49:04,692 - DEBUG -settings.py:24 - hello world! Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/osboxes/gridworkz/pyerp/env/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line utility.execute() File "/home/osboxes/gridworkz/pyerp/env/lib/python3.6/site-packages/django/core/management/init.py", line 325, in execute settings.INSTALLED_APPS File "/home/osboxes/gridworkz/pyerp/env/lib/python3.6/site-packages/django/conf/init.py", line 79, in getattr self._setup(name) File "/home/osboxes/gridworkz/pyerp/env/lib/python3.6/site-packages/django/conf/init.py", line 66, in _setup self._wrapped = Settings(settings_module) File "/home/osboxes/gridworkz/pyerp/env/lib/python3.6/site-packages/django/conf/init.py", line 157, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/home/osboxes/gridworkz/pyerp/pyerp/settings.py", line 80, in with open('%s/installed_apps.py' % BASE_DIR, 'r') as ins_apps_file: FileNotFoundError: [Errno 2] No such file or directory: '/home/osboxes/gridworkz/pyerp/installed_apps.py'

UPDATE: Just created an empty installed_apps.py file and we're good now. Read the other thread on this.

ddiaz2380 commented 3 years ago

Just creating installed_apps.py solves it? Because I did, I was able to run the project, but when I wanted to migrate the base, I only migrated the django structure without the other tables.

gridworkz commented 3 years ago

Thanks, I'll give that a try.

On Thu, Sep 24, 2020 at 3:34 AM Daniel Alberto Diaz < notifications@github.com> wrote:

Just creating installed_apps.py solves it? Because I did, I was able to run the project, but when I wanted to migrate the base, I only migrated the django structure without the other tables.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/falconsoft3d/pyerp/issues/8#issuecomment-698171419, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVXNSB2ED4A7ID2UJDCH7LSHLZBXANCNFSM4MYJFUFA .

youssriaboelseod commented 3 years ago

i create pull request for adding installed_app.py

gridworkz commented 3 years ago

Thanks, yep that didi it. Cheers, Dave

On Sat, Sep 26, 2020 at 5:23 AM Youssri Ahmed Hamdy AboElseod < notifications@github.com> wrote:

i create pull request for adding installed_app.py

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/falconsoft3d/pyerp/issues/8#issuecomment-699468025, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVXNSGZMSAJJTBEKQJQUL3SHWXIBANCNFSM4MYJFUFA .

ddiaz2380 commented 3 years ago

Could you run the application? I can't, I want to migrate the tables and it doesn't give me an error.

gridworkz commented 3 years ago

Yes, it runs fine now after creating the installed_apps.py file. Cheers, Dave

On Sat, Sep 26, 2020 at 1:45 PM Daniel Alberto Diaz < notifications@github.com> wrote:

Could you run the application? I can't, I want to migrate the tables and it doesn't give me an error.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/falconsoft3d/pyerp/issues/8#issuecomment-699526382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVXNSH66PLDIS7CI2M6V5DSHYSDNANCNFSM4MYJFUFA .

MirvohidovM commented 2 years ago

same error, because installed _apps written in .gitignore, how to solve that?

BrenoOsvaldoFunicheli commented 1 year ago

You can solve this problem by creating the installed _apps.py and after running the python manage.py init_pyerp.

Because the app need the file created, so after this it will be fill the file. If you in run in the linux you can be.

touch installed _apps.py python manage.py init_pyerp