Skip Navigation

Posts
57
Comments
14
Joined
2 yr. ago

Politics @beehaw.org

Judge rules Donald Trump defrauded banks, insurers as he built real estate empire

  • Owning a second home should be illegal.

  • The memory is corrupt, that's why it won't load.

  • Politics @beehaw.org

    Special counsel executed a search warrant of Trump’s Twitter account

  • Gaming @beehaw.org

    You can play Starfield on PC and Xbox even if you only buy it once

    Music @beehaw.org

    Dennis Chambers Hears TOOL For The First Time

    man.

    Jump
  • *cow rape juice

  • Malaria is hot right now

  • Music @beehaw.org

    GWAR: Tiny Desk Concert

    Technology @beehaw.org

    Creator of ElonJet Moves His Musk Flight-Tracking Account to Threads

    Politics @beehaw.org

    6 charged in alleged straw donor scheme to benefit NYC Mayor Eric Adams’ campaign

    Technology @beehaw.org

    Threads: Ten million join Meta's Twitter rival, Zuckerberg says

    World News @beehaw.org

    Chinese balloon did not collect intelligence while flying over U.S., Pentagon says

    Politics @beehaw.org

    Biden to sign executive order expanding access to contraception

    Ukraine @sopuli.xyz

    SHARK unmanned aerial reconnaissance systems, which were transferred to the front by the Come Back Alive Foundation, helped to destroy several very fat Russian military targets.

    Not the Onion @lemmy.ml

    Mark Zuckerberg Accepts Elon Musk’s Offer To Fight In A Cage

    Ukraine @sopuli.xyz

    Russian 2S4 Tyulpan "Tulip" and 8 soldiers are eliminated by HIMARS.

    Not the Onion @lemmy.ml

    Modi flexes India’s cultural reach on Yoga Day with backbends and corpse poses on the UN lawn

    Ukraine @sopuli.xyz

    Ukraine Counteroffensive: Russian Counterattack Near P'yatykhatky Fails, Tank Destroyed by Stugna-P

    Ukraine @sopuli.xyz

    Two Russian 2A65 Msta-B Howitzers Destroyed South of Robotyne

    Ukraine @sopuli.xyz

    110th Mechanized Brigade destroyed a Russian ammunition site. Tavria direction.

    Ukraine @sopuli.xyz

    Philip Morris to launch new $30 mln production facility in western Ukraine

    Ukraine @sopuli.xyz

    Bakmut region, tanks of the 30th brigade shoot at Russian positions. Russian ATGM crew missed their shot.

    Ukraine @sopuli.xyz

    Zaporizhia Front, Bradley M2A2 worked on a tank from TOW-2

  • Same as it ever was.

  • We got Fantasia Mickey, which is my favorite. My wife wants Tiana.

  • Elite Dangerous in VR. I can really disconnect from the real world and just enjoy being a space-pirate bounty hunter.

  • Cars, "They don't build them like the used to", because crumple zones save lives.

  • If you're reading the file path from standard input, you could try using the os.path.normpath() function from the os module to normalize the file path before passing it to the PdfReader function. This function converts a pathname to the normal form for the current operating system, which could help resolve any issues with the file path.

    Here's an example of how you could use this function:

     python
        
    import os
    from PyPDF2 import PdfReader
    
    def main():
        path = input('Whatever: ')
        normalized_path = os.path.normpath(path)
        reader = PdfReader(normalized_path)
    
      

    Give this a try and let me know if it helps!

  • I hope this isn't against the rules.

    ChatGPT4: It seems that the issue you’re facing is related to the way you’re passing the file path to the PdfReader function. One possible solution could be to use a raw string for the file path by adding an r before the opening quotation mark of the string. For example: path = r"C:\Users\example input.pdf".

    Another solution could be to use double backslashes instead of single backslashes \ in the file path. You could also try using forward slashes / instead of backslashes.

    Have you tried any of these solutions? Let me know if they work for you