-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError: [Errno 2] No such file or directory: 'default.txt' #25
Comments
Based on the FHS, the directory should be something like |
FYI, https://stackoverflow.com/questions/4519127/setuptools-package-data-folder-location
|
What commands did you use to install Typically it's installed via I haven't tried using Alternatively, you could just specify the full path of the list file you're trying to use, like:
Does that work? |
I already mentioned that I installed the tool using setup.py.
P.S. Please help to reply faster so I would remember about it. |
This project is just a hobby of mine, so I maintain it as I have the time and motivation. I'm curious about the exact command you ran with
So I'm curious why this works for most flavors of Linux, but not Gentoo. Regardless, I've pushed a new commit (7c666e4) that hopefully fixes your issue. Could you pull down the latest code and see if it works as you'd expect? |
somehow, files under "lists/*" are not longer getting installed. Any ideas? |
It appears as though Python has some severe deficiencies when using
I'll continue to investigate. It still seems weird to me that |
I'm installing it in a sandbox, could it be an issue?
|
Hmm, maybe. What type of sandbox are you using? Also, it looks like you're trying to install
Where does that file come from? I've been distributing If you can obtain the wheel distribution you should be able to install that with
I suspect the Also, previously you mentioned "FHS":
What's "FHS"? Thanks for helping me debug this :) |
Okay, I was finally able to reproduce! It'll be much easier to debug now! |
ok, good to hear. P.S.
|
I had to revert back the change from |
Can you post the updated patch please? |
Ok, so we are back to FHS discussion. The files are getting installed into |
I'm sorry to hear that installation is not working on your machine. However, I'm unable to reproduce your issue on standard Linux distributions. All distros I've tested have installed the files in a predictable place: Ubuntu 16.04:
Debian 8:
Centos 7:
Further, running If you'd like to debug your specific environment further and post a pull request I'd be happy to review it. If not, I'd recommend you follow the official installation procedure and install via the wheel file. |
Please re-open the issue, here is the latest log:
|
I'm reading documentation and here it is:
So it looks like you are facing the issue with wheel, pypa/wheel#92 However, it is clear from the documentation that files should not be installed there. |
Okay, what's your purposed solution? It appears the problem here (among the many problems with Python's packaging system) is the usage of Further, I re-attempted to include this files with |
I'm not a Python expert, but the issue seems with the absolute path based on the description. |
Okay, it appears that With that being said, there was a reason I wasn't distributing the Sound good? |
I have tested the latest git and confirm that the issue is fixed finally |
Just a heads up, I've officially released 👍 |
Please excuse me for bothering you with all these unrelated bugs but it seems paid off. The last project (wifite2) have managed to resolve the issue better. Now they install shared data into /usr/share using Thanks |
ping? |
and ping |
Hi, I have installed the tool as system module using provided setup.py. It installed .txt files into "/usr" prefix as below:
The tool is unable to find that location and fails with the following error:
The problem seems with find_subdomain_list_file function as it tries to find that location in the current directly only.
The text was updated successfully, but these errors were encountered: