buggnubg - Bugs: bug #48343, python shell error in ubuntu 16.04

 
 

bug #48343: python shell error in ubuntu 16.04

Submitter:  None
Submitted:  Wed 29 Jun 2016 02:45:28 PM UTC
   
 
Originator Name:  hanan Originator Email:  * -email is unavailable-
Item Group:  Crash error Category:  Other
Release:  * 1.00 - 1.05Pre Privacy:  Public
Operating System:  Linux Severity:  3 - Normal
Open/Closed:  Closed Assigned to:  None
Priority:  5 - Normal Status:  Confirmed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Nov 2017 09:29:05 AM UTC, comment #4: 

I could only reproduce this the way described by Christian (although I suppose there may be other ways to trick Ipython into this behaviour).

This is a Ipython issue ; the error happens in the code below, where they should catch exceptions.

# keep track of where we started running (mainly for crash post-mortem)
# This is not being used anywhere currently.
self.starting_dir = py3compat.getcwd()

The issue seems to still be present in the current versions.

Philippe Michel <plm>
Group administrator
Thu 30 Jun 2016 09:54:08 AM UTC, comment #3: 

I can reproduce this if I remove the working directory, in which case it is not really a bug. Can you reproduce?

Christian Anthon <c_anthon>
Group administrator
Wed 29 Jun 2016 04:33:39 PM UTC, comment #2: 

The warning about Ipython frontend being deprecated has been fixed in CVS for some time. Debian/Ubuntu will have to catch up with their downstream releases. source code release 1.05.002 rectifies that issue. Ubuntu/Debian are still using 1.05.000. Alternatively pulling the GNUbg head from source and building it should resolve that issue.

Michael Petch <mdpetch>
Group administrator
Wed 29 Jun 2016 03:30:22 PM UTC, comment #1: 


I downloaded Ubuntu 16.04 (Desktop) for amd64 (64-bit). I then did an upgrade to apply all patches. On a fully patched system I installed GNUbg from the command line using:

    sudo apt-get install gnubg gnubg-data

The I generated the bearoff database with:

    sudo dpkg-reconfigure gnubg

I installed ipython with:

    sudo apt-get install ipython

When I run it from the command line I get:

(No game) >
/usr/lib/python2.7/dist-packages/IPython/frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
  warn("The top-level `frontend` package has been deprecated. "
IPython 2.4.1, Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413]
In <1> >

I do get the Ipython command prompt and I am able to issue commands to GNUbg.

I then added the deb-src entries to my /etc/apt/sources.list and then ran this command to pull out all the required build dependencies for building GNUbg:

    sudo apt-get build-dep gnubg
    sudo apt-get install cvs

I pulled out the source code with:

    cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/gnubg co gnubg

After entering the build directory with   cd gnubg   I did this:

    ./autogen.sh
    ./configure --prefix=/home/username/local
    make
    make install

When I run it as:

    /home/username/local/bin/gnubg -t

It does work correctly. username is my account name in these examples. There is no hang.

What might help is to know what packages you have installed in your Ubuntu installation. Could you provide us the output of this command:

    dpkg -l

Michael Petch <mdpetch>
Group administrator
Wed 29 Jun 2016 02:45:28 PM UTC, original submission:  

starting in text mode 'gnubg -t' in Ubuntu 16.04LTS
entering '>' produces the following error message:

(No game) >
/usr/lib/python2.7/dist-packages/IPython/frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
  warn("The top-level `frontend` package has been deprecated. "
Traceback (most recent call last):
  File "/usr/share/gnubg/scripts/gnubg.py", line 172, in gnubg_InteractivePyShell_tui
    config=cfg, user_ns=calling_ns, banner1=banner)
  File "/usr/lib/python2.7/dist-packages/IPython/terminal/embed.py", line 92, in _init_
    display_banner=display_banner
  File "/usr/lib/python2.7/dist-packages/IPython/terminal/interactiveshell.py", line 328, in _init_
    **kwargs
  File "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 443, in _init_
    self.init_instance_attrs()
  File "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 585, in init_instance_attrs
    self.starting_dir = py3compat.getcwd()
OSError: [Errno 2] No such file or directory
(No game)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by plm (Posted a comment)
  • -email is unavailable- added by c_anthon (Posted a comment)
  • -email is unavailable- added by mdpetch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-25 plm Open/ClosedOpen Closed
        StatusNone Confirmed
        Summarypython shell error in ubunt 16.04 python shell error in ubuntu 16.04

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code