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

Dependency issue #65

Open
shayaansiddiqui opened this issue Jul 12, 2024 · 1 comment
Open

Dependency issue #65

shayaansiddiqui opened this issue Jul 12, 2024 · 1 comment

Comments

@shayaansiddiqui
Copy link

shayaansiddiqui commented Jul 12, 2024

Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi/
Collecting gitpython (from -r .\requirements.txt (line 1))
  Using cached GitPython-3.1.43-py3-none-any.whl.metadata (13 kB)
Collecting glob2 (from -r .\requirements.txt (line 2))
  Using cached glob2-0.5-py2.py3-none-any.whl.metadata (633 bytes)
Collecting pyserial (from -r .\requirements.txt (line 3))
  Using cached https://dl.espressif.com/pypi/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting requests (from -r .\requirements.txt (line 4))
  Using cached https://dl.espressif.com/pypi/requests/requests-2.32.3-py3-none-any.whl (64 kB)
Collecting esptool (from -r .\requirements.txt (line 6))
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.7.0-py3-none-any.whl (370 kB)
Collecting colorama (from -r .\requirements.txt (line 7))
  Using cached https://dl.espressif.com/pypi/colorama/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting argparse (from -r .\requirements.txt (line 8))
  Using cached argparse-1.4.0-py2.py3-none-any.whl.metadata (2.8 kB)
Collecting gitdb<5,>=4.0.1 (from gitpython->-r .\requirements.txt (line 1))
  Using cached gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)
Collecting charset-normalizer<4,>=2 (from requests->-r .\requirements.txt (line 4))
  Using cached https://dl.espressif.com/pypi/charset-normalizer/charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
Collecting idna<4,>=2.5 (from requests->-r .\requirements.txt (line 4))
  Using cached https://dl.espressif.com/pypi/idna/idna-3.7-py3-none-any.whl (66 kB)
Collecting urllib3<3,>=1.21.1 (from requests->-r .\requirements.txt (line 4))
  Using cached https://dl.espressif.com/pypi/urllib3/urllib3-2.2.2-py3-none-any.whl (121 kB)
Collecting certifi>=2017.4.17 (from requests->-r .\requirements.txt (line 4))
  Using cached https://dl.espressif.com/pypi/certifi/certifi-2024.7.4-py3-none-any.whl (162 kB)
Collecting bitstring>=3.1.6 (from esptool->-r .\requirements.txt (line 6))
  Using cached https://dl.espressif.com/pypi/bitstring/bitstring-4.2.3-py3-none-any.whl (71 kB)
INFO: pip is looking at multiple versions of esptool to determine which version is compatible with other requirements. This could take a while.
Collecting esptool (from -r .\requirements.txt (line 6))
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.6.2-py3-none-any.whl (338 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.6.1-py3-none-any.whl (337 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.6-py3-none-any.whl (337 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.5.1-py3-none-any.whl (320 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.5-py3-none-any.whl (317 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.4-py3-none-any.whl (288 kB)
Collecting bitstring<4,>=3.1.6 (from esptool->-r .\requirements.txt (line 6))
  Using cached https://dl.espressif.com/pypi/bitstring/bitstring-3.1.9-py3-none-any.whl (39 kB)
Collecting esptool (from -r .\requirements.txt (line 6))
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.3-py3-none-any.whl (286 kB)
INFO: pip is still looking at multiple versions of esptool to determine which version is compatible with other requirements. This could take a while.
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.2.1-py3-none-any.whl (259 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.2-py3-none-any.whl (259 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.1-py3-none-any.whl (262 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-4.0-py3-none-any.whl (261 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-3.3.1-py3-none-any.whl (350 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  Using cached https://dl.espressif.com/pypi/esptool/esptool-3.3-py3-none-any.whl (350 kB)
  Using cached https://dl.espressif.com/pypi/esptool/esptool-3.2-py3-none-any.whl (331 kB)

The conflict is caused by:
esptool 4.7.0 depends on cryptography>=2.1.4
esptool 4.6.2 depends on cryptography>=2.1.4
esptool 4.6.1 depends on cryptography>=2.1.4
esptool 4.6 depends on cryptography>=2.1.4
esptool 4.5.1 depends on cryptography>=2.1.4
esptool 4.5 depends on cryptography>=2.1.4
esptool 4.4 depends on cryptography>=2.1.4
esptool 4.3 depends on cryptography>=2.1.4
esptool 4.2.1 depends on cryptography>=2.1.4
esptool 4.2 depends on cryptography>=2.1.4
esptool 4.1 depends on cryptography>=2.1.4
esptool 4.0 depends on cryptography>=2.1.4
esptool 3.3.1 depends on cryptography>=2.1.4
esptool 3.3 depends on cryptography>=2.1.4
esptool 3.2 depends on cryptography>=2.1.4

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

Resolution:
Please add cryptography to the requirements.txt file


This could be a Windows on ARM issue but RUST does not appear to be installed and it's required by cryptography.
when I install it via pip3 install RUST, it failed with

File "C:\Program Files\Python312-arm64\Lib\subprocess.py", line 548, in run
          with Popen(*popenargs, **kwargs) as process:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python312-arm64\Lib\subprocess.py", line 1026, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "C:\Program Files\Python312-arm64\Lib\subprocess.py", line 1538, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      FileNotFoundError: [WinError 2] The system cannot find the file specified
@SkeletonMan03
Copy link
Owner

I've never seen it need cryptography, or rather have never seen it missing. But will look later. Also, Rust is a programming language. Not sure why it would want that either and am going to assume because Windows ARM

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

2 participants