Python conflict on RPI2

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Python conflict on RPI2

bob prohaska
In tinkering with compiling firefox on an RPI2 attempts to use
portmaster fail with

===>   Registering installation for py36-setuptools-40.8.0_1
Installing py36-setuptools-40.8.0_1...
pkg-static: py36-setuptools-40.8.0_1 conflicts with py27-setuptools-40.8.0 (installs files into the same place).  Problematic file: /usr/local/bin/easy_install
*** Error code 70

I've tried things like deleting the problematic file, and compiling python36
separately, to  no effect. What else is worth trying?  

Thanks for reading,

bob prohaska

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Steve Kargl
On Fri, Apr 12, 2019 at 06:45:41PM -0700, bob prohaska wrote:

> In tinkering with compiling firefox on an RPI2 attempts to use
> portmaster fail with
>
> ===>   Registering installation for py36-setuptools-40.8.0_1
> Installing py36-setuptools-40.8.0_1...
> pkg-static: py36-setuptools-40.8.0_1 conflicts with py27-setuptools-40.8.0 (installs files into the same place).  Problematic file: /usr/local/bin/easy_install
> *** Error code 70
>
> I've tried things like deleting the problematic file, and compiling python36
> separately, to  no effect. What else is worth trying?  
>
> Thanks for reading,
>
> bob prohaska
>

pkg info | grep py > py.txt
pkg delete -f py27-setuptools-40.8.0
install 3.6
re-install python27


--
Steve
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Tatsuki Makino
Steve Kargl wrote on 2019/04/13 10:49:

> On Fri, Apr 12, 2019 at 06:45:41PM -0700, bob prohaska wrote:
>> In tinkering with compiling firefox on an RPI2 attempts to use
>> portmaster fail with
>>
>> ===>   Registering installation for py36-setuptools-40.8.0_1
>> Installing py36-setuptools-40.8.0_1...
>> pkg-static: py36-setuptools-40.8.0_1 conflicts with py27-setuptools-40.8.0 (installs files into the same place).  Problematic file: /usr/local/bin/easy_install
>> *** Error code 70
>>
>> I've tried things like deleting the problematic file, and compiling python36
>> separately, to  no effect. What else is worth trying?  
>>
>> Thanks for reading,
>>
>> bob prohaska
>>
>
> pkg info | grep py > py.txt
> pkg delete -f py27-setuptools-40.8.0
> install 3.6
> re-install python27
>
>

py27-cython and py27-sphinx are also cause.
Probably, pkg query -e %\#r\ =\ 0 -g %n py27-\* ports/packages can be
deleted in advance.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Jan Beich-5
In reply to this post by bob prohaska
bob prohaska <[hidden email]> writes:

> In tinkering with compiling firefox on an RPI2 attempts to use
> portmaster fail with
>
> ===>   Registering installation for py36-setuptools-40.8.0_1
> Installing py36-setuptools-40.8.0_1...
> pkg-static: py36-setuptools-40.8.0_1 conflicts with
> py27-setuptools-40.8.0 (installs files into the same place).
> Problematic file: /usr/local/bin/easy_install
> *** Error code 70

Reinstall py27-setuptools first. When PYTHON_DEFAULT is changed it
requires rebuilding USE_PYTHON=concurrent (or USES=uniquefiles)
consumers in order to make symlinks point to the new default.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

bob prohaska
In reply to this post by Steve Kargl
On Fri, Apr 12, 2019 at 06:49:40PM -0700, Steve Kargl wrote:
>
> pkg info | grep py > py.txt
> pkg delete -f py27-setuptools-40.8.0
> install 3.6
> re-install python27

Looks like that's working. I'm still baffled where the
py27-setuptools-40.8.0 came from. And, it seems there're
a few other py27-related packages that'll have to be
deleted manually.

Thank you very much!

bob prohaska
 
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

bob prohaska
In reply to this post by Jan Beich-5
On Sat, Apr 13, 2019 at 04:09:13AM +0200, Jan Beich wrote:

> bob prohaska <[hidden email]> writes:
>
> > In tinkering with compiling firefox on an RPI2 attempts to use
> > portmaster fail with
> >
> > ===>   Registering installation for py36-setuptools-40.8.0_1
> > Installing py36-setuptools-40.8.0_1...
> > pkg-static: py36-setuptools-40.8.0_1 conflicts with
> > py27-setuptools-40.8.0 (installs files into the same place).
> > Problematic file: /usr/local/bin/easy_install
> > *** Error code 70
>
> Reinstall py27-setuptools first. When PYTHON_DEFAULT is changed it
> requires rebuilding USE_PYTHON=concurrent (or USES=uniquefiles)
> consumers in order to make symlinks point to the new default.

