Re: ports that are outdated but cannot be upgraded.

2023-03-29 Thread Kenneth Wolcott
Not too bad.  The uninstall and install from source sequence completed
fairly quickly.

Thanks,
Ken

On Wed, Mar 29, 2023 at 10:12 AM Bill Cole
 wrote:
>
> On 2023-03-29 at 07:49:28 UTC-0400 (Wed, 29 Mar 2023 12:49:28 +0100)
> Christopher Jones 
> is rumored to have said:
>
> > Hio,
> >
> > Your problem is precisely what it says at the end
> >
> >> Error: Failed to configure libtorrent-rasterbar: boost176 must be
> >> installed with +python311.
> >
> > you will likely have it installed with a different python version
> > selected, and port respects this as your ‘choice’. You need to
> > uninstall boost176 and reinstall it with the new default variants.
>
> I agree 100%. Simple commands:
>
> port uninstall boost176
> port install boost176
>
> Beware: building Boost from source is painfully slow.
>
>
> --
> Bill Cole
> b...@scconsult.com or billc...@apache.org
> (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
> Not Currently Available For Hire


Re: ports that are outdated but cannot be upgraded.

2023-03-29 Thread Bill Cole

On 2023-03-29 at 07:49:28 UTC-0400 (Wed, 29 Mar 2023 12:49:28 +0100)
Christopher Jones 
is rumored to have said:


Hio,

Your problem is precisely what it says at the end


Error: Failed to configure libtorrent-rasterbar: boost176 must be
installed with +python311.


you will likely have it installed with a different python version 
selected, and port respects this as your ‘choice’. You need to 
uninstall boost176 and reinstall it with the new default variants.


I agree 100%. Simple commands:

port uninstall boost176
port install boost176

Beware: building Boost from source is painfully slow.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


Re: ports that are outdated but cannot be upgraded.

2023-03-29 Thread Christopher Jones


Hio,

Your problem is precisely what it says at the end

> Error: Failed to configure libtorrent-rasterbar: boost176 must be
> installed with +python311.

you will likely have it installed with a different python version selected, and 
port respects this as your ‘choice’. You need to uninstall boost176 and 
reinstall it with the new default variants.

Chris

> On 29 Mar 2023, at 4:26 am, Kenneth Wolcott  wrote:
> 
> Hi Bill;
> 
>  I ran selfupdate again.
> 
>  Then port outdated
> 
>  Then sudo port -v -s upgrade outdated
> 
>  Now I get the message:
> 
> --->  Scanning binaries for linking errors
> Could not open /opt/local/libexec/boost/1.76/lib/libboost_python311-mt.dylib:
> Error opening or reading file (referenced from
> /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/libtorrent.cpython-311-darwin.so)
> --->  Found 1 broken file, matching files to ports
> --->  Found 1 broken port, determining rebuild order
> You can always run 'port rev-upgrade' again to fix errors.
> The following ports will be rebuilt: libtorrent-rasterbar @2.0.8+python311
> Continue? [Y/n]: n
> ~: sudo port rev-upgrade
> --->  Scanning binaries for linking errors
> --->  Found 1 broken file, matching files to ports
> --->  Found 1 broken port, determining rebuild order
> You can always run 'port rev-upgrade' again to fix errors.
> The following ports will be rebuilt: libtorrent-rasterbar @2.0.8+python311
> Continue? [Y/n]: y
> --->  Computing dependencies for libtorrent-rasterbar
> --->  Cleaning libtorrent-rasterbar
> --->  Scanning binaries for linking errors
> --->  Found 1 broken file, matching files to ports
> --->  Found 1 broken port, determining rebuild order
> --->  Rebuilding in order
> libtorrent-rasterbar @2.0.8_1+python311
> --->  Computing dependencies for libtorrent-rasterbar
> --->  Fetching distfiles for libtorrent-rasterbar
> --->  Verifying checksums for libtorrent-rasterbar
> --->  Extracting libtorrent-rasterbar
> --->  Applying patches to libtorrent-rasterbar
> --->  Configuring libtorrent-rasterbar
> Error: Failed to configure libtorrent-rasterbar: boost176 must be
> installed with +python311.
> Error: See 
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_libtorrent-rasterbar/libtorrent-rasterbar/main.log
> for details.
> Error: rev-upgrade failed: Error rebuilding libtorrent-rasterbar
> Error: Follow https://guide.macports.org/#project.tickets if you
> believe there is a bug.
> 
> On Tue, Mar 28, 2023 at 12:48 PM Kenneth Wolcott
>  wrote:
>> 
>> Hi Bill;
>> 
>>  I've tried that, but the problem remains even if I do respond affirmatively.
>> 
>>  I think that there's a root problem here, but I just can't grasp
>> what it is precisely.
>> 
>> Thanks,
>> Ken
>> 
>> On Tue, Mar 28, 2023 at 12:41 PM Bill Cole
>>  wrote:
>>> 
>>> On 2023-03-28 at 15:03:48 UTC-0400 (Tue, 28 Mar 2023 12:03:48 -0700)
>>> Kenneth Wolcott 
>>> is rumored to have said:
>>> 
 HI;
 
  I ran a selfupdate successfully today.
 
 Then "sudo port -v -s upgrade outdated" seemed successful.
 
 But then:
 
 --->  Scanning binaries for linking errors
 Could not open
 /opt/local/libexec/boost/1.76/lib/libboost_python311-mt.dylib:
 Error opening or reading file (referenced from
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/libtorrent.cpython-311-darwin.so)
 --->  Found 1 broken file, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt: libtorrent-rasterbar
 @2.0.8+python311
 Continue? [Y/n]: n
 ~: port diagnose
 [nothing returned]
 port outdated
 No installed ports are outdated.
 
 So, this still seems less than ideal.
>>> 
>>> It seems to me that the right answer to rev-upgrade's "Continue?" prompt
>>> should always be "y" but I could be wrong.
>>> 
>>> --
>>> Bill Cole
>>> b...@scconsult.com or billc...@apache.org
>>> (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
>>> Not Currently Available For Hire



ipython Problem (suspected python select or vt100)

2023-03-29 Thread Eckard Brauer

I'm on MacOSX 10.5 Tiger, PPC architecture.

Ipython (3.11.2 currently but already had the same with earlier
verions of atleast 3.10 and 3.11) installs fine. But trying to use it
(without any further args, just as command shell) bombs (see below).
Piping into or redirecting input works fine.

Putting  a debug print  statement to the bottom function, it shows up
that it's on the 3rd call of selectors.KqueueSelector.register(),

Is that either a known problem or could any kind person provide some
helpful hints to solve that?

Thanks in advance,
Eckard


- snip! -
...
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/site-packages/prompt_toolkit/application/
application.py", line 737, in _run_async
with self.input.raw_mode(), self.input.attach(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
   ^^
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/site-packages/prompt_toolkit/input/vt100.py", line 176,
in _attached_input
loop.add_reader(fd, callback_wrapper)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/asyncio/selector_events.py", line 340, in add_reader
self._add_reader(fd, callback, *args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/asyncio/selector_events.py", line 267, in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/selectors.py", line 522, in register
self._selector.control([kev], 0, 0)
OSError: [Errno 45] Operation not supported

If you suspect this is an IPython 8.8.0 bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-...@python.org

You can print a more detailed traceback right now with "%tb", or use
"%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True
- snipsnap! -
*** DEBUG: KqueueSelector.register(self, fileobj, events, data) =
(, 0, 1, (.callback_wrapper() at /opt/local/Library/
Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/
prompt_toolkit/input/vt100.py:165>, None))
- snap! -