Closed lidiamcfreitas closed 8 years ago
Are you running the command inside a virtual environment?
No, I'm running it on the OSX terminal
On Monday, February 23, 2015, Samuel Coelho notifications@github.com wrote:
Are you running the command inside a virtual environment?
— Reply to this email directly or view it on GitHub https://github.com/FenixEdu/fenixedu-python-sdk/issues/15#issuecomment-75613366 .
Lídia Freitas
@lidiamcfreitas What he means is if you are running pip inside a virtualenv . If you are running without a virtualenv, you need to run it with sudo:
$ sudo pip install fenixedu
With virtualenv:
$ virtualenv project-env
$ cd project-env
$ source bin/activate
$ pip install fenixedu
I strongly, strongly advise you to use virtualenv, mainly if you are new to python.
I've installed fenixedu, but when I import it, it doesn't seem to recognize it. ImportError: No module named 'fenixedu'
what am I doing wrong?
Welcome back @lidiamcfreitas.
Did you use the steps I've mentioned before?
yes, it's weird
I've just ran the steps and it worked. Can you share a similar log, please?
[nurv@lucy ~]: virtualenv project-env
New python executable in project-env/bin/python
Installing setuptools, pip...done.
[nurv@lucy ~]: cd project-env
[nurv@lucy ~/project-env]: source bin/activate
[nurv@lucy ~/project-env ⚡ project-env]: pip install fenixedu
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting fenixedu
Downloading fenixedu-1.0.0.tar.gz
Collecting requests (from fenixedu)
Using cached requests-2.7.0-py2.py3-none-any.whl
Installing collected packages: requests, fenixedu
Running setup.py install for fenixedu
Successfully installed fenixedu-1.0.0 requests-2.7.0
[nurv@lucy ~/project-env ⚡ project-env]: python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fenixedu
>>>
ok, it's working if I run it on terminal. I was using and IDE and it wasn't working there, but that mustn't be a problem. Thanks!
podem-me só dizer o que é que significam os parâmetros
client_id=
que é para alterar?
@lidiamcfreitas If you don't know what those parameters are, it seems you aren't familiarised with OAuth2 or our API Authorization. Fret not, you will find all information here.
thanks, once again