Is there any hope of simply replacing python27 with python36? The
goal at hand is merely to compile a working version of firefox.

Thanks for your help!

bob prohaska

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

bob prohaska
In reply to this post by Tatsuki Makino
On Sat, Apr 13, 2019 at 02:07:28AM +0000, Tatsuki Makino wrote:

> Steve Kargl wrote on 2019/04/13 10:49:
> >
> > pkg info | grep py > py.txt
> > pkg delete -f py27-setuptools-40.8.0
> > install 3.6
> > re-install python27
> >
> >
>
> py27-cython and py27-sphinx are also cause.
> Probably, pkg query -e %\#r\ =\ 0 -g %n py27-\* ports/packages can be
> deleted in advance.
>

Indeed, there's quite a bit of stale material to remove. I tried
pkg delete -f py27-\* and it offered to remove many py27-* packages
and a few that didn't match by name. Since I can afford to break
things on this host I accepted the offer and await the outcome
with interest.

I'm still rather baffled as to what's going on. One of the first things
tried was to deinstall python27, expecting the removal of all traces
that might conflict with installing python36. Clearly that didn't happen.

Have I got something misconfigured? Or, is this expected behavior for ports?

Thanks for writing!

bob prohaska

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Steve Kargl
In reply to this post by bob prohaska
On Fri, Apr 12, 2019 at 09:47:54PM -0700, bob prohaska wrote:
>
> Is there any hope of simply replacing python27 with python36? The
> goal at hand is merely to compile a working version of firefox.
>

In general, no.  Python 2.7 and 3.6 are incompatible.

--
Steve
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Jan Beich-5
In reply to this post by bob prohaska
bob prohaska <[hidden email]> writes:

> On Sat, Apr 13, 2019 at 04:09:13AM +0200, Jan Beich wrote:
>
>> bob prohaska <[hidden email]> writes:
>>
>> > In tinkering with compiling firefox on an RPI2 attempts to use
>> > portmaster fail with
>> >
>> > ===>   Registering installation for py36-setuptools-40.8.0_1
>> > Installing py36-setuptools-40.8.0_1...
>> > pkg-static: py36-setuptools-40.8.0_1 conflicts with
>> > py27-setuptools-40.8.0 (installs files into the same place).
>> > Problematic file: /usr/local/bin/easy_install
>> > *** Error code 70
>>
>> Reinstall py27-setuptools first. When PYTHON_DEFAULT is changed it
>> requires rebuilding USE_PYTHON=concurrent (or USES=uniquefiles)
>> consumers in order to make symlinks point to the new default.
>
> Is there any hope of simply replacing python27 with python36?

www/firefox requires both and will do so for years in future because
"there isn't a compelling reason to port code that isn't being actively updated."
https://www.mail-archive.com/dev-platform@.../msg24187.html

> The goal at hand is merely to compile a working version of firefox.

If you need handholding use poudriere. Most ports/ committers and the
package cluster uses that, so any bustage uncovered is usually a bug.

poudriere builds in a pristine environment, so the above conflict
wouldn't happen. After r498530 easy_install symlink would be moved from
py27-setuptools to py36-setuptools package.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Kubilay Kocak
In reply to this post by Jan Beich-5
On 13/04/2019 12:09 pm, Jan Beich wrote:

> bob prohaska <[hidden email]> writes:
>
>> In tinkering with compiling firefox on an RPI2 attempts to use
>> portmaster fail with
>>
>> ===>   Registering installation for py36-setuptools-40.8.0_1
>> Installing py36-setuptools-40.8.0_1...
>> pkg-static: py36-setuptools-40.8.0_1 conflicts with
>> py27-setuptools-40.8.0 (installs files into the same place).
>> Problematic file: /usr/local/bin/easy_install
>> *** Error code 70
>
> Reinstall py27-setuptools first. When PYTHON_DEFAULT is changed it
> requires rebuilding USE_PYTHON=concurrent (or USES=uniquefiles)
> consumers in order to make symlinks point to the new default.

As an additional followup to Jans comment, see the original bugzilla report:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226634

comment 10 onward
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Python conflict on RPI2

Tatsuki Makino
In reply to this post by Tatsuki Makino
correction

Tatsuki Makino wrote on 2019/04/13 11:07:
>
> py27-cython and py27-sphinx are also cause.
> Probably, pkg query -e %\#r\ =\ 0 -g %n py27-\* ports/packages can be
> deleted in advance.
>

pkg query -e %n\ ~\ py27-\*\ \&\&\ %\#r\ =\ 0 %n

The previous mail command dredges all py27-* :)
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"