Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] : If we install this app frappe version 13, 14, or 15 it give frappe docker issue with this package (pyjwt) #2

Open
Sonupandit9693 opened this issue Jan 23, 2024 · 0 comments

Comments

@Sonupandit9693
Copy link

frappe@32af51bc6891:/workspace/development/frappe-bench9$ bench get-app https://github.com/8848digital/dsc-erpnext.git Getting dsc-erpnext $ git clone https://github.com/8848digital/dsc-erpnext.git --depth 1 --origin upstream Cloning into 'dsc-erpnext'... remote: Enumerating objects: 73, done. remote: Counting objects: 100% (73/73), done. remote: Compressing objects: 100% (54/54), done. remote: Total 73 (delta 26), reused 41 (delta 12), pack-reused 0 Receiving objects: 100% (73/73), 25.22 KiB | 6.30 MiB/s, done. Resolving deltas: 100% (26/26), done. Ignoring dependencies of https://github.com/8848digital/dsc-erpnext.git. To install dependencies use --resolve-deps Installing dsc_erpnext $ /workspace/development/frappe-bench9/env/bin/python -m pip install --quiet --upgrade -e /workspace/development/frappe-bench9/apps/dsc_erpnext ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pygithub 2.1.1 requires pyjwt[crypto]>=2.4.0, but you have pyjwt 1.7.1 which is incompatible. $ bench build --app dsc_erpnext /home/frappe/.pyenv/versions/3.10.12/lib/python3.10/runpy.py:110: UserWarning: frappe` package is installed from PyPI, which isn't supported. Please install frappe using frappe bench or docker images.

/home/frappe/.pyenv/versions/3.10.12/lib/python3.10/runpy.py:110: UserWarning:
frappe package is installed from PyPI, which isn't supported. Please install frappe using frappe bench or docker images.

  • https://github.com/frappe/bench

  • https://github.com/frappe/frappe_docker

    import(pkg_name)
    /workspace/development/frappe-bench9/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe.utils')
    ERROR: bench build --app dsc_erpnext
    subprocess.CalledProcessError: Command 'bench build --app dsc_erpnext' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/frappe/.local/bin/bench", line 8, in
sys.exit(cli())
File "/home/frappe/.bench/bench/cli.py", line 132, in cli
bench_command()
File "/home/frappe/.bench/bench/commands/make.py", line 159, in get_app
get_app(
File "/home/frappe/.bench/bench/app.py", line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/home/frappe/.bench/bench/app.py", line 242, in install
install_app(
File "/home/frappe/.bench/bench/app.py", line 586, in install_app
build_assets(bench_path=bench_path, app=app)
File "/home/frappe/.bench/bench/utils/bench.py", line 351, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/home/frappe/.bench/bench/utils/init.py", line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app dsc_erpnext

INFO: A newer version of bench is available: 5.16.4 → 5.20.0
frappe@32af51bc6891:/workspace/development/frappe-bench9$ `

Here we install in version-13 this error say like build your app then :
frappe@32af51bc6891:/workspace/development/frappe-bench9$ bench build --app dsc_erpnext /home/frappe/.pyenv/versions/3.10.12/lib/python3.10/runpy.py:110: UserWarning: frappe` package is installed from PyPI, which isn't supported. Please install frappe using frappe bench or docker images.

/home/frappe/.pyenv/versions/3.10.12/lib/python3.10/runpy.py:110: UserWarning:
frappe package is installed from PyPI, which isn't supported. Please install frappe using frappe bench or docker images.

👎 again it will give package error how can we fix that .
If you have any answer please give .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant