Hi Morag, Adam,
I would like to give you an update on my toolflow configuration. As Morag
suggested, the errors message I posted in my previous email are not problems
for the toolflow configuration. I finished all the configuration following the
steps in the instruction, now I can start up the Matlab from executing the
`startsg` file.
I am going through the tutorial for SNAP. I will get back to you if I have
further questions.
Thanks for helping!
*********************************************
Xin Cui
Electronic Support Team
Addr: McGill University, Department of Physics
3600 University Street
Rutherford Physics Building
Montreal Quebec
H3A 2T8
Office: Room 228
Tel: (514) 398-7025
*********************************************
From: Xin Cui
Sent: March 26, 2021 10:32 AM
To: [email protected]
Subject: RE: [casper] Failed to install `virtualenv`
Hi Morag,
Thanks for your detailed explanation. It is very informative and helpful. In
that case, I think I will move forward with the toolflow configuration. I will
get back to you if I have other questions.
Thanks again!
*********************************************
Xin Cui
Electronic Support Team
Addr: McGill University, Department of Physics
3600 University Street
Rutherford Physics Building
Montreal Quebec
H3A 2T8
Office: Room 228
Tel: (514) 398-7025
*********************************************
From: Morag Brown
Sent: March 26, 2021 10:23 AM
To: [email protected]
Subject: Re: [casper] Failed to install `virtualenv`
Hi Xin,
> However, the last line mentioned that some packages installed successfully.
>Should I care about the error messages?
I think you can disregard those messages (but someone please correct me if I'm
wrong). As far as I know, a wheel is a ready to install package distribution
that makes installation easier/faster. I think if pip can't build a wheel for a
package, it then reverts to installing it directly, and it seems those direct
installs were successful.
> So, should I install a python3 under virtual environment, or run `sudo pip3
>install`?
So a virtual environment is a local python environment that is isolated from
your operating system's python version. The idea is that you can install
specific dependencies/packages in the virtual environment without affecting
anything in the system python version. If you create a python 3 virtual
environment, then python 3 will be installed in that environment by default. If
you activate the virtual environment and just run "pip3 install <package>", the
package will install in your virtual environment. If you run "sudo pip3
install" even if you've activated your virtual environment, the package will be
installed in your system's python version.
So if you're using a virtual environment, don't use sudo or the packages won't
be installed in your virtual env.
Hope this helps!
Morag
On Fri, Mar 26, 2021 at 4:03 PM Xin Cui <[email protected]> wrote:
Hi Morag,
Thanks a lot for your feedback. I can move forward after doing your suggested
commands. But I got the following error message after running `pip3 install -r
requirements.txt`:
However, the last line mentioned that some packages installed successfully.
Should I care about the error messages?
>From the instruction, it reads that if the python3 is installed in system
>environment, I need to run `pip3 install` as administrator. As I mentioned, I
>installed the python3 by using `sudo`, so I think the python3 should have been
>installed in the system, but not the virtual environment. So, should I install
>a python3 under virtual environment, or run `sudo pip3 install`?
From: Morag Brown <[email protected]>
Sent: March 26, 2021 2:05 AM
To: [email protected] <[email protected]>
Subject: Re: [casper] Failed to install `virtualenv`
Hi Xin,
Using virtualenv no longer works - people smarter and more knowledgeable than I
way know why.
As an alternative, you can use "python3 -m venv" to create a virtual
environment. Sourcing the venv is the same (source /path/to/venv/bin/activate),
and then install the requirements.txt file within the venv as per the rest of
the instructions
Will update the docs to reflect this new method when I get a chance. Sorry for
the frustration!
Morag
On Fri, 26 Mar 2021, 04:03 Xin Cui, <[email protected]> wrote:
Hello,
I am trying to set up working environment to run SNAP. According to the
instruction, I finished the installation of Matlab and Vivado on Ubuntu16.04.
Now I am trying to create Python3 virtual environment. I failed to install the
virtual environment by running `sudo pip3 install virtualenv`, I got the
following error message:
There is only one command I ran differently from the instruction:
`apt-get install python3 python3-pip`
I used `sudo` when I ran this command. I am not sure if it matters.
Do you have any suggestions to fix the problem?
Thanks,
*********************************************
Xin Cui
Electronic Support Team
Addr: McGill University, Department of Physics
3600 University Street
Rutherford Physics Building
Montreal Quebec
H3A 2T8
Office: Room 228
Tel: (514) 398-7025
*********************************************
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/YTXPR0101MB18545EF9E2BFD2601E04CF63CA619%40YTXPR0101MB1854.CANPRD01.PROD.OUTLOOK.COM.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGH-0Teu4b3G6uumK2Gz8Mo3QxzPsToPnrc8MfDunXCQBqzeDg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/YTXPR0101MB18544D8D0CAAF13673B60B4DCA619%40YTXPR0101MB1854.CANPRD01.PROD.OUTLOOK.COM.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGH-0TehuyPQKHbatRN2GunDAtPjzNMY0JHViwtnj3gwyMf12A%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/YTXPR0101MB1854250E2C8EC094F0445E98CA619%40YTXPR0101MB1854.CANPRD01.PROD.OUTLOOK.COM.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/YTXPR0101MB18542AB0989CD1628B5C62FECA7D9%40YTXPR0101MB1854.CANPRD01.PROD.OUTLOOK.COM.