Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

PIP install does not works #1

Closed
HGStyle opened this issue Aug 16, 2022 · 1 comment
Closed

PIP install does not works #1

HGStyle opened this issue Aug 16, 2022 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers wontfix This will not be worked on

Comments

@HGStyle
Copy link
Owner

HGStyle commented Aug 16, 2022

PIP install does not works. While trying to install it from PIP, you can get :

$ pip3 install VerifKey
Collecting VerifKey
  Downloading VerifKey-1.0.0.tar.gz (4.6 kB)
Building wheels for collected packages: VerifKey
  Building wheel for VerifKey (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-v0y50_hu
       cwd: /tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/
  Complete output (11 lines):
  running bdist_wheel
  running build
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_data
  creating build
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/VerifKey-1.0.0.data
  creating build/bdist.linux-x86_64/wheel/VerifKey-1.0.0.data/data
  error: can't copy '': doesn't exist or not a regular file
  ----------------------------------------
  ERROR: Failed building wheel for VerifKey
  Running setup.py clean for VerifKey
Failed to build VerifKey
Installing collected packages: VerifKey
    Running setup.py install for VerifKey ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-05gxln08/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hg/.local/include/python3.9/VerifKey
         cwd: /tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/
    Complete output (4 lines):
    running install
    running build
    running install_data
    error: can't copy '': doesn't exist or not a regular file
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1ba67ak9/verifkey_8673046e05a140a9979b7e0096a0718f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-05gxln08/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hg/.local/include/python3.9/VerifKey Check the logs for full command output.

See comments for explications.

@HGStyle
Copy link
Owner Author

HGStyle commented Aug 16, 2022

OK, when I uploaded my module to PIP, I made a file to install the module using "setuptools".
To install it, you need to download this repo as ZIP (see the note), uncompress it, and get the Python Modules folder :

  • %appdata%\Local\Programs\Python\PythonXX\Lib on Windows if this folder exists (replace "XX" by your Python version, example: 38)
  • C:\PythonXX\Lib on Windows if folder exists (Replace "XX" by your Python version, example: 38)
  • On ANY UNIX system (MacOS, Linux, BSD...) :
    Get a terminal and then type these commands :
    which python3 ---> Gave you a result (we will name it "pysymlink" because it's a symbolic link)
    ls -al [pysymlink] (replace [pysymlink] by the result of the first command) ---> the python folder
    Add /Lib to the python folder to get the path where is stored python modules.
  • If you know where Python is stored/installed (without symbolic links !), add /Lib (\Lib on Windows) to get the Python Modules folder.
    After getting this folder, copy the file "VerifKey.py" to the python modules folder.
    If it's gave an error, try to replace "python3" by "python", "py", or "py3" only in the first command.

NOTE : You can download the ZIP only on PC. ZIP can be downloaded with : Code -> Download with HTTPS as ZIP.
You can download the VerifKey file without all others files by clicking this link
(It can does not work on some browsers, so just copy the code and paste it on a new programm, save it as VerifKey.py)

@HGStyle HGStyle closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2022
@HGStyle HGStyle added bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers wontfix This will not be worked on labels Aug 16, 2022
@HGStyle HGStyle reopened this Jan 10, 2023
@HGStyle HGStyle closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant