kid1194 / erpnext_expenses Goto Github PK
View Code? Open in Web Editor NEWAn expenses management module for ERPNext.
License: MIT License
An expenses management module for ERPNext.
License: MIT License
bench --site test.local install-app expenses
Installing expenses...
An error occurred while installing expenses: No module named 'expenses.utils'
Traceback (most recent call last):
File "apps/frappe/frappe/commands/site.py", line 462, in install_app
_install_app(app, verbose=context.verbose, force=force)
File "apps/frappe/frappe/installer.py", line 311, in install_app
frappe.get_attr(after_install)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/init.py", line 1705, in get_attr
return getattr(get_module(modulename), methodname)
^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/init.py", line 1441, in get_module
return importlib.import_module(modulename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "apps/expenses/expenses/setup/install.py", line 15, in
from expenses.utils import (
ModuleNotFoundError: No module named 'expenses.utils'
ERPNext: v15.8.3 (version-15)
Expenses: v1.0.0 (main)
Frappe Framework: v15.7.0 (version-15)
Can you brief what expenses.bunble.js is doing or similar addons that are non native? Unlike the native application, it feels like the expenses app is using different addons, so its hard to catch upon how issues and cant be related to native behaviors from other part of the app. If you can give a brief about the concept, that would be helpful to work around with.
Describe the bug
ImportError: Module import failed for Expenses Entry, the DocType you're trying to open might be deleted.
Error: cannot import name 'ACCOUNT' from 'expenses.libs' (apps/expenses/expenses/libs/init.py)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Installing expenses...
Updating DocTypes for expenses : [== ] 6%An error occurred while installing expenses: Module import failed for Expenses Entry, the DocType you're trying to open might be deleted.
Error: cannot import name 'ACCOUNT' from 'expenses.libs' (/home/iak/frappe-bench/apps/expenses/expenses/libs/init.py)
Traceback with variables (most recent call last):
File "apps/frappe/frappe/commands/site.py", line 462, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {'sites': ['bollexmedia.com'], 'force': False, 'verbose': False, 'profile': False}
apps = ('expenses',)
force = True
_install_app = <function install_app at 0x7f95cc7a4ae0>
filelock = <function filelock at 0x7f95cc79eca0>
exit_code = 0
Additional context
Frappe and ERPNEXT Version 15
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.