Error Installing Libffm: 'No such file or directory.' - python

I am presently trying to install the Python wrapper of libffm stored in this Git repository. I cloned both the repositories as was suggested by the quick-start guide, but ran into the following error when running the 'make' command in terminal.
'fatal error: parallel/winpthreadsll.h: No such file or directory'
I attached a screenshot below for convenience. The funny thing is that when I check in the specified directory, 'winpthreadsll.h' does indeed exist. Thoughts on why this error occurs? Thanks!
Screenshot of Error

You reported it in issue 10, but that was already reported in issue 5.
See "gcc/g++: “No such file or directory”", and see if you can indicate to the compiler where the parent folder of parallel/winpthreadsll.h is.

Related

Xcode swift iOS project gives "usr/bin/python no such file or directory" error when try to build project

I am experiencing the problem after the macOS 12.3 Monterey update. I get the following error when I want to run the project. There is a code looking for "/usr/bin/python" in the project, but I couldn't find which part of code/framework/script etc. is looking for that path in my project. There is no problem in the path "usr/local/bin/python", but my project gives the error that I cannot find the path to "usr/bin/python". When I looked there, "/usr/bin/python3" exist. Unfortunately, since it is the system folder, I cannot make any changes(add or remove files or links) in that folder.
First you need to install python2. This can be done according to the guide
Then it is necessary in the file
{PATH_TO_PROJECT}/scripts/licenses/importLicensePods.py
replace the first line with #!/usr/bin/python to #!/usr/bin/local/python

RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat?

I´ve made a project with python OpenCV, and used the shape_predictor_68... a .dat file.
Now when I build the project with cx_freeze, everything does right, but when I run the app build, it shows a error.
I am also facing the same issue but after some search, I get to know my shape_predictor_68_face_landmarks.dat is not updated or correct so I replace it with another and issue resolved, the link for the new shape_predictor_68_face_landmarks.dat file is
https://github.com/AKSHAYUBHAT/TensorFace/blob/master/openface/models/dlib/shape_predictor_68_face_landmarks.dat
replace the new file with older one.
Referring the solution to a similar issue here
If you are getting this error:
RuntimeError: Unable to open /home/lyz/openface-master/demos/web/../../models/dlib/shape_predictor_68_face_landmarks.dat
You probably haven't downloaded dlibs models properly, perform Step 4 from https://cmusatyalab.github.io/openface/setup/ again. In short, cd into your openface library and run
./models/get-models.sh
Also, I can't tell how you are running this but it could also be a case that the library may not be correctly imported in your current venv - where your interpreter is.
Install dlib correctly and just paste this .dat file in the same working directory as your code is present and try to run the code.
The link is
http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
You can find the .dat file here after extracting a WinZip file that can be downloaded from the dlib.net website.

How to download python linter in vscode with this error

its a very dummy question but i couldn't figure it out. When i try to download a linter from vscode the problem shows up
C:\Users\burak kaya\AppData\Local\Programs\Python\Python37\python.exe: can't open file 'c:\Users\burak': [Errno 2] No such file or directory
The problem occurred due to the whitespace in my folder(Which is automatically created by Windows and i couldn't change it)
I tried to change my user name and the folder name is still same and need to download the linter.
I download linter with pip but vscode don't see that. It still asking to install a linter to me.
So you can't just change the name of the folder and call it a day. Changing the username and folder on Windows is a bit more involved and requires you to modify the registry. Here's a quick video that gives instructions. I've done this twice.
https://www.youtube.com/watch?v=w5N2aaiToiQ
At the beginning, when he says you need to create a local user account, you don't need to do that. The user is already created which, for you, appears to be burak kaya.

Error when running tests with nose-gae

I've been using nose-gae for awhile, and I just updated to release 0.3.0, which is only 3 days old. I'm running GAE SDK 1.9.17 on Mac OS X Yosemite.
When I run my tests, I get the following error:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python:
can't open file
'/Library/Frameworks/Python.framework/Versions/2.7/bin/_python_runtime.py':
[Errno 2] No such file or directory
Sure enough, that file doesn't exist. My tests appear to run successfully however (test output below). I don't see any such errors when running the dev_appserver.
I don't know what _python_runtime.py is and what is causing the error. Any help figuring out what is going on would be appreciated.
====
$ nosetests -x tests/functional_tests.py
................/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Library/Frameworks/Python.framework/Versions/2.7/bin/_python_runtime.py': [Errno 2] No such file or directory
...
----------------------------------------------------------------------
Ran 19 tests in 11.032s
OK
This module _python_runtime.py should be in the SDK root folder. (confirmation here https://code.google.com/p/googleappengine/source/browse/trunk/python/)
Are you sure that it is included in your PATH? If yes -- it is best to fill an issue here, such nose-gae still buggy after update.
UPDATE this issue is solved with latest NoseGAE update, which is currently in dev branch here. Just clone it and use sudo python setup.py install to update it.
I think the problem is that nose-gae uses the old devappserver rather than the newer one. The old devappserver was removed from the SDK in 1.9.17.

Fabric put command gives fatal error: 'No such file' exception

I'm using Fabric 1.01, and in my fabfile I'm using the put command. The line is:
put('file.tar.gz', '~/file.tar.gz')
The server is in the env.hosts list. file.tar.gz is in the same directory as the fabfile, and i'm running the code from this directory.
When I run the code, it gets up to the point where it is running this put command. Just before failing the output is:
[uname#site.com] put: file.tar.gz -> ~/file.tar.gz
Fatal error: put() encountered an exception while uploading 'file.tar.gz'
Underlying exception message:
No such file
Anyone know where this is coming from? The file definitely exists on my local machine, and I've also tried the second put() argument as just '/server/path/to/' and I've tried using the absolute path of the file for the first put() argument, all to no avail.
I found this error message rather misleading. The message that is printed is:
Fatal error: put() encountered an exception while uploading 'local/path'
Underlying exception:
No such file
Which leads you to think the problem is that somehow Python isn't seeing the file at local/path. I'm not certain this is never the case, but both in the case of the original question and in my case, the issue had nothing to do with that, and instead the issue was that the remote folder couldn't be found. Since this command won't automatically create any folders in the path that it doesn't find, it fails when it can't find any of the remote folders in the remote path.
In my particular case, the issue was that I provided a path that I intended to be interpreted as absolute on a remote Linux system, but I left off the initial /.
Oops, I got lazy when anonymizing the question. My code contained a tilde:
put('file.tar.gz', '~/file.tar.gz')
Apparently Fabric did the tilde interpolation using the home directory of my local machine, not the server. After replacing the tilde with the explicit path on the server it works fine.
The error could be more descriptive indeed. I thought that the file I was trying to upload was not found, but actually the directory where I wanted to upload the file to did not exist. After creating the directory, the error was resolved for me.

Categories