pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.55k stars 3.04k forks source link

install hedera-sdk-py 2.0.8 issue #10132

Closed mccror closed 3 years ago

mccror commented 3 years ago

Description

doing step by step. Ran as administrator as says access issue even did pip install hedera-sdk-py >=2.0.5

but cannot get round the below error

Expected behavior

No response

pip version

2.0.8

Python version

39

OS

Win

How to Reproduce

  1. Get package from 'https://pypi.org/project/hedera-sdk-py/#files'
  2. Then run 'Command Terminal'
  3. An error occurs.

Output

(hedera-demo) C:\Users\ninja\Envs>pip install hedera-sdk-py
Collecting hedera-sdk-py
  Using cached hedera_sdk_py-2.0.8-py3-none-any.whl (17.8 MB)
Collecting pyjnius>=1.3.0
  Using cached pyjnius-1.3.0.0.tar.gz (46 kB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\ninja\envs\hedera-demo\scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ninja\\AppData\\Local\\Temp\\pip-install-563dhm68\\pyjnius_bf871ded6a664b2b9818fcfda534d0b9\\setup.py'"'"'; __file__='"'"'C:\\Users\\ninja\\AppData\\Local\\Temp\\pip-install-563dhm68\\pyjnius_bf871ded6a664b2b9818fcfda534d0b9\\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 'C:\Users\ninja\AppData\Local\Temp\pip-pip-egg-info-3gzaj4j1'
         cwd: C:\Users\ninja\AppData\Local\Temp\pip-install-563dhm68\pyjnius_bf871ded6a664b2b9818fcfda534d0b9\
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ninja\AppData\Local\Temp\pip-install-563dhm68\pyjnius_bf871ded6a664b2b9818fcfda534d0b9\setup.py", line 95, in <module>
        compile_native_invocation_handler(*get_possible_homes(PLATFORM))
      File "C:\Users\ninja\AppData\Local\Temp\pip-install-563dhm68\pyjnius_bf871ded6a664b2b9818fcfda534d0b9\setup.py", line 85, in compile_native_invocation_handler
        subprocess.check_call([
      File "C:\Program Files\Python39\lib\subprocess.py", line 368, in check_call
        retcode = call(*popenargs, **kwargs)
      File "C:\Program Files\Python39\lib\subprocess.py", line 349, in call
        with Popen(*popenargs, **kwargs) as p:
      File "C:\Program Files\Python39\lib\subprocess.py", line 951, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:\Program Files\Python39\lib\subprocess.py", line 1420, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    PermissionError: [WinError 5] Access is denied
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/69/62/a81f0bdd7a96831b920efeaec80d80b66991cb582a65f6e4ae8c9a10cffd/pyjnius-1.3.0.0.tar.gz#sha256=d20845e75a2d18224e661d0e2bc2ce9141f17472e685cd6579847b0a7b5da6ad (from https://pypi.org/simple/pyjnius/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Collecting hedera-sdk-py
  Using cached hedera_sdk_py-2.0.6-py3-none-any.whl (17.7 MB)
  Using cached hedera_sdk_py-2.0.5-py3-none-any.whl (17.7 MB)
ERROR: Cannot install hedera-sdk-py==2.0.5, hedera-sdk-py==2.0.6 and hedera-sdk-py==2.0.8 because these package versions have conflicting dependencies.

The conflict is caused by:
    hedera-sdk-py 2.0.8 depends on pyjnius>=1.3.0
    hedera-sdk-py 2.0.6 depends on pyjnius>=1.3.0
    hedera-sdk-py 2.0.5 depends on pyjnius>=1.3.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Code of Conduct

uranusjr commented 3 years ago

Looks like pip couldn’t install pyjnius on your environment. You’ll need to ask for help from pyjnius maintainers, we can’t help with this.