Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
file.exists
- Page 1
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
4 Hours Ago
by Hanginium65
…(): # Read the contents... logger.info(f"Is regular
file
: {file_info.name}") file_contents = file_tar_bz2.extractfile(file_info).read() …else: {tarinfo.name}. Skip it") continue # Create a
file
-like object from the contents... file_like_object = io.BytesIO(file_contents) …
Slaying Unicorns: How Europe Sabotages Its Own Economic Future
Community Center
22 Hours Ago
by Johannes C.
… some reason, the [heavily subsidized European](https://rm.coe.int/
file
-2-marius-report-eng/1680a4d519) media hardly mentions such issues…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
3 Hours Ago
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?
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
6 Days Ago
by Hanginium65
…script. when it comes to the compressed
file
that ends with the extension .tar.bz2…the contents of the compressed Netbox media backup
file
my_file_like_object = io.BytesIO(file_contents) # Upload …script. Python Traceback (most recent call last):
File
"/opt/scripts/netbox_backups_transfer.py", line …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
5 Days Ago
by Salem
… This is
file
1 $ cat foo_2.txt This is
file
2 This is
file
two This is
file
too # …data is the same as the uncompressed tar
file
. with gzip.open('/var/backup/netbox_backups/netbox_2024-03…rawbytes)) 181 In other words, treat every single
file
the same way with. with open('/var/backup/…
Re: Redirect non-www to www cons?
Digital Media
Digital Marketing
Search Engine Strategies
3 Days Ago
by Read a Book
… of the URL. I ensured and updated the search.php
file
which was redirecting to `non-www` version, now is fine… do this? I already have that rule in the `.htaccess`
file
. This should be in somewhere else place ? UPDATE: I did…
Re: How to disable the automatic swipe effect on the product page?
Programming
Web Development
6 Days Ago
by Dani
… carousel is concerned, I see a link to the javascript
file
https://www.kupisi.mk/js/dz.carousel.js at the…
Re: Redirect non-www to www cons?
Digital Media
Digital Marketing
Search Engine Strategies
5 Days Ago
by Read a Book
… from non-www to www. I have code in `.htaccess`
file
` # Redirect non-www to www RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule…
Re: Redirect non-www to www cons?
Digital Media
Digital Marketing
Search Engine Strategies
3 Days Ago
by Read a Book
…/4/d438c9a839df9a1bdf5fbf4256f29a2f.png) i am using this code in htaccess
file
to rewrite the URL's # Rewrite product URLs RewriteRule ^product…
Re: Redirect non-www to www cons?
Digital Media
Digital Marketing
Search Engine Strategies
2 Days Ago
by Dani
You are correctly implementing 301 redirects in an .htaccess
file
. Ensure that the redirects point to the exact same URL as you have in the canonical. Additionally, ensure that all internal links throughout your site point to that same URL as well.
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Week Ago
by usmanmalik57
…service-account) and download the JSON credentials
file
for the project. Next, you need…value to the path of the JSON
file
you just downloaded. ``` os.environ['GOOGLE_APPLICATION_CREDENTIALS'] …= "PATH_TO_VERTEX_AI_SERVICE_ACCOUNT JSON
FILE
" ``` The rest of the process is…
How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
3 Weeks Ago
by A_957
… to find and correct, advice is highly appreciated: Chatbox.py
file
: from flask import Flask, render_template, request, jsonify import logging from…;: response}) if name == 'main': app.run(debug=True) In html
file
: $(document).ready(function(){ $('#enterButton').click(function(){ var user_input = $('#inputPrompt').val…
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Audun
…; %Run 'open cv - tot.py' Traceback (most recent call last):
File
"C:\Users\Audun Nilsen\open cv - tot.py"…; %Run 'open cv - tot.py' Traceback (most recent call last):
File
"C:\Users\Audun Nilsen\open cv - tot.py"…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
4 Weeks Ago
by usmanmalik57
…). Using the following script, you can import your `Kaggle.json`
file
containing your Kaggle API key into Google Colab. ``` from google…
A module that comes with Python, doesn´t register?
Programming
Web Development
1 Week Ago
by Audun
…: %Run 'open cv - tot.py' Traceback (most recent call last):
File
"C:\Users\Audun Nilsen\open cv - tot.py"…
ABC for Github-programs and Python
Programming
Software Development
1 Week Ago
by Audun
… a blank program with basic stuff in place, like a
file
menu on the top, keyboard and mouse-compatibility, and stuff…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
… are the values of BASE_URL and READ_LEX? Additionally, your .htaccess
file
said readlex.php but in your example in your previous….php. You should be able to use the following .htaccess
file
I have below to convert: http://localhost/readlex.php?slug…
Re: GCC Fails to Recognize Parameters
Programming
1 Week Ago
by toneewa
…; This program reads and prints the information of a mp4
file
. extern "C" { #include <libavformat/avformat.h…(ret < 0) { av_log(NULL, AV_LOG_ERROR, "Cannot open input
file
\n"); return -1; } // find stream information. ret = avformat_find_stream_info(…
Re: DomContentLoaded vs jQuery Ready fn
Programming
Web Development
1 Week Ago
by jkon
…. Given the fact that I load jQuery (in one minified
file
that contains also every JavaScript that this part of the… loader function { _fncl=true; //I load here the minified JavaScript
file
that contains jQuery }; window.addEventListener("DOMContentLoaded", _fnc); window…
Re: How to disable the automatic swipe effect on the product page?
Programming
Web Development
1 Week Ago
by Read a Book
… set to 0. I uploaded the full code from the
file
`lightgallery.min.js` here is the pastebin link to it…
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Week Ago
by Dani
…() function is configured to use SMTP in your php.ini
file
. A lot of SMTP servers switched over the past year…
Re: Postfix authentication problem
Hardware and Software
Linux and Unix
2 Weeks Ago
by chickenbirds
> I am trying to set-up Postfix on my Ubuntu local web development machine for send-only e-mails using Gmail so I can test e-mails sent by a web app I am developing. Even though this is an old post I wanted to reply as I found it while trying to setup my own postfix mailrelay on my private cloud server with Debian that hosts our small …
Re: How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
3 Weeks Ago
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
2 Weeks Ago
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: Help with functions - basics
Programming
4 Weeks Ago
by jkon
It seems that the issue has nothing to do with C++ or with functions. If you are new to programming why not try some tutorials in an easy accessible language (like JavaScript for example) and when you understand a few basics ( like null , functions , variables , loops , conditions ) move to a C++ tutorial for beginners ?
Re: Help with functions - basics
Programming
3 Weeks Ago
by learnerya
Starting from the basics, I have just started learning
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Audun
Sorry for the weird formatting..
Re: A module that comes with Python, doesn´t register?
Programming
Web Development
1 Week Ago
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: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Reverend Jim
What happens if you open a python shell and just type "import cv2"? As I said in your other thread, the problem might be with python 3.12. It imports ok under 3.10.
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Audun
I tried that using Thonny, and I´m getting the same result. I tried the same in the "CMD" that opens when I press Python 3.12, and what happened was, it just said nothing and went back to an empty "line", or whatever. I suppose that´s a good sign? It says syntax error a lot on there too. What sort of programs do you use …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC