Closed DrewTittle closed 5 years ago
I'm running this from an AWS EC2 Server which has a default .bashrc with:
alias python=python27
I created a virtualenv like this:
virtualenv venv --python=python27
If I look in the venv/bin folder I see a symlink for python2.7 and python2 but not one for python27. So that alias in the .bashrc was aliasing python to python27 which only existed under /usr/bin not in my venv. I assumed since python27 exists in the usr/bin folder it would get copied to the venv but it does not.
I'm used to changing that alias to python3 right away so I hadn't noticed this before.
What I still don't quite understand is why other packages like requests still seem to import normally when I ran python using the python27 alias and only pyas2 failed!
This works though, I can either change the alias to python2 or add a symlink from python27 to python in my venv/bin folder.
I'm following the directions here:
https://pyas2.readthedocs.io/en/latest/installation.html
I'm on an Amazon Linux EC2 system. I am trying to run the pip install command in my activated python 2.7 virtualenv:
Then I activate the env and install with pip:
I can see it successfully install pyas2, django and m2crypto but when I open the python shell and try an import of pyas2 I get:
following the steps in the installation doc I can create the django project but when I try to run the manage.py migrate command I get the following error:
Unwilling to be beaten I tried downloading the package from pypi and running the setup.py in the download:
https://pypi.org/project/pyAS2/#files
if I run it with the setup.py install --user command it seems to install successfully and I'm able to import pyas2 in the python shell.
I'm also able to continue the setup process and the python manage.py migrate command runs as you'd expect.
I'm ok with this for the time being but I'm curious about why the pip install doesn't work. I'm not sure where the import issue is but I'll research more and see if I can find a fix. If someone else can think of another fix to allow me to install with pip so I can put this in my virtualenv I'd appreciate the help.
If it's something obvious I'm missing I'd be happy to update the documentation with details to get around it.
Thanks for this package by the way! I'm thrilled to start using it.