Keep getting Errno 13 while trying to install Doki Doki Blue Skies (Using the mod launcher) reddit.com/gallery/s3lg04
πŸ‘︎ 30
πŸ’¬︎
πŸ‘€︎ u/twi--
πŸ“…︎ Jan 14 2022
🚨︎ report
Got an error from the game that crashes it when I access the second computer. How do I fix it? Its called Errno.

Got an error from the game that crashes it when I access the second computer. How do I fix it? Its called Errno.

Here is the link to show the error. Playing on Mac.

https://imgur.com/gallery/MCV7z6X

πŸ‘︎ 30
πŸ’¬︎
πŸ‘€︎ u/Evoxrus_XV
πŸ“…︎ Dec 27 2021
🚨︎ report
Getting FileNotFoundError: [Errno 2] No such file or directory: from Notepad++ when trying to open a file with a script but not when running it with other IDE or from Command Line

My code is:

with open('pi_digits.txt') as file_object:
    contents = file_object.read()
print(contents)

and I'm getting:

Traceback (most recent call last):
  File "C:\Users\swagd\Downloads\Python Crash Course\Book\python_work\file_reader.py", line 1, in <module>
    with open('pi_digits.txt') as file_object:
FileNotFoundError: [Errno 2] No such file or directory: 'pi_digits.txt'

The file pi_digits.txt is in the same folder as file_reader.py, so I assume Notepad++ is running itself somewhere outside of the folder? If so, how would I get it to run in the same folder?

Change the path to the full path didn't make a difference. I'm thinking about just switching to another IDE from here on out.

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/basedguy
πŸ“…︎ Jan 06 2022
🚨︎ report
HELP! FileNotFoundError: [Errno 2] No such file or directory:
import PyPDF2 
import sys  
inputs = sys.argv[1:] 
def pdf_combiner(pdf_list):     
    merger = PyPDF2.PdfFileMerger()     
    for pdf in pdf_list:         
        print(pdf)         
        merger.append(pdf)     
    merger.write('superry.pdf')   

pdf_combiner(inputs) 

this is the code, how to reslove this error? I'm noob

how i'm passing

python why.py dummy.pdf twopage.pdf

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/serenatxt
πŸ“…︎ Jan 09 2022
🚨︎ report
FileNotFoundError: [Errno 2] No such file or directory: '/etc/resolv.conf' when cron job is running

This is a normal error which can be fixed using

termux-chroot

> The code works properly when running mannually after termux-chroot command is used, but it fails when trying to run via cron job.

THEE ERROR:

Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/dns/resolver.py", line 782, in read_resolv_conf
    f = stack.enter_context(open(f))
