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

Skip to content

Improve uap-python installation instructions #14

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
Winterflower opened this issue Aug 28, 2015 · 5 comments
Closed

Improve uap-python installation instructions #14

Winterflower opened this issue Aug 28, 2015 · 5 comments

Comments

@Winterflower
Copy link

  1. On Mac OS X Yosemite
    make Makefile
    produces
    make: Nothing to be done for Makefile'.`
  2. Running
    python setup.py install
    seems to work, but importing the module fails with the error
>>> from ua_parser import user_agent_parser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ua_parser/user_agent_parser.py", line 460, in <module>
    yamlFile = open(yamlPath)
IOError: [Errno 2] No such file or directory: 'ua_parser/regexes.yaml'
@pstrinkle
Copy link

This isn't a solution, but on ubuntu this is what I needed to do to get it past that:

sudo pip uninstall pyyaml
sudo apt-get install libyaml-0.2 libyaml-dev libpython2.7-dev
sudo pip install pyyaml ua-parser user-agents

@Winterflower
Copy link
Author

@pstrinkle thank you for the suggestion. I'll try to see if I can hack something similar together on Yosemite.

selwin pushed a commit to selwin/uap-python that referenced this issue Oct 14, 2015
…move

Revert "move Netfront to prevous place"
@mbarkhau
Copy link
Contributor

Maybe it would be better if the distributed versions didn't require pyyaml. Why not just do a conversion to json when doing sdist and bdist_wheel?

I for one cannot get 0.5.0 installed from pypi, despite using a fresh virtualenv, and installing all the apt libraries mentioned above by pstrinkle.

@chrisbarry
Copy link

I'm also having the same trouble on osx..

@elsigh
Copy link
Contributor

elsigh commented Oct 15, 2015

This should just be a PR not an issue. Closing - if someone wants to make a PR with more instructions that work that's cool with me.

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

5 participants