How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 … Traceback (most recent call last): File "/opt/scripts/netbox_backups_transfer.py", line 57, in <module> file_contents = file_tar_bz2.read… Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 … type... ) Below is the error File "/opt/scripts/netbox_backups_transfer.py", line 69, in <module> file_contents = file_tar_bz2.extractfile… Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem First, let's prepare two tar files using different compression schemes for demo purposes. $ cat foo_1.txt This is file 1 $ cat foo_2.txt This is file 2 This is file two This is file too # Three tar files, two compressed and one uncompressed for reference $ tar -j -c -f foo.tar.bz2 foo_1.txt foo_2.txt… Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message? PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit Programming Computer Science by usmanmalik57 … two Python files: `geminiconnector.py` and `main.py`. The `geminiconnector.py` library will contain the logic…and make API calls. **Code for geminiconnector.py** ``` import os from vertexai.preview.generative_models import…following script imports required libraries for the `main.py` file. ``` from geminiconnector import generate from … A module that comes with Python, doesn´t register? Programming Web Development by Audun … register. This is the error message: %Run 'open cv - tot.py' Traceback (most recent call last): File "C:\Users\Audun… Nilsen\open cv - tot.py", line 1, in <module> import cv2 # OpenCV… Re: how converte C to VB6? Programming Software Development by SCBWV …, you can do the same by: Dim py As Long Dim shiftedValue As Long shiftedValue = py / (2 ^ 6) ' Shift right by 6… how converte C to VB6? Programming Software Development by cambalinho how can i convert these C line: (py>>6)<<6) to VB6? Re: how converte C to VB6? Programming Software Development by pritaeas This might work too: shiftedValue = py And &HFC00& How Do I address ERROR: access violation writing 0x0000000000005140, Programming Web Development by A_957 … able to find and correct, advice is highly appreciated: Chatbox.py file: from flask import Flask, render_template, request, jsonify import logging… Re: i don´t understand this syntax error when using OpenCV Programming Databases by Audun … >>> %Run 'open cv - tot.py' Traceback (most recent call last): File "C:\…Users\Audun Nilsen\open cv - tot.py", line 8 image = cv2.imread("C…>>> %Run 'open cv - tot.py' Traceback (most recent call last): File "C:\…Users\Audun Nilsen\open cv - tot.py", line 1, in <module> import… Re: Which Python PDF writing library is best? Digital Media UI / UX Design by cored0mp …=options) File "/usr/lib/python3/dist-packages/pdfkit/api.py", line 72, in from_string return r.to_pdf(output_path) File… "/usr/lib/python3/dist-packages/pdfkit/pdfkit.py", line 156, in to_pdf raise IOError('wkhtmltopdf reported an… Re: A module that comes with Python, doesn´t register? Programming Web Development by Reverend Jim I tried installing python 3.12 and had the same problem. I typically wait a bit before installing the latest and greatest because I have found it can take a while before packages are upgraded to be compatible (usually wxpython). I was able to install the individual packages under python 3.10. I know that the "next to latest and greatest" … Re: how converte C to VB6? Programming Software Development by Reverend Jim Remove the trailing `)` and it should work. Re: how converte C to VB6? Programming Software Development by Reverend Jim Glad you were able to work it out. Why are you still using VB6? Re: how converte C to VB6? Programming Software Development by Reverend Jim I always recommend ditching VB6. It is super old technology. If you were using Python 2.x I would also advise moving to Python 3.x for the same reason. If you stick with the old you will be left behind. If I were a potential employer I would not hire anyone who only worked in old tech except for the very rare case when it is required to maintain … Re: how converte C to VB6? Programming Software Development by cambalinho Reverend Jim: i installed the VS2010.. seems much more faster on my laptop ;) Re: How Do I address ERROR: access violation writing 0x0000000000005140, Programming Web Development by rproffitt Python shouldn't create such an error. Reference https://www.reddit.com/r/learnpython/comments/kv83hc/error_code_exception_access_violation_writing_0x0/ I can't duplicate your issue but if this was mine I'd place a logging command in my python script at each step so I could nail down which line of code threw the error. Tutorial on that at … Re: How Do I address ERROR: access violation writing 0x0000000000005140, Programming Web Development by Dani I don't have any python experience, sadly, but I am super awesome at jQuery. Once you solve this server-side problem at hand, if you find yourself with the jQ side of things not working, please don't hesitate to post. Re: Where to save python files Programming Software Development by Yoloswag .py Graphics.py Programming Software Development by Ghostenshell … way to write my code. I am using the graphics.py module. I will add the graphics program as an attachment… the dice program after this one. Convert graphics into a py file type. [CODE]from graphics import * def main(): win = GraphWin… web.py authoring efficiency Programming Software Development by PhilEaton … am new to python web frameworks. I am using web.py because I like how raw it is. I am wondering… framework to use 'templates' as they are called in web.py? Thanks for the help. Web.py and asp/php server files? Programming Web Development by james.lu.75491856 How would I use [web.py](http://www.webpy.org) to execute ASP/PHP server files? Or can web.py not do that and can someone provide me a python script that can execute ASP/PHP server files? Should I try posting this in the PHP forum, Web Design, html, and css fourm, or the Web development forum if I don't get an awnser here? Re: web.py authoring efficiency Programming Software Development by Gribouillis … this templating system can very well be used with web.py or other frameworks. Another nice feature of mako templates is… Re: Web.py and asp/php server files? Programming Web Development by cereal The correct solution would be to serve web.py as fastcgi together with PHP and ASP, this should be … web.py KeyError Programming Software Development by james.lu.75491856 …;__main__": try: app.run() except: traceback.print_exc() input() web.py latest version from gihub. Macintosh python 2.7.6 32… py Files On Mac Programming Software Development by dedekind87 Hello everyone, I'm a python beginner, and I've installed MacPython on my Mac. I'd like to know how I can run .py files from the Mac terminal without having to make them executable. I'd like to write a command line like this one: [ICODE]python file.py other_inputs[/ICODE] Thanks a lot!! Py Lame???? Programming Software Development by Stefano Mtangoo … suitable lame bindings. After loooong googling and metacrawling, I found py-lame. The problem is, when I try to compile it… py 2 exe with tkinter Programming Software Development by Mensa180 Hi all, I can convert my .py or .pyw files into EXE no problem. The thing is … .py to .pbp Programming Software Development by lucksoar Hello, I was curious to know if there was some way to change a .py file to a .pbp file. I know that I can easily make an .exe file with py2exe, is there something like that for pbp?