Re: Xterm scrolling very slow

2020-05-01 Thread Dave Allured - NOAA Affiliate via macports-users
Christoph, consider using Apple Terminal (in Utilities), rather than
Xterm.  This does not directly answer your question, but it was definitely
an improvement for me.  After I started using Mac OS a long time ago, I
discovered Apple Terminal as an alternative to Xterm.  As a native Apple
application, this freed me from a variety of idiosyncrasies with
Xterm's dependence on X11.  I never looked back.  The only drawback was
awkwardness with cut and paste between this and my X11-based text editor.
I got used to it.

I do not have Catalina yet, so I can not test your reported problem.
Perhaps someone else can say more about this Xterm problem in Catalina.  I
would also suggest bringing your question to an XQuartz or X11 support
forum.


On Thu, Apr 30, 2020 at 12:49 PM Christoph Kukulies 
wrote:

> I fired up X11 on my MacbookPro Catalina 10.15.4 and ran a Terminal
> (xterm).
>
> Scrolling looks funny and very slow. Is this a graphic card thing (BLT
> accelerator ?)
>
> —
> Christoph
>


Re: Python 3.8.2 - Macports configuration problem

2020-05-01 Thread Noam Bernstein via macports-users
> On May 1, 2020, at 8:14 AM, Christopher Jones  
> wrote:
> 
> As an end user you should not use pip, any version of it, to install packages 
> directly into the MacPorts prefix. period.
> 
> As previously noted, you can though use it for instance inside a virtual env. 
> that is just fine.
> 
> ( Also, the macports pip package is also there to help certain macports ports 
> internally on how they build themselves, and install into the macports 
> prefix. )


If you don't want to mess around with virtual envs, you can simply "pip install 
--user", which writes to ~/Library/Python/  You do need to add
 ~/Library/Python/3.8/bin
(assuming python 3.8) to your PATH, but the corresponding python module path is 
automagically used by python.  I typically either use macports to install the 
macport-ified python package, or pip as above.

Noam



Re: Python 3.8.2 - Macports configuration problem

2020-05-01 Thread Max Anglad


> On 1 May 2020 at 10:28, Christopher Jones  wrote :
> 
>> On 1 May 2020, at 9:17 am, Dr M J Carter  
>> wrote:
>> 
>> On Thu, Apr 30, 2020 at 11:13:45PM +0200, Max Anglad wrote:
>> 
>>> Note that pip (python package installer) must apparently be used via
>>> sudo if you want the packages to be installed in the right place
>>> (/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages)
>> 
>> That'll break Python and/or MacPorts: consider if one of the Python
>> packages in MacPorts gets updated, or if you happen to later install a
>> MacPorts port which pulls in a Python package which conflicts with one
>> you've hand-installed.  

Ok, I understand,  and I didn't realize that most of the Python packages had 
also been "Macported".

(Note that I only use standard Python packages like matplotlib, scipy, pandas, 
jupyter,...)

But I see that there is however a port of the pip installer : 
https://ports.macports.org/port/py38-pip/summary

Do you also advise against using it ? Does it not install Macported Python 
packages in the right place ?

I find that documentation is missing on the correct way to use Python and its 
packages via Macports, or I did not find it


> I completely second the above. Do not use pip to install into the MacPorts 
> prefix, you will run into a lot of problems doing this.
> 
> In addition to the virtual env. approach, also note macports has its own 
> ports for most of the commonly used python packages. Just run port search 
> py38-
> 
> to list them. Its quite probable that all you need is available in macports 
> already.
> 
> Chris

Ok, but these Macported packages I install them with py38-pip (python3 -m pip 
install ) 
or conventionally with : sudo port install  ?


>> Apologies if I come across as strident: I've seen the same mistakes
>> being made by postgrads for entirely too long, and this bear trap in
>> particular seems to claim more of them than most.  Good luck in your
>> Python endeavours.

In software development I have a long experience in C/C++ and shells under 
Unix, but I am still a beginner in Python and its mechanisms

Thank you all for your valuable advice.

Re: Python 3.8.2 - Macports configuration problem

2020-05-01 Thread Dr M J Carter
On Thu, Apr 30, 2020 at 11:13:45PM +0200, Max Anglad wrote:

> Note that pip (python package installer) must apparently be used via
> sudo if you want the packages to be installed in the right place
> (/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages)

That'll break Python and/or MacPorts: consider if one of the Python
packages in MacPorts gets updated, or if you happen to later install a
MacPorts port which pulls in a Python package which conflicts with one
you've hand-installed.  There's better ways to layer your own packages
on top of a Python installation without using sudo, of which setting
up a virtual Python under your home directory is the newest and most
highly recommended.  A web search for "virtual python" should be most
fruitful.

Apologies if I come across as strident: I've seen the same mistakes
being made by postgrads for entirely too long, and this bear trap in
particular seems to claim more of them than most.  Good luck in your
Python endeavours.

-- 
Dr Martin J Carter
Computer System Administrator (WFH)
Astrophysics, University of Oxford