Strider-CD / strider-python

Python/Pyramid/Django support for Strider Continuous Deployment
6 stars 9 forks source link

virtualenv.py fails #7

Closed pzhine closed 9 years ago

pzhine commented 10 years ago

When I run a test, I get this result during the environment phase.

# Config merged from strider.json
$ virtualenv.py /strider/builds/.venv python 135ms
Please use the *system* python to run this script
Traceback (most recent call last):
  File "/usr/lib/node_modules/strider/node_modules/strider-python/thirdparty/virtualenv.py", line 2471, in <module>
    main()
  File "/usr/lib/node_modules/strider/node_modules/strider-python/thirdparty/virtualenv.py", line 942, in main
    never_download=options.never_download)
  File "/usr/lib/node_modules/strider/node_modules/strider-python/thirdparty/virtualenv.py", line 1043, in create_environment
    site_packages=site_packages, clear=clear))
  File "/strider/builds/.venv/lib/python2.7/posixpath.py", line 343, in abspath
    if not isabs(path):
  File "/strider/builds/.venv/lib/python2.7/posixpath.py", line 53, in isabs
    return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'
bogdal commented 10 years ago

I had a similar issue. Usage the package from the system solved the problem #6

niallo commented 10 years ago

Please try HEAD of strider-python.

AlecTaylor commented 10 years ago

Fixed this issue on my system with sudo ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/, upgrading virtualenv using pip; and removing the .venv folder.

knownasilya commented 9 years ago

Closing since this seems like a python issue. If otherwise, please reopen or comment.