Python Forum
import antigravity not working
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import antigravity not working
#1
isn't this supposed to open a web browser to xckd 353?  i tried it on both python 2 an python 3 but nothing happens.  it does define an object named antigravity with an attribute named webbrowser.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Could you be a bit more specific about "not working"? "nothing happens" but what do you expect instead? Are you using a regular terminal, or an IDE? What platform are you using? What is your default browser?
Reply
#3
i expect a browser window to open up and it does not.  my default browser is firefox.  opera is installed but i have only ever started it by command line or its own icon.  firefox help says it is firefox 51.0.1dpkg -l firefox says it is firefox 51.0.1+build2-0ubuntu0. system is Ubuntu 16.04.1 updated this past weekend.  i am using Unity, but looking for another to use.  the machine is from System 76 and had Ubuntu 13.10 on it from the factory, upgraded (a few times) to 14.04.3 LTS, wiped, installed 16.04 LTS, upgraded to 16.04.1 LTS.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Works fine for me on Windows 10 using Chrome.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#5
(Feb-17-2017, 07:43 AM)Skaperen Wrote: i expect a browser window to open up and it does not.  my default browser is [snipped]

So what does happen when you do the import?  Any errors?
The source for the module isn't really very complicated, so this should be fairly easy to diagnose: http://svn.python.org/view/python/trunk/...iew=markup
Reply
#6
(Feb-17-2017, 09:55 PM)nilamo Wrote: So what does happen when you do the import?  Any errors?

nothing happens.  so far i have only tested it interactively.  it just goes to the next prompt with no messages.

it looks like module webbrowser is not working right.  i tried using it directly but nothing happens.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#7
i solved it.

it opened a new tab on a firefox instance in another virtual desktop.  i tried it on a user that had no firefox already running and a new one opened up in the same virtual desktop.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#8
Thanks for letting us know :)
Reply
#9
what i didn't explain was that i run multiple concurrent users (12, 4 with firefox open) each with multiple concurrent desktops (9).  i just happen to be doing this in a user with a firefox open Sad
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pathlib import not working chriswrcg 9 3,680 May-29-2022, 07:37 PM
Last Post: snippsat
  How to keep a loop containing a web import working in python executable? coder1384 3 2,872 Feb-22-2020, 06:49 PM
Last Post: snippsat
  import logging not working segerhult 3 13,218 Feb-07-2019, 05:31 PM
Last Post: buran
  CSV import is not working gehrenfeld 7 4,242 Dec-12-2018, 12:26 PM
Last Post: gehrenfeld
  import keyboard module doesn't get found - working on laptop but no on raspberry pi.. HANSJORG2 1 8,167 Mar-16-2018, 02:48 PM
Last Post: sparkz_alot
  import not working properly mepyyeti 5 4,371 Jan-18-2018, 07:08 AM
Last Post: metulburr
  import commands modules not working in python 3.6.0 bmohanraj91 2 17,636 May-01-2017, 10:59 AM
Last Post: bmohanraj91
  My import not working man_in_the_hill 4 11,414 Oct-03-2016, 10:48 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020