Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fails to build in virtualenv #31

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

Closed
ColtonProvias opened this issue Oct 17, 2015 · 19 comments
Closed

Fails to build in virtualenv #31

ColtonProvias opened this issue Oct 17, 2015 · 19 comments

Comments

@ColtonProvias
Copy link

Attempting to install ua-parser-0.5 on Python 3.5.0 on Mac OS X 10.11.1 and getting the following error:

(MyNewLeaf)MyNewLeaf|store-admin⚡ ⇒ pip install --upgrade ua-parser
Collecting ua-parser
  Using cached ua-parser-0.5.0.tar.gz
Requirement already up-to-date: pyyaml in ./lib/python3.5/site-packages (from ua-parser)
Building wheels for collected packages: ua-parser
  Running setup.py bdist_wheel for ua-parser
  Complete output from command /Users/coltonprovias/Development/MyNewLeaf/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/tmpe4yexrdlpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/ua_parser
  copying ./ua_parser/__init__.py -> build/lib/ua_parser
  copying ./ua_parser/user_agent_parser.py -> build/lib/ua_parser
  copying ./ua_parser/user_agent_parser_test.py -> build/lib/ua_parser
  running egg_info
  writing dependency_links to ua_parser.egg-info/dependency_links.txt
  writing top-level names to ua_parser.egg-info/top_level.txt
  writing requirements to ua_parser.egg-info/requires.txt
  writing ua_parser.egg-info/PKG-INFO
  warning: manifest_maker: standard file '-c' not found

  reading manifest file 'ua_parser.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'ua_parser.egg-info/SOURCES.txt'
  copying ./ua_parser/regexes.yaml -> build/lib/ua_parser
  copying ./ua_parser/regexes.json -> build/lib/ua_parser
  installing to build/bdist.macosx-10.11-x86_64/wheel
  running install
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py", line 83, in <module>
      'Programming Language :: Python :: Implementation :: PyPy',
    File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/Users/coltonprovias/Development/MyNewLeaf/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 211, in run
      self.run_command('install')
    File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py", line 43, in run
      install_regexes()
    File "/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py", line 16, in install_regexes
      'Unable to find regexes.yaml, should be at %r' % yaml_src)
  RuntimeError: Unable to find regexes.yaml, should be at '/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/uap-core/regexes.yaml'
  Copying regexes.yaml to package directory...

  ----------------------------------------
  Failed building wheel for ua-parser
Failed to build ua-parser
Installing collected packages: ua-parser
  Found existing installation: ua-parser 0.4.1
    Uninstalling ua-parser-0.4.1:
      Successfully uninstalled ua-parser-0.4.1
  Running setup.py install for ua-parser
    Complete output from command /Users/coltonprovias/Development/MyNewLeaf/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-m56ggvi8-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/coltonprovias/Development/MyNewLeaf/bin/../include/site/python3.5/ua-parser:
    running install
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py", line 83, in <module>
        'Programming Language :: Python :: Implementation :: PyPy',
      File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py", line 43, in run
        install_regexes()
      File "/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py", line 16, in install_regexes
        'Unable to find regexes.yaml, should be at %r' % yaml_src)
    RuntimeError: Unable to find regexes.yaml, should be at '/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/uap-core/regexes.yaml'
    Copying regexes.yaml to package directory...

    ----------------------------------------
  Rolling back uninstall of ua-parser
Command "/Users/coltonprovias/Development/MyNewLeaf/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-m56ggvi8-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/coltonprovias/Development/MyNewLeaf/bin/../include/site/python3.5/ua-parser" failed with error code 1 in /private/var/folders/zl/0vgdj8l96ss0_w20j9k0t7bm0000gn/T/pip-build-x3p3uu52/ua-parser
@beruic
Copy link

beruic commented Oct 19, 2015

I get the same error on Windows: Unable to find regexes.yaml

@jacobsvante
Copy link

Same problem here.

@kr41
Copy link

kr41 commented Oct 21, 2015

This 7f2e72f fixes the issue, but why it has not been released on PyPI yet?

@dsimandl
Copy link

Yup same here. Would love to get this on PyPI as soon as possible

@elsigh
Copy link
Contributor

elsigh commented Oct 21, 2015

I don't know if anyone is super actively deploying to pypi these days for the repo. If so, my bad, but if not.. I've seen a few issues around python distribution over the last two months and would love for someone to step up and own that.

@kr41
Copy link

kr41 commented Oct 22, 2015

@elsigh could you open tickets for the issues you've seen? I'll try to solve them and send pull requests.

@dsimandl
Copy link

If sdist is working then setup,py upload to PyPI should just work yes? (Sorry I don't a lot of experience uploading projects to PyPI)

@mattrobenolt
Copy link
Member

@elsigh I wouldn't mind helping out here a bit. Let me know.

@nass600
Copy link

nass600 commented Nov 3, 2015

Any news?

@ghost
Copy link

ghost commented Nov 3, 2015

any news guys?

@elsigh
Copy link
Contributor

elsigh commented Nov 3, 2015

I think the issue is that I don't know how to push to pypi and I'm not using uap-python in production, so I have no interest in doing so - and there's not really anyone who's on it who wants to actively do so for the project.

@mattrobenolt
Copy link
Member

@elsigh I've volunteered. :)

@elsigh
Copy link
Contributor

elsigh commented Nov 3, 2015

Ok! I'll add you as a committer and thank you!!!

@elsigh elsigh closed this as completed Nov 3, 2015
@mattrobenolt
Copy link
Member

@elsigh Could you add me to pypi as well plz? :)

I can get this sorted out this week.

@elsigh
Copy link
Contributor

elsigh commented Nov 3, 2015

@mattrobenolt I have no idea how to do that, can you tell me? I don't have a pypi account or "own" our pypi build or anything (at least I don't believe I do!)

@mattrobenolt
Copy link
Member

It appears that @selwin is the package owner on pypi.

@nass600
Copy link

nass600 commented Nov 10, 2015

Any update on this guys?

@mattrobenolt
Copy link
Member

I still don't have access to upload a new version. 😭

/cc @selwin

@selwin
Copy link
Contributor

selwin commented Nov 11, 2015

Sorry for the late reply. Version 0.5.1 is now up on PyPI. Also submitted a PR to bump up the version number to 0.5.1 here: #36

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

9 participants