Missing module when CherryPy installed via instructions using git clone method

20 views
Skip to first unread message

jibun...@gmail.com

unread,
May 5, 2019, 1:51:52 AM5/5/19
to cherrypy-users
Followed the specific steps to install CherryPy onto Raspbian 9 (04-19-2019) image, and get the following error for any CherryPy script executed.  Known good scripts no long work, because CherryPy fails to execute.

Traceback (most recent call last):
  File "Hello.py", line 1, in <module>
    import cherrypy
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/__init__.py", line 76, in <module>
    from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/_cpserver.py", line 6, in <module>
    from cherrypy.process.servers import ServerAdapter
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/process/__init__.py", line 14, in <module>
    from . import plugins, servers
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/process/servers.py", line 126, in <module>
    import portend
ImportError: No module named 'portend'

This is a consistent issue, I recreated the SD card for the Raspberry Pi from scratch, then tried installation of CherryPy again, following the documented steps via git method, same failure, import of portend fails.

Assistance greatly appreciated.


Sviatoslav Sydorenko

unread,
May 5, 2019, 1:53:27 AM5/5/19
to cherryp...@googlegroups.com
What exactly did you run?

--Sviatoslav.

Sent from my phone, please pardon any typos.

нд, 5 трав. 2019, 01:51 користувач <jibun...@gmail.com> пише:
--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-user...@googlegroups.com.
To post to this group, send email to cherryp...@googlegroups.com.
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.

jibun...@gmail.com

unread,
May 6, 2019, 6:46:46 PM5/6/19
to cherrypy-users
I stated exactly what I did... I followed the actual steps on CherryPy documentation for installation via github.  Reference https://docs.cherrypy.org/en/latest/install.html, see git clone installation steps.  The official installation method and steps, per the URL.

Installing...


You may also get the latest CherryPy version by grabbing the source code from Github:

$ git clone https://github.com/cherrypy/cherrypy
$ cd cherrypy
$ python setup.py install



The installation completes without error.  HOWEVER... run of ANY python scriptt for CherryPy fails with the error noted previously.  This includes tutorial examples, my previously working scripts, etc.

On Saturday, May 4, 2019 at 10:53:27 PM UTC-7, Sviatoslav Sydorenko (@webknjaz) wrote:
What exactly did you run?

--Sviatoslav.

Sent from my phone, please pardon any typos.

нд, 5 трав. 2019, 01:51 користувач <jibun...@gmail.com> пише:
Followed the specific steps to install CherryPy onto Raspbian 9 (04-19-2019) image, and get the following error for any CherryPy script executed.  Known good scripts no long work, because CherryPy fails to execute.

Traceback (most recent call last):
  File "Hello.py", line 1, in <module>
    import cherrypy
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/__init__.py", line 76, in <module>
    from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/_cpserver.py", line 6, in <module>
    from cherrypy.process.servers import ServerAdapter
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/process/__init__.py", line 14, in <module>
    from . import plugins, servers
  File "/usr/local/lib/python3.5/dist-packages/CherryPy-18.1.2.dev3+gcf436daa-py3.5.egg/cherrypy/process/servers.py", line 126, in <module>
    import portend
ImportError: No module named 'portend'

This is a consistent issue, I recreated the SD card for the Raspberry Pi from scratch, then tried installation of CherryPy again, following the documented steps via git method, same failure, import of portend fails.

Assistance greatly appreciated.


--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherryp...@googlegroups.com.

Sviatoslav Sydorenko

unread,
May 6, 2019, 8:59:14 PM5/6/19
to cherryp...@googlegroups.com
Oh, don't do that. I should probably remove that from docs. Use `pip install git+https://github.com/cherrypy/cherrypy.git`


--Sviatoslav.

Sent from my phone, please pardon any typos.

пн, 6 трав. 2019, 18:46 користувач <jibun...@gmail.com> пише:
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-user...@googlegroups.com.

Sviatoslav Sydorenko

unread,
May 6, 2019, 9:00:19 PM5/6/19
to cherryp...@googlegroups.com
But why not just `pip install cherrypy`? What's your use case? 


--Sviatoslav.

Sent from my phone, please pardon any typos.

пн, 6 трав. 2019, 20:58 користувач Sviatoslav Sydorenko <svyat...@sydorenko.org.ua> пише:
Reply all
Reply to author
Forward
0 new messages