Closed davidmontgom closed 11 years ago
@elsigh there's something I don't understand that's going on here related to 3dab0b5fee06d61f745cd7f75746d41caa1e2efd.
@davidmontgom Can you give me a little more info about how your workserServer layout is?
i.e. for me: 522 ~/src/ua-parser/py (elsigh) $ python Python 2.7.1 (r271:86832, Jun 25 2011, 05:09:01) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information.
from ua_parser import user_agent_parser
aka no error
I'm getting a similar error with @davidmontgom
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ua_parser import user_agent_parser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/selwin/.virtualenvs/test/src/ua-parser/py/ua_parser/user_agent_parser.py", line 399, in <module>
yamlFile = open(yamlPath)
IOError: [Errno 2] No such file or directory: '/Users/selwin/.virtualenvs/test/src/ua-parser/py/ua_parser/../regexes.yaml'
I tried installing both the latest commit and latest stable release using pip
with the commands:
pip install -e git://github.com/tobie/ua-parser.git@v0.2.4#egg=ua-parser
pip install -e git://github.com/tobie/ua-parser.git#egg=ua-parser
Traceback (most recent call last): File "/home/ubuntu/workspace/rtbopsConfig/rtbServers/rtbWorkerServer/workerServer.py", line 29, in
from ua_parser import user_agent_parser
File "/usr/local/lib/python2.7/dist-packages/ua_parser-1.0-py2.7.egg/ua_parser/user_agent_parser.py", line 395, in
yamlFile = open(os.path.join(ROOT_DIR, '../../regexes.yaml'))
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/ua_parser-1.0-py2.7.egg/ua_parser/../../regexes.yaml'