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

 
 

bug #48343: python shell error in ubuntu 16.04

Submitted by:  None
Submitted on:  Wed 29 Jun 2016 02:45:28 PM UTC  
 
Originator Name: hananOriginator Email: -unavailable-
Item Group: Crash errorCategory: Other
Release: 1.05-ReleasePrivacy: Public
Operating System: LinuxOS Type: 64Bit
Processor Type: IntelSeverity: 3 - Normal
Open/Closed: ClosedAssigned to: None
Priority: 5 - NormalStatus: Confirmed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Member
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>
Project 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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Nov 2017 09:29:05 AM UTCplmOpen/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.1-cleanup1