[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Cannot create /usr/lib/python3/dist-packages/PyQt5/QtCore.so for output
From:       Barry <barry () barrys-emacs ! org>
Date:       2019-03-26 7:50:20
Message-ID: E69EBAD7-335E-470C-9BD1-9B6590DFDA62 () barrys-emacs ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Are you running install as root, via sudo for example?

Barry

> On 26 Mar 2019, at 05:59, Nobody <jiapei@longervision.com> wrote:
> 
> 
> Hi, all:
> 
> 
> 
> After successfully downloaded and built PyQt5, I'm trying to install PyQt5_gpl with \
> the command make install, but meet the following ERROR messages: 
> 
> 
> /opt/Qt/Current/gcc_64/bin/qmake -install qinstall -exe \
> ....../PyQt5_gpl-5.12.1/PyQt5.api /opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api \
> Error copying ....../PyQt5_gpl-5.12.1/PyQt5.api to \
> /opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api: Cannot create \
> /opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api for output Makefile:4266: recipe \
>                 for target 'install_qscintilla_api' failed
> make: [install_qscintilla_api] Error 3 (ignored)
> /usr/bin/python ....../PyQt5_gpl-5.12.1/mk_distinfo.py "" \
> /usr/lib/python3/dist-packages/PyQt5-5.12.1.dist-info installed.txt Traceback (most \
> recent call last): File "....../PyQt5_gpl-5.12.1/mk_distinfo.py", line 108, in \
> <module> fn_f = open(fn, 'rb')
> FileNotFoundError: [Errno 2] No such file or directory: \
> '/usr/lib/python3/dist-packages/PyQt5/QtCore.so' Makefile:4275: recipe for target \
>                 'install_distinfo' failed
> make: *** [install_distinfo] Error 1
> 
> ****  Installation failed. Aborting package creation.
> 
> Restoring overwritten files from backup... FAILED!
> 
> Cleaning up...OK
> 
> Bye.
> 
> 
> 
> I actually have Qt installed under /opt/Qt:
> 
> 
> 
> ➜  python ls
> ➜  python pwd
> /opt/Qt/Current/gcc_64/qsci/api/python
> 
> 
> 
> I wonder if it has something to do with PYTHONPATH ? 
> 
> Most of my Python packages are installed via pip under \
> ~/.local/lib/python3.6/site-packages 
> instead of /usr/lib/python3/dist-packages/
> 
> 
> 
> Cheers
> 
> Pei
> 
> 
> 
> 
> 
> -- 
> Mr. Nobody
> Welcome to Longer Vision Technology https://www.longervision.ca
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[Attachment #5 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Are you \
running install as root, via sudo for example?</div><div dir="ltr"><br></div><div \
dir="ltr">Barry</div><div dir="ltr"><br>On 26 Mar 2019, at 05:59, Nobody &lt;<a \
href="mailto:jiapei@longervision.com">jiapei@longervision.com</a>&gt; \
wrote:<br><br></div><blockquote type="cite"><div dir="ltr">  

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  
  
    <p><br>
    </p>
    <p>Hi, all:<br>
    </p>
    <p><br>
    </p>
    <p>After successfully downloaded and built <b>PyQt5</b>, I'm trying
      to install <b>PyQt5_gpl</b> with the command <b>make install</b>,
      but meet the following <b>ERROR</b> messages:</p>
    <p><br>
    </p>
    <p><i>/opt/Qt/Current/gcc_64/bin/qmake -install qinstall -exe
        ....../PyQt5_gpl-5.12.1/PyQt5.api
        /opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api</i><i><br>
      </i><i>Error copying ....../PyQt5_gpl-5.12.1/PyQt5.api to
        /opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api: Cannot create
        /opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api for output</i><i><br>
      </i><i>Makefile:4266: recipe for target 'install_qscintilla_api'
        failed</i><i><br>
      </i><i>make: [install_qscintilla_api] Error 3 (ignored)</i><i><br>
      </i><i>/usr/bin/python ....../PyQt5_gpl-5.12.1/mk_distinfo.py ""
        /usr/lib/python3/dist-packages/PyQt5-5.12.1.dist-info
        installed.txt</i><i><br>
      </i><i>Traceback (most recent call last):</i><i><br>
      </i><i>&nbsp; File "....../PyQt5_gpl-5.12.1/mk_distinfo.py", line 108,
        in &lt;module&gt;</i><i><br>
      </i><i>&nbsp;&nbsp;&nbsp; fn_f = open(fn, 'rb')</i><i><br>
      </i><i>FileNotFoundError: [Errno 2] No such file or directory:
        '/usr/lib/python3/dist-packages/PyQt5/QtCore.so'</i><i><br>
      </i><i>Makefile:4275: recipe for target 'install_distinfo' failed</i><i><br>
      </i><i>make: *** [install_distinfo] Error 1</i><i><br>
      </i><i><br>
      </i><i>****&nbsp; Installation failed. Aborting package creation.</i><i><br>
      </i><i><br>
      </i><i>Restoring overwritten files from backup... FAILED!</i><br>
    </p>
    <p><i>Cleaning up...OK</i><i><br>
      </i><i><br>
      </i><i>Bye.</i><i><br>
      </i></p>
    <p><i><br>
      </i></p>
    <p><b>I actually have Qt installed under /opt/Qt:</b></p>
    <p><i><br>
      </i></p>
    <p><i>➜&nbsp; python ls</i><i><br>
      </i><i>➜&nbsp; python pwd</i><i><br>
      </i><i>/opt/Qt/Current/gcc_64/qsci/api/python</i><br>
    </p>
    <p><br>
    </p>
    <p>I wonder if it has something to do with <b>PYTHONPATH</b> ? <br>
    </p>
    <p><i>Most of my Python packages are installed via <b>pip</b> under
        <b>~/.local/lib/python3.6/site-packages</b><br>
      </i></p>
    <p><i>instead of <b>/usr/lib/python3/dist-packages/</b></i></p>
    <p><i><br>
      </i></p>
    <p>Cheers</p>
    <p>Pei<i><br>
      </i></p>
    <p><br>
    </p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Mr. Nobody
Welcome to Longer Vision Technology <a class="moz-txt-link-freetext" \
href="https://www.longervision.ca">https://www.longervision.ca</a> </pre>
  

</div></blockquote><blockquote type="cite"><div \
dir="ltr"><span>_______________________________________________</span><br><span>PyQt \
mailing list &nbsp;&nbsp;&nbsp;<a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></span><br><span><a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankc \
omputing.com/mailman/listinfo/pyqt</a></span><br></div></blockquote></body></html>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic