pythongithubpippackagegithub-packages

pip install git+url issue || Google colab


enter image description hereI just created a set of functions for retrieving data of API so I shared it on my githhub website. I tried to install my packages on google colab using pip install git+url but the only a get is the following error:

note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

I'm new at github so i don't know if there is something that I'm missing at setting up my packages.

I would be grateful if someone can help me I left my git below

https://github.com/maxelOA/py_erpy2set.git


Solution

  • There's a syntax error in your setup.py script. You have two ++ at the bottom. Try removing those, should solve this error.

    This is why it's helpful to get the full error message (stack trace), when I tried running this on my console I got error message:

        ERROR: Command errored out with exit status 1:
         command: /home/matthias/projects/playground/as_env/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/matthias/projects/playground/as_env/src/erpy2set/setup.py'"'"'; __file__='"'"'/home/matthias/projects/playground/as_env/src/erpy2set/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-4we41jtq
             cwd: /home/matthias/projects/playground/as_env/src/erpy2set/
        Complete output (6 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/home/matthias/projects/playground/as_env/src/erpy2set/setup.py", line 17
            ++
              ^
        SyntaxError: invalid syntax
        ----------------------------------------
    WARNING: Discarding git+https://github.com/maxelOA/erpy2set#egg=erpy2set. 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 erpy2set (unavailable) (from versions: none)
    ERROR: No matching distribution found for erpy2set (unavailable)
    WARNING: You are using pip version 21.2.3; however, version 23.0.1 is available.
    You should consider upgrading via the '/home/matthias/projects/playground/as_env/bin/python -m pip install --upgrade pip' command.
    

    Which then prompted me to look at the setup.py file.

    The error message you posted must be just the error from google colab or whatever ide you are using, there must be some way to see the "see the above for output" part to get the more relevant info.