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

TypeError: can't concat bytes to str, The version specified (b'v1.0.2.dev1-2-gff14bb0') is an invalid version #2

Open
bozzmob opened this issue Aug 24, 2017 · 1 comment

Comments

@bozzmob
Copy link

bozzmob commented Aug 24, 2017

I'm trying run this, but, having issues with it. It fails with the below error.

Ubuntu 16.04, Python 3.5, OpenCV 3.3

(cv) ubuntu@ip-172-31-28-204:~/faceswapwork/matt-hayden$ pip install -e faceswap/
Obtaining file:///home/ubuntu/faceswapwork/matt-hayden/faceswap
    Complete output from command python setup.py egg_info:
    
    Installed /home/ubuntu/faceswapwork/matt-hayden/faceswap/.eggs/setuptools_git-1.2-py3.5.egg
    running egg_info
    /home/ubuntu/.virtualenvs/cv/lib/python3.5/site-packages/setuptools/dist.py:350: UserWarning: The version specified (b'v1.0.2.dev1-2-gff14bb0') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
      "details." % self.metadata.version
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/ubuntu/faceswapwork/matt-hayden/faceswap/setup.py", line 24, in <module>
        setup_requires = [ "setuptools_git >= 1.2", ]
      File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.5/distutils/dist.py", line 973, in run_command
        cmd_obj.ensure_finalized()
      File "/usr/lib/python3.5/distutils/cmd.py", line 107, in ensure_finalized
        self.finalize_options()
      File "/home/ubuntu/.virtualenvs/cv/lib/python3.5/site-packages/setuptools/command/egg_info.py", line 175, in finalize_options
        self.egg_version = self.tagged_version()
      File "/home/ubuntu/.virtualenvs/cv/lib/python3.5/site-packages/setuptools/command/egg_info.py", line 265, in tagged_version
        return safe_version(version + self.vtags)
    TypeError: can't concat bytes to str
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/ubuntu/faceswapwork/matt-hayden/faceswap
@matt-hayden
Copy link
Owner

Looks like setuptools_git is giving me trouble. I'm seeing this in other packaging, too. I replaced setup.py and you should git pull inside faceswap/ and retry the installation steps.

Repository owner deleted a comment from H4wk-eye Feb 21, 2024
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