Hi
I am on V14
I am not able do a bench update
it gives an error
further after a git status
please help me solve this issue
With regards
Hemanth
Hi
I am on V14
I am not able do a bench update
it gives an error
please help me solve this issue
With regards
Hemanth
It’s not necessary to track the '__pycache__' directory in git.
Open the App’s '.gitignore' file using a text editor. And add this line:
__pycache__
As another example, you can examine ERPNext’s '.gitignore' file here:
erpnext/.gitignore at develop · frappe/erpnext · GitHub
Once __pycache__ is ignored, it will not be mentioned when checking ‘git status’. And you should be able to proceed with your Bench update. ![]()
If you want to read more about these files, here is an article:
What is __pycache__ in Python? | Towards Data Science
Its under ~/frappe-bench/apps/ecommerce_integrations/ you will find the file .gitignore
Hi
Thanks Centaur
I checked every folder in the ecommerce_integrations and could not get the file
i checked it folder by folder without results
did a search and did not yield results
Thanks and Regards
Hemanth
you can ofcourse create it
Here is the .gitignore from github GitHub - frappe/ecommerce_integrations: Ecommerce integrations for ERPNext
have a look into it, copy it and then additionally add
__pycache__
at the end.
Hi Centaur
got the file
it was hidden
added the line
below is the contents of the file
.DS_Store
*.pyc
*.egg-info
*.swp
tags
ecommerce_integrations/docs/current
pycache
still the same error while bench update
do i have to run anything additional after i edit the file?
Thanks and Regards
Hemanth
it should be
__pycache__
2 underscore on either side
Hi Centaur
yes… have done the same…typo in above post
is what i have done
regards
Hemanth