Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: PowerShell & Python
Post: RE: PowerShell & Python

I solved it. You need to type "python filename.py" and then enter. Thanks.
deep_logic General Coding Help 2 715 Jun-06-2023, 04:24 AM
    Thread: PowerShell & Python
Post: PowerShell & Python

Hi all, I’m trying to run simple python scripts with PowerShell. I can run my scripts in .cmd without a hitch. The path looks proper. I opened PowerShell in admin mode as well and it’s still not worki...
deep_logic General Coding Help 2 715 Jun-05-2023, 09:29 PM
    Thread: QR Codes
Post: QR Codes

Hi all, I'm trying to generate qr codes in python. I have downloaded and did a pip install of qrcode on the pypi site. The starter code on the site is: import qrcode import qrcode.image.svg img = qrc...
deep_logic General Coding Help 1 1,991 Jun-20-2022, 09:44 PM
    Thread: Python 3.9 and WINDOWS 10
Post: Python 3.9 and WINDOWS 10

Hi all, I am trying to troubleshoot/modify my python interpreter. I have downloaded 3.9, but my environment variable still points to the original 3.8 directory. I use ATOM (on occassion) and the CMD t...
deep_logic General Coding Help 2 1,733 Oct-16-2021, 05:38 PM
    Thread: Python API and requests
Post: RE: Python API and requests

@ndc85430: I have been reading the link you posted on the docs for requests. I can't seem to find the code or the command for retrieving the body. In the docs they show you how to retrieve POST, JSON,...
deep_logic General Coding Help 9 4,341 Jul-29-2020, 01:48 PM
    Thread: Python API and requests
Post: RE: Python API and requests

@scidam: I ran your code. I get Status code:200 and Data length: 5774. So, the Data length is showing me data that is downloaded? Or is this another status code? Many thx for the tutorial.
deep_logic General Coding Help 9 4,341 Jul-29-2020, 03:18 AM
    Thread: Python API and requests
Post: RE: Python API and requests

Thanks scidam. I still get a blank though after I code it in. No error gets thrown up on my console. Not sure where to go from here.
deep_logic General Coding Help 9 4,341 Jul-28-2020, 01:46 AM
    Thread: Python API and requests
Post: Python API and requests

Hi all, I'm trying to download some data from the Energy Information Administration with my API. This url: monthly electricity generation has a dataset I'd like to use for some research. If you follo...
deep_logic General Coding Help 9 4,341 Jul-28-2020, 01:06 AM
    Thread: rename files in a folder
Post: RE: rename files in a folder

@bowlofred, Many thanks. That did the trick. I don't use os.path that much. I will start to incorporate. Thanks again.
deep_logic General Coding Help 2 5,103 Jun-01-2020, 08:44 PM
    Thread: rename files in a folder
Post: rename files in a folder

Hi all, I'm trying to rename about 25 files in a directory. If I have a directory that has a bunch of .jpg's that have the start out, "scanXXX", I'd like to change the name to "356EXXX". Here is what...
deep_logic General Coding Help 2 5,103 Jun-01-2020, 08:09 PM
    Thread: [split] Windows can't find installed packages
Post: RE: [split] Windows can't find installed packages

Here is a screen shot of me trying to import beautifulsoup4. VS Code won't allow me to import - it just suggests a bunch of modules. [Image: https://imagizer.imageshack.com/img922/6627/j08EYY.png] I'...
deep_logic General Coding Help 11 5,495 Nov-26-2019, 08:06 PM
    Thread: [split] Windows can't find installed packages
Post: RE: [split] Windows can't find installed packages

So, @buran and @snippsat - thanks for your help. I have uninstalled all python(s), with a caveat. @buran, you alluded to the environment variable path is different than what is in my cmd line and wh...
deep_logic General Coding Help 11 5,495 Nov-26-2019, 03:50 PM
    Thread: [split] Windows can't find installed packages
Post: RE: [split] Windows can't find installed packages

Ok, I didn't realize that there is yet another version of Visual Studio. So, VS Code is better for python? Do I need to go to python's site and re-download python? Or do I let VS Code install it's ow...
deep_logic General Coding Help 11 5,495 Nov-17-2019, 08:46 PM
    Thread: [split] Windows can't find installed packages
Post: [split] Windows can't find installed packages

Hi all, I seem to have a similar situation trying to import beautifulsoup4. I've installed beautifulsoup4 using pip in a command prompt. All good. However, I try to use my IDLE and import but, "module...
deep_logic General Coding Help 11 5,495 Nov-16-2019, 11:56 PM
    Thread: Invalid Syntax error
Post: RE: Invalid Syntax error

Hi all, It seems like I have the same problem as @mustf. I have python3.7 installed and have my windows environment variable set up to run from a cmd prompt. I have MSVS 2019 installed that seems to h...
deep_logic General Coding Help 9 7,487 Nov-11-2019, 10:07 AM
    Thread: basic binary search
Post: RE: basic binary search

@ThomasL I ran your code edits and I'm still getting an error: Error:Traceback (most recent call last): File "C:/Users/araki/AppData/Local/Programs/Python/Python37-32/binary search.py", line 19, in...
deep_logic General Coding Help 4 2,448 Sep-28-2019, 06:10 AM
    Thread: basic binary search
Post: basic binary search

Hi all, I have googled and researched this problem. I'm just trying to do a binary search program. I'm using "Grokking Algorithms" from Agitya. I'm a self student, so this is purely for me to enhanc...
deep_logic General Coding Help 4 2,448 Sep-20-2019, 07:48 PM
    Thread: escape single quote
Post: escape single quote

Hi all, I'm trying to do a simple chdir in IDLE, 2.7.5. os.chdir(r'\\hilltop3\users$\LongRandy\My Documents\HOW-TO\'S)I keep getting, "The system cannot find the path specified: "\\\\hilltop3\\users&...
deep_logic General Coding Help 1 1,808 Sep-10-2019, 06:30 PM
    Thread: rename many pdf'S in a directory
Post: RE: rename many pdf'S in a directory

snippsat, dood...many thanks! I finally got it to go! Much manna to you! Thanks again!
deep_logic General Coding Help 3 2,631 Feb-28-2019, 02:57 PM
    Thread: rename many pdf'S in a directory
Post: rename many pdf'S in a directory

Hi all, I'm trying various ways to rename a bunch of pdf's in a directory. I have autocad batch print 50 files to adobe pdf. The problem is the default filename will add "Layout (1) .pdf" at the end o...
deep_logic General Coding Help 3 2,631 Feb-26-2019, 07:30 PM

User Panel Messages

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