FileNotFoundError: [Errno 2] No such file or directory: '/etc/resolv.conf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pymongo/srv_resolver.py", line 88, in _resolve_uri
    results = _resolve('_' + self.__srv + '._tcp.' + self.__fqdn,
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pymongo/srv_resolver.py", line 41, in _resolve
    return resolver.resolve(*args, **kwargs)
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/dns/resolver.py", line 1305, in resolve
    return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source,
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/dns/resolver.py", line 1278, in get_default_resolver
    reset_default_resolver()
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/dns/resolver.py", line 1290, in reset_default_resolver
    default_resolver = Resolver()
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/dns/resolver.py", line 734, in __init__
    self.read_resolv_conf(filename)
  File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/dns/resolver.py", line 785, in read_resolv_conf
    raise NoResolverConfiguration
dns.resolver.NoResolverConfiguration: Resolver configuration could not be read or specified no nameservers.

During handling of the above exception, another exception occurred:
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/_3rdi
πŸ“…︎ Jan 03 2022
🚨︎ report
PermissionError: [Errno 13] Permission denied: 'example.zip'

I'm currently reading and studying from the book "Automate the boring stuff with Python", and there is this exercise about zip files. So i have to type this out:

import os
import zipfile

os.chdir("C:\\")
exampleZip = zipfile.ZipFile("example.zip")

But then i get this error:

Traceback (most recent call last):

File "C:\Users\Usuario\PycharmProjects\pythonProject4\practice.py", line 5, in <module>

exampleZip = zipfile.ZipFile('example.zip', 'w')

File "C:\Users\Usuario\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1240, in __init__

self.fp = io.open(file, filemode)

PermissionError: [Errno 13] Permission denied: 'example.zip'

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/EstoyResfriado
πŸ“…︎ Dec 15 2021
🚨︎ report
I am trying to build perl 5.18.2 on RedHat 8, I am using gcc 10.3.0. This test case is failing, and due to the issue with the Errno module, other tests are failing too. Im not using any build options expect -des and -Dprefix. Anyone faced this before or could point me where can I get help, thanks.
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/sarcasmwala
πŸ“…︎ Dec 06 2021
🚨︎ report
OSError: [Errno 38] Function not implemented when yt-dlp

When I try to run a yt-dlp download command (https://gist.github.com/RealCyGuy/43291c70392ca6ee335a6871175a54c8#file-android-sh), this error shows up. It worked before the i recently updated my phone.

Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/yt-dlp", line 8, in &lt;module&gt; sys.exit(main()) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/yt_dlp/init.py", line 823, in main _real_main(argv) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/yt_dlp/init.py", line 784, in _real_main with YoutubeDL(ydl_opts) as ydl: File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 670, in init
preload_download_archive(self.params.get('download_archive'))
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 660, in preload_download_archive with locked_file(fn, 'r', encoding='utf-8') as archive_file: File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/yt_dlp/utils.py", line 3594, in enter
_lock_file(self.f, exclusive) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/yt_dlp/utils.py", line 3571, in _lock_file fcntl.flock(f, fcntl.LOCK_EX if exclusive else fcntl.LOCK_SH)
OSError: [Errno 38] Function not implemented```
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/RealCyGuy
πŸ“…︎ Dec 12 2021
🚨︎ report
ConnectionResetError: Errno 54 Connection reset by peer

I started a new project and have been getting the ConnectionResetError 54 on seemingly every request. This is locally on my computer. Any ideas?

Exception occurred during processing of request from ('127.0.0.1', 63326)
Traceback (most recent call last):
  File "/usr/local/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socketserver.py", line 747, in __init__
    self.handle()
  File "/Users/emilepetrone/.envs/2021/star/lib/python3.9/site-packages/django/core/servers/basehttp.py", line 174, in handle
    self.handle_one_request()
  File "/Users/emilepetrone/.envs/2021/star/lib/python3.9/site-packages/django/core/servers/basehttp.py", line 182, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/local/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/emilepetrone
πŸ“…︎ Dec 14 2021
🚨︎ report
'[errno 2] no such file or directory' in health details after huge cluster update

I made the mistake of doing an EL8 update on 1 of my 5 nodes in my test cluster, that also updated the kernel, and also updated Ceph from 16.2.5 to 16.2.6 - all in the same yum update. A little over-eager, not cautious enough, even if it is "just" a test cluster.

I ended up with an error in CEPH HEALTH DETAIL:

ceph01.local&gt; ceph health detail
HEALTH_WARN failed to probe daemons or devices
[WRN] CEPHADM_REFRESH_FAILED: failed to probe daemons or devices
    host ceph01.local `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Inferring config /var/lib/ceph/fsidguid/mon.admin/config
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/fsidguid/mon.admin/config'

I made this error go away simply by creating the directory and an empty file named config... but anyone have any idea where this came from and if this was a silly/wrong way to 'fix' the problem? When I first made this cluster a few months ago, before I just had cephadm generate new, randomly named mon daemons for myself, I made a mon named mon.admin. But it hasn't been in use for months either.

Happy to be 'easily' rid of the error but not sure if I did the right thing.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/TechGoat
πŸ“…︎ Oct 28 2021
🚨︎ report
Using OMV & Docker. Bazarr issue (OSError: [Errno 99] Address not available) Cant figure out how to solve.

Hi everyone, I have a media server running transmission_VPN and all of my other containers using my VPN (Radarr, Sonarr, Ombi, Jackett, & Bazarr) everything works fine except Bazarr. I't's been a while since I installed it and it was working fine however I realized that Bazarr is no longer working. I have googled and it looks like I need to edit the config file so it listens to connections on the correct IP but I cant figure out how exactly to do this. I have tried removing the image and reinstalling it as well as deleting it from my stack and readding it. I feel like this is going to be a very simple fix but feel that I'm just not smart enough to know how to resolve it.

I can access the web UI for everything except Bazarr, see log below:

return self.socket.bind(addr)

OSError: [Errno 99] Address not available

Python 3.9.x is unsupported. Current version is 3.9.5. Keep in mind that even if it works, you're on your own.

Bazarr starting...

Bazarr exited.

Traceback (most recent call last):

File "/app/bazarr/bin/bazarr/main.py", line 37, in <module>

from server import app, webserver

File "/app/bazarr/bin/bazarr/server.py", line 78, in <module>

webserver = Server()

File "/app/bazarr/bin/bazarr/server.py", line 29, in __init__

self.server = create_server(app,

File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 78, in create_server

last_serv = TcpWSGIServer(

File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 244, in __init__

self.bind_server_socket()

File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 361, in bind_server_socket

self.bind(sockaddr)

File "/app/bazarr/bin/bazarr/../libs/waitress/wasyncore.py", line 396, in bind

return self.socket.bind(addr)

OSError: [Errno 99] Address not available

Python 3.9.x is unsupported. Current version is 3.9.5. Keep in mind that even if it works, you're on your own.

Bazarr starting...

Bazarr exited.

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/Buildinggam
πŸ“…︎ Nov 21 2021
🚨︎ report
Ruby error in Sass transpilation: Errno :: ENOENT: No files or directories of this type @ rb_sysopen test.scss Use --trace for backtrace.

After downloading Ruby and entering the Ruby start command prompt, gem install sass I created a test.scss file on atom and then I tried to transpile by writing in the Ruby prompt, sass test.scss test.css but it gives me this error message: Errno :: ENOENT: No files or directories of this type @ rb_sysopen test.scss Use --trace for backtrace. I don't know how to solve the problem, I also tried to create a test.css file and I redid the procedure but it always gives me the same result. Other commands given at the Ruby prompt also give error messages (the only one that does not give it is precisely gem install sass even if it says that ruby sass has reached the end and should not be used anymore, but despite this it installs it, I installed the sass 3.7.4 version. Thanks to those who will answer me.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/DaniJ1233
πŸ“…︎ Nov 06 2021
🚨︎ report
FileNotFoundError: [Errno 2] No such file or directory

I am new to Python and VS Code. I really enjoy VS Code over using PyCharm.

Git Repository: https://github.com/GitOutlaw/100-days-of-code.git

OS: Windows 11 Pro 64 bit

VS Code Version: 1.61.2

I am trying to use a relative path in VS Code and I am receiving the following error in my terminal:

FileNotFoundError: [Errno 2] No such file or directory: './my_file.txt'

I have been searching google over 2 hours trying figure this out. Apologies if this has been asked already.

Here is the absolute path:

E:/dev/gits/100-days-of-code/day24/read_write/my_file.txt

This works in VS Code:

with open("day24/read_write/my_file.txt", encoding="utf8") as file:
    contents = file.read()
    print(contents)

The code below works in Pycharm but not in VS Code.

with open("./my_file.txt", encoding="utf8") as file:
    contents = file.read()
    print(contents)

I have tried ../../ as well.

Any help would be extremely helpful and I would be very grateful, thank you!

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Outlaw_Star77
πŸ“…︎ Oct 21 2021
🚨︎ report
What is Errno -4058 ? And how do I resolve this? ( I’m using Hashlips art engine for generative art )
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Gra_mZ05
πŸ“…︎ Dec 21 2021
🚨︎ report
Playlist downloading encounting [Errno 99] address not available. Possible to retry?

Using yt-dlp to download playlists, occasionally the download will stop and throw an error: ERROR: unable to download video data: &lt;urlopen error [Errno 99] Address not available&gt; and then it immediately moves on to the next task, be it conversion or downloading the next video in the list.

I've searched far and wide and not seen this error reported anywhere before. It doesn't seem major, and re-running the download command again typically resumes the download to completion, so I'm guessing it's just a timeout or packet loss perhaps.

Is there a way to detect this error message, and retry it a number of times, or any other solutions that can be used to attempt the download again if this error is detected?

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/ZionFox
πŸ“…︎ Dec 08 2021
🚨︎ report
can't run quasar dev, getting errno -3008, it was working fine for month but not anymore

when I run quasar dev I get this error:

 App β€’ ⚠️  Unknown network error occurred
[  Error: getaddrinfo ENOTFOUND envios.test
] {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'envios.test'
}

It was working fine for months, haven't done anything new to my pc, perhaps shutting down the pc with the server running, but thats about it.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/gazorpazorbian
πŸ“…︎ Nov 13 2021
🚨︎ report
OSError: [Errno 98] Address already in use

I'm new to Flask so bear with me- I know this should have a fairly straightforward solution. The port is already in use, so I've got to either stop the service running on the port or find a new port.

The problem is that based off netstat, the port's not being used by anything. I've tried changing the port to increasingly obscure values (5000, 5001, 5050, 4747, 28, 37, etc) and always get the same error. I saw a few instances where killing Python processes solved the issue so I killed what I could (two were running with static PIDs, one keeps changing its PID every time I query), but this didn't do anything either. I've even tried different machines (both my Ubuntu VM and Debian host). I'm at my wit's end here. Any advice would be appreciated.

  • Python 3.8.10
  • Flask 1.1.1
  • Werkzeug 0.16.1
  • pip 21.2.4

Section of code I'm using to define ports:

if __name__ == '__main__':
    app.run(host='0.0.0.0', port'5000')

The full output of flask run is:

 * Serving Flask app "flask_app.py"
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
Traceback (most recent call last):
  File "/usr/bin/flask", line 11, in &lt;module&gt;
    load_entry_point('Flask==1.1.1', 'console_scripts', 'flask')()
  File "/usr/lib/python3/dist-packages/flask/cli.py", line 966, in main
    cli.main(prog_name="python -m flask" if as_module else None)
  File "/usr/lib/python3/dist-packages/flask/cli.py", line 586, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/flask/cli.py", line 852, in run_command
... keep reading on reddit ➑

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/mooseman1885
πŸ“…︎ Sep 27 2021
🚨︎ report
I have an "[Errno 22] Created card date". Tried disabling add-ons too.

As the title states... I tried restarting Anki, my PC, booting up in safe mode but nothing seems to work. When I search "added:x" for any random date, the cards with the error pop up like they have been added x date. When I boot Anki in safe mode, same thing applies. The cards pop up as added any x days ago. The error:

A fatal error occurred, and Anki must close. Please report this message on the forums.

Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Platform: Windows 10

Flags: frz=True ao=False sv=?

Add-ons, last update check: 2021-10-11 09:49:19

Caught exception:

Traceback (most recent call last):

File "aqt\browser\browser.py", line 515, in showCardInfo

File "aqt\browser\card_info.py", line 21, in __init__

File "anki\stats.py", line 36, in report

File "anki\collection.py", line 823, in card_stats

File "anki\_backend\generated.py", line 804, in card_stats

File "anki\_backend\__init__.py", line 126, in _run_command

pyo3_runtime.PanicException: SystemTimeToFileTime failed with: The parameter is incorrect. (os error 87)

Mods feel free to change the tag if the "question" tag is more appropriate.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/MTTR2001
πŸ“…︎ Oct 11 2021
🚨︎ report
trending.rb:15:in `initialize': No such file or directory @ rb_sysopen - <URL_HERE>(Errno::ENOENT)

I need some help please as I am getting this error. Code posted below.

When I enter the CLI command:

ruby trending.rb Go &gt; data/trending_go.txt

It returns this error:

trending.rb:15:in `initialize': No such file or directory @ rb_sysopen - https://github.com/trending/Go?since=monthly (Errno::ENOENT)
        from trending.rb:15:in `open'
        from trending.rb:15:in `&lt;main&gt;'

The code is:

require 'open-uri'

require 'bundler'
Bundler.require(:default)

language = ARGV.first

if language.empty?
  STDERR.puts "Please specify language as the first argument"
  exit 1
end

url = "https://github.com/trending/#{language}?since=monthly"

html = Nokogiri::HTML.parse(open(url))
html.css('.repo-list h3 a').each do |a|
  puts 'https://github.com' + a['href']
end

Funny thing is that the code actually resolves the URL, but then fails. I spent all Friday on this and I'm stuck. Any help would be appreciated.

Running on Ubuntu. I have all the correct versions and gems etc.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/SoldadoAruanda
πŸ“…︎ Nov 15 2021
🚨︎ report
An error occurred connecting to API. (Connection error: [Errno 111] connection refused). We are bombarded with emails getting all false alarms, how can this be fixed ?
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Ugraya
πŸ“…︎ Sep 27 2021
🚨︎ report
Do malloc/calloc/realloc set errno ?

A copy of the C11 spec, page 347 (Freely available N1570 draft, link) :

>If the space cannot be allocated, a null pointer is returned. If the size of the space requested is zero, the behavior is implementation-defined: either a null pointer is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object.

And according to en.cpprefrence.com :

>On failure, returns a null pointer.

Similarly on linux.die.net/man :

>On error, these functions return NULL

So there is no reference to setting errno upon allocation failure.

However, on macOS, man malloc, aka BSD Library Functions Manual , state :

>If there is an error, they return a NULL pointer and set errno to ENOMEM.

This is said without any mention at all to the behaviour being non-standard, which is how it is does elsewhere for such 'extensions'.

I am rudely shocked because I've been relying on allocation functions setting errno upon failure in a whole lot of my code ( for printing error messages with strerror() and the like) because I learn it would do so from the manpage. Does it do so anywhere other than macOS ?

πŸ‘︎ 43
πŸ’¬︎
πŸ“…︎ Sep 02 2021
🚨︎ report
Trouble understanding errno

Hi r/C_Programming,

I'm having a little bit of trouble understanding what errno actually is. Specifically, what is the difference between it and say the return value of a function?

Many standard functions seem to define a return value of 0 for success and -1 for failure, but then also mention that errno is set appropriately. Return Value in the manual page for chdir gives an example of this.

Is errno a variable that is external to the program (I've read that it can be accessed to determine exactly what the kind of error is).

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/goandgowithmilo
πŸ“…︎ Aug 23 2021
🚨︎ report
SocketException: OS Error: Broken pipe, errno = 32, address = domain.com, port = 48384

In brief... I have a flutter-2 app for e-commerce purposes that can create a post with either of image or video.. So when creating a post with big video (50MB+) i get the error above

The api is written in laravel 5.2 and the request max file size is 1GB. I also checked the host server Php.ini file and all the limitations are good

Have anyone experienced this before? Its been about 10 hours and couldn't restrain it... Or at least get to know if it is from the server, api, cloud flare, or the dio http package of flutter

And thanks in advance.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Pro-san
πŸ“…︎ Sep 01 2021
🚨︎ report
[Errno 30] while installing Linux Mint

Hello,
My PC used to work on linuxmint 20.1 xfce 64bit. But recently, it started showing (initramfs) instead of booting up. I tried this to solve that issue. But it persisted. So I decided to do a clean install of Linux mint on my PC to solve this issue. Almost at the end of the installation, I'm getting this error which says the installer encountered an error. How can I solve this error? I'm pretty new to linux and would really like the help.

https://preview.redd.it/7sq0irnmmgj71.png?width=480&format=png&auto=webp&s=b160841bfd99e5544842ae100c442f3f68d2c09e

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/SpongeBaabu
πŸ“…︎ Aug 25 2021
🚨︎ report
Intellij IDE: [Errno 2] No such file or directory

Hello,

when I want to execute a Python script with the internel Run button in Ideallij IDE he exits with following error command:

"C:\Program Files\Python310\python.exe" C:/Users/Niklas/Documents/code/main.py

C:\Program Files\Python310\python.exe: can't open file 'C:\\Users\\Niklas\\Documents\\code\\main.py': [Errno 2] No such file or directory

Process finished with exit code 2

The script and the python interpreter works in Visual Studio Code like it should. I already restartet my PC. In the project structure the Project SDK is deployed correctly. When I execute the script via the Terminal, it works. I already reinstalled the programm.

Im using Windows 11 Build: 22000.194

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/DerNikkl
πŸ“…︎ Oct 09 2021
🚨︎ report
Colab FileNotFoundError: [Errno 2] No such file or directory: 'labelfile_path'

I have 2 folders that I have mounted in my data folder on G-drive. So the structure is

Data -> Train and Test folders --> Train has Trainlabel and Trainimage. Test has 500 Testlabel in CSV format and Testimage has 500 images in jpg format. However, I am not able to open all the labels CSV. The last line is giving an error. Can anyone please help? I have wasted 2 days to get around this issue:

Colab Code is:

FolderA=os.chdirΒ ('/content/gdrive/MyΒ Drive/Data/Train/1_Trainlabel/') FolderB=os.chdirΒ ('/content/gdrive/MyΒ Drive/Data/Train/1_Trainimage/')  a=os.listdir(FolderA)   
forΒ kΒ in range(len(a)):   
        Label_folder='/content/gdrive/MyΒ Drive/Data/Train/1_Trainlabel'Β +Β '/'Β +Β a[k] 
    img_folder='/content/gdrive/MyΒ Drive/Data/Train/1_Trainimage'Β +Β '/'Β +Β a[k]
        folders=!ls(Label_folder)
        forΒ iΒ in range(len(folders)): Β Β Β Β Β Β Β Β  
                foldername=folders[i]
                Label_folder1Β =Β os.path.join(Label_folder,foldername)
                img_folder1Β =Β os.path.join(img_folder,foldername)
                imgfilesΒ =Β !lsΒ (img_folder1)
                labelfiles=!lsΒ (Label_folder1)
                forΒ jΒ in range(len(labelfiles)):
                    file_name=labelfiles[j]Β Β Β Β Β Β 
                    labelfile_path=os.path.join(Label_folder1,pspifiles[j])
                    imgfile_path=os.path.join(img_folder1,imgfiles[j])
                    labelfile=open("labelfile_path",Β "r") 

This line is resulting in an error. 'FileNotFoundError: [Errno 2] No such file or directory: 'labelfile_path''

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/mathphdresearcher
πŸ“…︎ Oct 10 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.