[Release Note] ERPNext and Frappe Version 13.3.0

I much appreciate the great effort everyone is showing in our community.
I did the Bench update successfully, although an error "stating that node version =>14 required popped up during installation.

Since upgrade to 13.3.0 two issues emerged:
1- wkhtmltopdf HostNotFoundError when printing PDF.
2- After gladly testing the new RTL feature, i cant change the language back (of the administrator) from Arabic to English, an error message “invalid value can be unlimited or an integer value” screen capture attached. Even couldn’t create a new user the same error persist.

UPgrading from V12 to V13.

Versions:
frappe@VINOPROD01:~/frappe-bench$ npm --version
6.14.13
frappe@VINOPROD01:~/frappe-bench$ yarn --version
1.22.5
frappe@VINOPROD01:~/frappe-bench$ nodejs --version
v16.1.0
frappe@VINOPROD01:~/frappe-bench$ python --version
Python 2.7.17

Getting error on BENCH BUILD:
:heavy_check_mark: Built js/moment-bundle.min.js
internal/fs/utils.js:312
throw err;
^

Error: ENOENT: no such file or directory, open ‘/home/frappe/frappe-bench/apps/frappe/node_modules/localforage/dist/localforage.min.js’
at Object.openSync (fs.js:498:3)
at Object.readFileSync (fs.js:394:35)
at /home/frappe/frappe-bench/apps/frappe/rollup/build.js:129:39
at Array.map ()
at /home/frappe/frappe-bench/apps/frappe/rollup/build.js:123:36
at Array.forEach ()
at concatenate_files (/home/frappe/frappe-bench/apps/frappe/rollup/build.js:120:18)
at Object. (/home/frappe/frappe-bench/apps/frappe/rollup/build.js:40:13)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: ‘open’,
code: ‘ENOENT’,
path: ‘/home/frappe/frappe-bench/apps/frappe/node_modules/localforage/dist/localforage.min.js’
}
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

version 13 requires Python 3. You are still at Python 2.7

1 Like

Solved the second issue “invalid value can be unlimited or integer” by uninstalling app called erpnext_quota

After following advice to update Python from 2. to 3.6, no cannot run Bench. (upgrading from ver12 to ver13)

frappe@VINOPROD01:~/frappe-bench$ yarn --version
1.22.5
frappe@VINOPROD01:~/frappe-bench$ npm --version
6.14.13
frappe@VINOPROD01:~/frappe-bench$ nodejs --version
v16.1.0
frappe@VINOPROD01:~/frappe-bench$ python --version
Python 3.7.5
frappe@VINOPROD01:~/frappe-bench$ bench
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 6, in
from pkg_resources import load_entry_point
ModuleNotFoundError: No module named ‘pkg_resources’
frappe@VINOPROD01:~/frappe-bench$

bench what?

@Joseph_Marie_Alba1

Bench anything

frappe@VINOPROD01:~/frappe-bench$ bench --help
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 6, in
from pkg_resources import load_entry_point
ModuleNotFoundError: No module named ‘pkg_resources’

frappe@VINOPROD01:~/frappe-bench$ bench update --patch
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 6, in
from pkg_resources import load_entry_point
ModuleNotFoundError: No module named ‘pkg_resources’

frappe@VINOPROD01:~/frappe-bench$ bench build
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 6, in
from pkg_resources import load_entry_point
ModuleNotFoundError: No module named ‘pkg_resources’

frappe@VINOPROD01:~/frappe-bench$

I have error with auto create asset function(Home > Assets > Assets > Asset). When I choose default Naming Series and click save I receive following error:
“erpnext Asset Naming Series cannot be ACC-ASS-.YYYY.- It should be one of , dfs”

Does anyone else have this error?

can you try pip3 install frappe-bench --upgrade?

It didn’t help with:
“erpnext Asset Naming Series cannot be ACC-ASS-.YYYY.- It should be one of , dfs”

Sorry, this was for the bench issue

Aynone else getting the

/frappe/website/context.py:55: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()

message while migrating or updating?

1 Like

@Tufan_Kaynak2

Yes it is under investigation.

Developers working on it.

https://github.com/frappe/frappe/pull/13344

2 Likes

me also got the same

still not solved yet?

Something is not correct about handling

getargspec because python 3 hanling only

getfullargspec.

Hope it will sorted soon.

Decided to just restore my VM and start over.

I was going to link to an article that showed how to properly and cleanly upgrade from v12 to v13 but lost the freaking link. I had copied the script he did and I really wanted to give him all the credit so for anyone that is familiar with the following please show the original link.

Upgrade V12 to V13

Check your Initial versions

ERPNext: v12.19.0 (version-12)
Frappe Framework: v12.16.3 (version-12)
bench/frappe: 5.0.0
node: v8.17.0
yarn: v1.16.0
npm: 6.13.4
python: 3.6.9

–Upgrade the system
sudo apt update
sudo apt upgrade

–Update node-npm-yarn
curl -fsSL https://deb.nodesource.com/setup_14.x 40 | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g npm
sudo npm install -g yarn

–Upgrade frappe-bench
sudo -H pip3 install --upgrade frappe-bench

–Installation directory
cd -your-directory-

–Update
bench setup requirements
bench update

Error Encountered (later resolved)
error: <class ‘socket.error’>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 228

–New version
bench switch-to-branch version-13 frappe erpnext --upgrade
sudo service nginx restart
sudo supervisorctl reload
bench update --patch

–Fix previous error
sudo systemctl start supervisor
sudo systemctl enable supervisor
sudo bench setup production -your-user-

–Update
bench update
bench build

–Add the SSL certificates (if necessary)

Check Final versions

ERPNext: v13.4.1 (version-13)
Frappe Framework: v13.4.1 (version-13)
bench/frappe: 5.4.1
node: v14.17.1
yarn: v1.22.10
npm: 7.16.0
python: 3.6.9

Worked absolutely like a charm. There was one bit there where needed to upgrade pip3 just follow the instructions on it. Cheers!

Chris

2 Likes

Updated to 13.4.1 and all the above errors disappears.

Thank you developers team.

How to upgrade to V13 - #2 by jagmarej this is likely the post.