error in python3.7

Bug #1799120 reported by Mr. Please
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3.6 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>
    import subprocess, tempfile, os.path, re, pwd, grp, os, time
  File "/usr/lib/python3.7/tempfile.py", line 184, in <module>
    from random import Random as _Random
  File "/home/please/Desktop/random.py", line 1, in <module>
    from random import randint
ImportError: cannot import name 'randint' from 'random' (/home/please/Desktop/random.py)

Revision history for this message
Juhani Numminen (jsonic) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures.

At a minimum, we need:
1. The specific steps or actions you took that caused you to encounter the problem.
2. The behavior you expected.
3. The behavior you actually encountered (in as much detail as possible).
Thanks!

In any case, /home/please/Desktop/random.py seems to be causing interference with apport. Maybe you could rename that file to something else?

Changed in python3.6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python3.6 (Ubuntu) because there has been no activity for 60 days.]

Changed in python3.6 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.