Hi
I am using the virtual machine with virtual box, after the latest update i get the following error :
And impossible to reach modules purchases and sales
Excuse my English I am French
Thank you in advance
Hi
I am using the virtual machine with virtual box, after the latest update i get the following error :
And impossible to reach modules purchases and sales
Excuse my English I am French
Thank you in advance
Have you made changes to the erpnext_demo
app? If not follow these steps
git reset --hard upstream/master
Then follow these steps
Thank you it works for updates.
Now I have another problem :
when I try to go on purchases and sales, a message appears:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 855, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 65, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 75, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 20, in get_meta
meta = frappe.cache().hget(“form_meta”, doctype, lambda: FormMeta(doctype))
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 145, in hget
value = generator()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 20, in
meta = frappe.cache().hget(“form_meta”, doctype, lambda: FormMeta(doctype))
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 32, in init
self.load_assets()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 39, in load_assets
self.add_code()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 62, in add_code
self._add_code(_get_path(self.name + ‘.js’), ‘__js’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 77, in _add_code
js = get_js(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 185, in get_js
return render_include(js)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 49, in render_include
with open(frappe.get_app_path(app, app_path), ‘r’) as f:
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 645, in get_app_path
return get_pymodule_path(app_name, *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 660, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named buying
and
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 855, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 65, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 75, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 20, in get_meta
meta = frappe.cache().hget(“form_meta”, doctype, lambda: FormMeta(doctype))
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 145, in hget
value = generator()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 20, in
meta = frappe.cache().hget(“form_meta”, doctype, lambda: FormMeta(doctype))
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 32, in init
self.load_assets()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 39, in load_assets
self.add_code()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 62, in add_code
self._add_code(_get_path(self.name + ‘.js’), ‘__js’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 77, in _add_code
js = get_js(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 185, in get_js
return render_include(js)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 49, in render_include
with open(frappe.get_app_path(app, app_path), ‘r’) as f:
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 645, in get_app_path
return get_pymodule_path(app_name, *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 660, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named selling
Thank you
There was an issue with the old VM, basically that the branch for frappe was in develop and the branch for erpnext was in master. So what we’ll do is change your erpnext into develop. You’ll notice a change in your UI in several places, and that’s because you’ll now be on ERPNext 7.
You’ll need to follow these steps
cd /home/(user)/bench-repo
git checkout develop
git fetch origin develop
git reset --hard origin/develop
cd /home/(user)/frappe-bench
bench switch-to-develop
bench update
bench setup redis
bench setup supervisor
sudo supervisorctl reread
sudo supervisorctl update
I have to enter the complete line?
Yes yes
Thank you purchases and sales modules works but the Accounts module doesn’t work anymore :
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 855, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 55, in get_script
send_translations(frappe.get_lang_dict(“report”, report_name))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 62, in get_lang_dict
return get_dict(fortype, name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 111, in get_dict
messages = get_messages_from_report(name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 411, in get_messages_from_report
frappe.db.get_value(“DocType”, report.ref_doctype, “module”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 429, in _get_messages_from_page_or_report
messages += get_messages_from_file(os.path.join(doc_path, filename))
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 478, in get_messages_from_file
message) for pos, message in extract_messages_from_code(sourcefile.read(), path.endswith(“.py”))]
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 489, in extract_messages_from_code
code = render_include(code)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 49, in render_include
with open(frappe.get_app_path(app, app_path), ‘r’) as f:
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 645, in get_app_path
return get_pymodule_path(app_name, *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 660, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named accounts
Can you run bench update
again and try?
The Accounts module doesn’t work after the last bench update
Try sudo reboot
this will reboot your VM.
there is still the same error :
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 855, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 55, in get_script
send_translations(frappe.get_lang_dict(“report”, report_name))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 62, in get_lang_dict
return get_dict(fortype, name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 111, in get_dict
messages = get_messages_from_report(name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 411, in get_messages_from_report
frappe.db.get_value(“DocType”, report.ref_doctype, “module”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 429, in _get_messages_from_page_or_report
messages += get_messages_from_file(os.path.join(doc_path, filename))
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 478, in get_messages_from_file
message) for pos, message in extract_messages_from_code(sourcefile.read(), path.endswith(“.py”))]
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 489, in extract_messages_from_code
code = render_include(code)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 49, in render_include
with open(frappe.get_app_path(app, app_path), ‘r’) as f:
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 645, in get_app_path
return get_pymodule_path(app_name, *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 660, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named accounts
can you see what branches from git are you using?
and can you test your internet connection to the VM is stable or not?
Hello,
the internet connection is stable.
I don’t understand : [quote=“ramielian, post:13, topic:12234”]
can you see what branches from git are you using?
[/quote]
From within frappe-bench
folder do
cd frappe-bench/apps/erpnext
and do
git status
What do you get? “Branch is on develop” or “Branch is on master”
Do the same for the folder
frappe-bench/apps/frappe
From within the frappe and erpnext directories can you run :
git fetch upstream
git reset --hard upstream/develop
Then follow up by bench update
and see if you’re still having issues.
The problem is always present :
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 855, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 55, in get_script
send_translations(frappe.get_lang_dict(“report”, report_name))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 62, in get_lang_dict
return get_dict(fortype, name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 111, in get_dict
messages = get_messages_from_report(name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 411, in get_messages_from_report
frappe.db.get_value(“DocType”, report.ref_doctype, “module”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 429, in _get_messages_from_page_or_report
messages += get_messages_from_file(os.path.join(doc_path, filename))
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 478, in get_messages_from_file
message) for pos, message in extract_messages_from_code(sourcefile.read(), path.endswith(“.py”))]
File “/home/frappe/frappe-bench/apps/frappe/frappe/translate.py”, line 489, in extract_messages_from_code
code = render_include(code)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 49, in render_include
with open(frappe.get_app_path(app, app_path), ‘r’) as f:
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 645, in get_app_path
return get_pymodule_path(app_name, *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 660, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named accounts
Did you run this? If yes, try again anyway and see if there is an error during one of these steps. Don’t ignore the errors.
I just try again I do not see error:
frappe@erpnext:~/frappe-bench$ bench switch-to-develop
Already on ‘develop’
Your branch is up-to-date with ‘upstream/develop’.
Already up-to-date.
Already on ‘develop’
Your branch is up-to-date with ‘upstream/develop’.
Already up-to-date.
Switched to develop
Please runbench update --patch
to be safe from any differences in database schema
frappe@erpnext:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
- branch develop → FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)- branch develop → FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext_demo
From GitHub - frappe/erpnext_demo: Deprecated with Version 7 (will work till v6)- branch master → FETCH_HEAD
Already up-to-date.
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see Advanced Usage - urllib3 2.2.0 documentation.
SNIMissingWarning
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see Advanced Usage - urllib3 2.2.0 documentation.
InsecurePlatformWarning
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Migrating erpnext.vm
Updating frappe : [========================================]
Updating erpnext : [========================================]
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/frappe-web.min.js - 107k
Wrote ./assets/js/form.min.js - 123k
Wrote ./assets/js/report.min.js - 157k
Wrote ./assets/js/erpnext.min.js - 83k
Wrote ./assets/css/list.min.css - 6k
Wrote ./assets/js/item-dashboard.min.js - 6k
Wrote ./assets/css/report.min.css - 7k
Wrote ./assets/css/frappe-web.css - 55k
Wrote ./assets/js/list.min.js - 68k
Wrote ./assets/js/dialog.min.js - 60k
Wrote ./assets/js/desk.min.js - 1237k
Wrote ./assets/css/form.min.css - 2k
Wrote ./assets/js/editor.min.js - 26k
Wrote ./assets/css/erpnext.css - 2k
Wrote ./assets/css/desk.min.css - 261k
Wrote ./assets/js/erpnext-web.min.js - 1k
Wrote ./assets/css/module.min.css - 2k
frappe-bench-frappe-web: stopped
frappe-bench-node-socketio: stopped
frappe-bench-frappe-schedule: stopped
frappe-bench-frappe-default-worker-0: stopped
frappe-bench-frappe-long-worker-0: stopped
frappe-bench-frappe-short-worker-0: stopped
frappe-bench-node-socketio: started
frappe-bench-frappe-web: started
frappe-bench-frappe-schedule: started
frappe-bench-frappe-default-worker-0: started
frappe-bench-frappe-long-worker-0: started
frappe-bench-frappe-short-worker-0: started
Bench: Open source installer + admin for Frappe and ERPNext (https://erpnext.com)
frappe@erpnext:~/frappe-bench$ bench setup redis
frappe@erpnext:~/frappe-bench$ bench setup supervisor
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
frappe@erpnext:~/frappe-bench$ sudo supervisorctl reread
No config updates to processes
frappe@erpnext:~/frappe-bench$ sudo supervisorctl update
frappe@erpnext:~/frappe-bench$
Try: bench restart
and check if you are able to open erpnext in your browser