Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Converting py to exe
Post: RE: Converting py to exe

(Apr-19-2024, 03:37 PM)deanhystad Wrote: What about 'C:\\Users\\Admin\\Desktop\\MyFxBookAPIData.xlsm'? Did you include that as an extra file? yes tried that but still get same error message
WiPi General Coding Help 8 602 Apr-21-2024, 12:57 PM
    Thread: Converting py to exe
Post: RE: Converting py to exe

(Apr-19-2024, 02:07 PM)deanhystad Wrote: Doesn't matter if you use auto py to exe or pyinstaller. What arguements did you use to make the exe? Is your posted code the real code that generated the ...
WiPi General Coding Help 8 602 Apr-19-2024, 03:30 PM
    Thread: Converting py to exe
Post: RE: Converting py to exe

(Apr-19-2024, 08:50 AM)DPaul Wrote: Even non-guru's would like to know what command line you are using: something like pyinstaller --clean -- windowed ...etc Paul ah ok. So I installed auto-py-to-ex...
WiPi General Coding Help 8 602 Apr-19-2024, 08:57 AM
    Thread: Converting py to exe
Post: RE: Converting py to exe

I think the subject of converting py to exe files is obviously a very difficult one even for the gurus judging by the number of replies!
WiPi General Coding Help 8 602 Apr-19-2024, 08:40 AM
    Thread: Converting py to exe
Post: Converting py to exe

Hi all, I am using PyInstaller to convert a python script to a windows exe file. The python script is: #!/usr/bin/python import requests import random import time import datetime from datetime import...
WiPi General Coding Help 8 602 Feb-16-2024, 08:47 AM
    Thread: Pandas problems
Post: RE: Pandas problems

It's OK - found the problem. This line should be: df = pd.read_html(html, match='IP Address')[0]Otherwise I get a list of tables! DOH!
WiPi Web Scraping & Web Development 1 1,024 Mar-28-2023, 01:27 PM
    Thread: Pandas problems
Post: Pandas problems

Hi Guys, I have been using pandas for a while now to extract tables from the web. I used this simple bit of code here and ran into all sorts of problems! import pandas as pd import requests url='http...
WiPi Web Scraping & Web Development 1 1,024 Mar-28-2023, 01:16 PM
    Thread: Tkinter messagebox
Post: RE: Tkinter messagebox

Thanks for all your replies. I'm not a programmer so grabbed this code off the web ages ago - it works so I didn't change it - I wanted the window to be centre screen and top level i.e not under other...
WiPi General Coding Help 4 2,049 Dec-10-2022, 09:19 AM
    Thread: Tkinter messagebox
Post: Tkinter messagebox

Hi Guys, I'm using the tkinter message box which works fine but I'm struggling to get code that checks if a messagebox is already open. So my working code is below but when the script is run again I ...
WiPi General Coding Help 4 2,049 Dec-09-2022, 07:52 PM
    Thread: Updating variables in Multi-processing
Post: RE: Updating variables in Multi-processing

(Feb-12-2021, 04:28 PM)nilamo Wrote: I think that's because you're trying to access the value within the Manager, after the manager's been cleaned up from the with block. Try this:if __name__ == '_...
WiPi General Coding Help 11 10,817 Feb-13-2021, 10:58 AM
    Thread: Updating variables in Multi-processing
Post: RE: Updating variables in Multi-processing

Hi guys, Just when I thought I had it cracked I've run into another 'odd' problem with the multi-processing code. I am simply counting the number of times a condition is met - so as in the code belo...
WiPi General Coding Help 11 10,817 Feb-12-2021, 11:02 AM
    Thread: Updating variables in Multi-processing
Post: RE: Updating variables in Multi-processing

(Feb-10-2021, 11:12 PM)nilamo Wrote: If I run the code from the command line (on Windows 10, at least), I also get 0:Output:> python .\spam.py ZeroDivisionError --> 0 / 0 ZeroDivisionError --&...
WiPi General Coding Help 11 10,817 Feb-11-2021, 09:00 AM
    Thread: Updating variables in Multi-processing
Post: RE: Updating variables in Multi-processing

(Feb-09-2021, 02:34 PM)DeaD_EyE Wrote: Your code is ok. Just replaced one line for testing: import multiprocessing from multiprocessing import Value error_value = Value('i',0) #assign as integer ...
WiPi General Coding Help 11 10,817 Feb-10-2021, 10:10 AM
    Thread: Updating variables in Multi-processing
Post: Updating variables in Multi-processing

Hi guys, I'm struggling to get the correct code configuration to update an integer variable across multi-process processes! My code in brief is below: import multiprocessing from multiprocessing im...
WiPi General Coding Help 11 10,817 Feb-09-2021, 01:11 PM
    Thread: Formatting date in a dataframe
Post: RE: Formatting date in a dataframe

(Jan-05-2021, 05:56 PM)WiPi Wrote: Hi guys, I have a pandas generated dataframe (df) where the first column has a series of dates as below: Output:0 11.26.2020 03:36 1 12.01.2020 15:00 2 ...
WiPi General Coding Help 1 1,744 Jan-06-2021, 11:26 AM
    Thread: Formatting date in a dataframe
Post: Formatting date in a dataframe

Hi guys, I have a pandas generated dataframe (df) where the first column has a series of dates as below: Output:0 11.26.2020 03:36 1 12.01.2020 15:00 2 12.01.2020 21:30 3 12.02.2020 13:2...
WiPi General Coding Help 1 1,744 Jan-05-2021, 05:56 PM
    Thread: Using 2D array with Threadpool
Post: RE: Using 2D array with Threadpool

I figured it out if anybody interested for future reference: from multiprocessing.dummy import Pool as ThreadPool import numpy as np array = [] def func(array): a = np.array(array[0]) b = np...
WiPi General Coding Help 1 1,888 Jun-25-2020, 09:19 AM
    Thread: Using 2D array with Threadpool
Post: Using 2D array with Threadpool

Hi guys, I use 'Threadpool' processing quite a lot but only for 1 dimensional lists of data.I am now trying to implement the same structure but passing a 2D array through the Threadpool.map interface...
WiPi General Coding Help 1 1,888 Jun-24-2020, 12:25 PM
    Thread: Drop Keys From Dictionary
Post: RE: Drop Keys From Dictionary

Here's another straightforward method dictOfVals = {1: 0.2, 2: -0.1, 3: 2, 4: 0.1, 5: 0.05} newDict=dict() # Iterate over all the dict values for value in dictOfVals.values(): if value > 0.1 o...
WiPi General Coding Help 8 3,717 May-30-2020, 09:55 AM
    Thread: pd.concat Problem
Post: RE: pd.concat Problem

sorry I maybe should have put more explanation content so the 2 files have data exactly like this: Output:2020.05.15 15:00 EURJPY Sell 0.14 115.548 2020.05.15 16:00 EURJPY Sell 0.22 115.772 2020.05.1...
WiPi General Coding Help 1 1,763 May-27-2020, 07:42 AM

User Panel Messages

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