Hi friends. I have installed frappe and rpnext v13. In my development environment it say me that I don't have installed frappe. When run pip install frappe I got this

Collecting frappe
Using cached frappe-2.1.4.tar.gz (217 kB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_be222a152d714ec796d461048aeef6b6/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_be222a152d714ec796d461048aeef6b6/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-ucg6c46j
cwd: /tmp/pip-install-uc_5c0qp/frappe_be222a152d714ec796d461048aeef6b6/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_be222a152d714ec796d461048aeef6b6/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_be222a152d714ec796d461048aeef6b6/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/4c/d3/73da0e17271031bacd2c585588026701ae5934329264db575ad989cc9ce3/frappe-2.1.4.tar.gz#sha256=6ca5313aceb1212f8044efc15ccf03461b2c85644e33716616a02a1fe2bb5c1f (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.1.3.tar.gz (216 kB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_f29ba1b1d9294e618313779745d3516b/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_f29ba1b1d9294e618313779745d3516b/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-nmp_rq95
cwd: /tmp/pip-install-uc_5c0qp/frappe_f29ba1b1d9294e618313779745d3516b/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_f29ba1b1d9294e618313779745d3516b/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_f29ba1b1d9294e618313779745d3516b/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/15/33/82337920a2b80992eda2fbe08d4e34b47e6f3f23386488716b35ca7b43cc/frappe-2.1.3.tar.gz#sha256=dbd6b484438e29e193c1110fc3db0a3ec19247265353f7f1cf76aaa88667eb4c (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.1.1.tar.gz (209 kB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_5c51912e4eb94233b2f497d5529ab3b8/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_5c51912e4eb94233b2f497d5529ab3b8/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-cvrtxqu2
cwd: /tmp/pip-install-uc_5c0qp/frappe_5c51912e4eb94233b2f497d5529ab3b8/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_5c51912e4eb94233b2f497d5529ab3b8/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_5c51912e4eb94233b2f497d5529ab3b8/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/34/cb/197c1aa6cc35ecfe60f9ba88f59897ab43853ef24daf9a9582623c09ded8/frappe-2.1.1.tar.gz#sha256=336825156c77442495e4907666e5717b6f5145caddaed5084ed617967c2059f8 (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.1.0.tar.gz (209 kB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_3049b6244d4a417db2ba1c649528e375/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_3049b6244d4a417db2ba1c649528e375/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-rxz6nmfk
cwd: /tmp/pip-install-uc_5c0qp/frappe_3049b6244d4a417db2ba1c649528e375/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_3049b6244d4a417db2ba1c649528e375/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_3049b6244d4a417db2ba1c649528e375/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/83/9b/731b47beb7e955966c3b6dc91b1aca3476905a15e50e84501ddf4180d932/frappe-2.1.0.tar.gz#sha256=972ca33b15391738614aca1d1eecc72aa5ea65cb22bd5a61007ae529dc3c8fd9 (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.0.4.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_fbedddc02f924655adf3496168f37bb6/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_fbedddc02f924655adf3496168f37bb6/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-f6n54aa_
cwd: /tmp/pip-install-uc_5c0qp/frappe_fbedddc02f924655adf3496168f37bb6/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_fbedddc02f924655adf3496168f37bb6/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_fbedddc02f924655adf3496168f37bb6/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/52/22/eca999b4ee5c0b5375f20251855e7f41ff34926e9991a798e4cb418d0487/frappe-2.0.4.tar.gz#sha256=c358596c17498f541ba378c1e1ae85c0b618b9bfc806ee959d7b9110ec68ff11 (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.0.3.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_8608b53f4d6d4e339096649d56b19f58/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_8608b53f4d6d4e339096649d56b19f58/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-9zguv9xp
cwd: /tmp/pip-install-uc_5c0qp/frappe_8608b53f4d6d4e339096649d56b19f58/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_8608b53f4d6d4e339096649d56b19f58/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_8608b53f4d6d4e339096649d56b19f58/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/e8/ff/eca36111b79ab75564a63cf4a13b5c0dc9f61a73ad946dbe7317490eb7c7/frappe-2.0.3.tar.gz#sha256=196b6ee44719dc4d292ff0b68b186ad1cc8524026384f9eee0ac55629562cf04 (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.0.2.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_25b484e31c61429ca24a4d6b04810781/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_25b484e31c61429ca24a4d6b04810781/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-3lkg7g5o
cwd: /tmp/pip-install-uc_5c0qp/frappe_25b484e31c61429ca24a4d6b04810781/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_25b484e31c61429ca24a4d6b04810781/setup.py”, line 8, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_25b484e31c61429ca24a4d6b04810781/setup.py", line 10, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/00/af/5f156782a137430a35f3115988edf37b383778ec4487a3512b3308a3a7be/frappe-2.0.2.tar.gz#sha256=b9abaf1a865b3acbf49a27f6cb11217b4b980da631e623a0792c4babda9df951 (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.0.1.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_22813f59cabc419aba91dd9e3c96dfc2/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_22813f59cabc419aba91dd9e3c96dfc2/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-2wbkvc3l
cwd: /tmp/pip-install-uc_5c0qp/frappe_22813f59cabc419aba91dd9e3c96dfc2/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_22813f59cabc419aba91dd9e3c96dfc2/setup.py”, line 7, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_22813f59cabc419aba91dd9e3c96dfc2/setup.py", line 9, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/f6/9d/658c5c54186e860bde0a3c1425bbd65b9d31e0bc212e780520746cd4f9ce/frappe-2.0.1.tar.gz#sha256=7ce96e27fd85398cc198fd1b3273f729f7d92abce8adb25db5b0bd30f080105e (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached frappe-2.0.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: /home/ignais/.pyenv/versions/3.8.7/envs/frappe-v13/bin/python3.8 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-uc_5c0qp/frappe_9bc1512aa24043acac1abfbf2035f207/setup.py’"’"’; file=’"’"’/tmp/pip-install-uc_5c0qp/frappe_9bc1512aa24043acac1abfbf2035f207/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-46uogst4
cwd: /tmp/pip-install-uc_5c0qp/frappe_9bc1512aa24043acac1abfbf2035f207/
Complete output (12 lines):
Traceback (most recent call last):
File “/tmp/pip-install-uc_5c0qp/frappe_9bc1512aa24043acac1abfbf2035f207/setup.py”, line 7, in
import testfm
ModuleNotFoundError: No module named ‘testfm’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-uc_5c0qp/frappe_9bc1512aa24043acac1abfbf2035f207/setup.py", line 9, in <module>
    raise LookupError("You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)")
LookupError: You must have test.fm >= 1.0.4 installed before (https://github.com/grafos-ml/frappe)
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/ea/ca/e79fefd0cb7a401a29b2d7b43d47398a8ae94f1845242670d32ff18dccf9/frappe-2.0.tar.gz#sha256=c1d96f156824ad0894548ac05101555ed59a0250e22bd2b1294ce9e92f188e98 (from https://pypi.org/simple/frappe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement frappe (from versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0, 2.1.1, 2.1.3, 2.1.4)
ERROR: No matching distribution found for frappe

I suppose that if I put the version the problem disappears, but which version is the correct one in this case? thanks

I testing with pip install frappe-2.1.4 and I got:
ERROR: Could not find a version that satisfies the requirement frappe-2.1.4 (from versions: none)
ERROR: No matching distribution found for frappe-2.1.4

You don’t install frappe via pip.
You install frappe-bench via pip. Then “bench init” command will install frappe.

This should give some guidance during install.

The installation was successful, the bench runs and the app works, the problem is in the development environment

In your bench try running bench setup requirements --python

Installed the dependencies but the error persists. When I run debug mode it tells me this
Traceback (most recent call last):
File “/home/ignais/frappe-v13/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 3, in
import frappe
ModuleNotFoundError: No module named ‘frappe’

Maybe this will help? What is your debug config?

1 Like

Thanks a lot. This was the solution.