anyone can help me with this error?
octave:4> pkg install signal-1.2.0.tar.gz
error: the following dependencies where unsatisfied:
signal needs optim >= 1.0.0
signal needs specfun >= 0.0.0
signal needs control >= 2.2.3
signal needs general >= 1.3.2
octave:4> pkg install optim-1.2.2.tar.gz
error: the following dependencies where unsatisfied:
optim needs miscellaneous >= 1.0.10
optim needs struct >= 1.0.10
octave:4> pkg install struct-1.0.10.tar.gz
make: /usr/bin/mkoctfile: Command not found
make: *** [fields2cell.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
/usr/bin/mkoctfile -s fields2cell.cc
make: Leaving directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391, column 9
error: called from:
error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834, column 5
error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383, column 9
I need to install signal package, but I have to download other to work from I have noticed but it gets stuck when installing struct package.
#edit
The same error when trying to install misc~ package.
octave:5> pkg install miscellaneous-1.2.0.tar.gz
error: the following dependencies where unsatisfied:
miscellaneous needs general >= 1.3.1
octave:5> pkg install general-1.3.2.tar.gz
make: /usr/bin/mkoctfile: Command not found
make: *** [__exit__.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-CA6o4U/general/src'
/usr/bin/mkoctfile __exit__.cc
make: Leaving directory `/tmp/oct-CA6o4U/general/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391, column 9
error: called from:
error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834, column 5
error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383, column 9
#edit
additional info:
octave:6> which mkoctfile
`mkoctfile' is a function from the file /usr/share/octave/3.6.2/m/miscellaneous/mkoctfile.m
I have no idea what to do..
You need to install mkoctfile. Depending on your ubuntu version this will be in different packages. It used be in octave-pkg-dev but now is on liboctave-dev.
Ubuntu and Debian place this as separate package because it is only needed if you want to build the packages yourself. They expect you to use the Octave packages that they packaged (sudo apt-get install octave-signal). Their versions will be behind the actual version but the same happens with the Octave version they distribute. That's the price to pay for stability.
Related
I've tried this on Intel and ARM and both times it fails. I'm using a program, that needs to use 2.10.0. The 3.1.0 version works fine. I've played around with different dependencies and dead stuck.
Cam anyone help me figure out how to get this on either Mac?
Here is the error at the end:
#warning "Using deprecated NumPy API, disable it with " \
^
In file included from /private/var/folders/0m/8fmd9y8509v4xdcglsxv5rg40000gn/T/pip-install-0sjv5knz/h5py_75305355e2ca4b928d9fd980a5e2af77/h5py/defs.c:790:
./h5py/api_compat.h:27:10: fatal error: 'hdf5.h' file not found
#include "hdf5.h"
^~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages
Rolling back uninstall of h5py
Moving to /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/h5py-3.8.0.dist-info/
from /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/~5py-3.8.0.dist-info
Moving to /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/h5py/
from /Users/p/.virtualenvs/pzdemo-fawkes/lib/python3.8/site-packages/~5py
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> h5py```
i'm trying to install robotframework-ride pkg on a Virtual Machine (oracle virtual box) of my PC (win10).
I have just installed the following software on VM.
I'm just preparing development environemnt for testing automation with robotframework but there is a problem installing RIDE IDE.
OS: win10
Python version: 3.10.7
packages installed:
numpy==1.23.3
Pillow==9.2.0
Pygments==2.13.0
Pypubsub==4.0.3
pywin32==304
robotframework==5.0.1
six==1.16.0
there conversion problem between '-' and '_', canyou help me please?
log trace:
E:\Python3>pip install robotframework-ride
Collecting robotframework-ride
Using cached robotframework_ride-1.7.4.2-py3-none-any.whl
Collecting wxPython<=4.0.7.post2
Using cached wxPython-4.0.7.post2.tar.gz (68.9 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Pygments in e:\python3\lib\site-packages (from robotframework-ride) (2.13.0)
Requirement already satisfied: PyPubSub in e:\python3\lib\site-packages (from robotframework-ride) (4.0.3)
Requirement already satisfied: Pywin32 in e:\python3\lib\site-packages (from robotframework-ride) (304)
Requirement already satisfied: pillow in e:\python3\lib\site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (9.2.0)
Requirement already satisfied: six in e:\python3\lib\site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.16.0)
Requirement already satisfied: numpy in e:\python3\lib\site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.23.3)
Building wheels for collected packages: wxPython
Building wheel for wxPython (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
E:\Python3\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
E:\Python3\lib\site-packages\setuptools\config\setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
E:\Python3\lib\site-packages\setuptools\dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
running bdist_wheel
running build
Will build using: "E:\Python3\python.exe"
3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.0.7.post2
Running command: build
Running command: build_wx
Command '"E:\Python3\python.exe" -c "import distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\Python3\lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 393, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1740, in return_env
[self.VCIncludes,
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1282, in VCIncludes
return [join(self.si.VCInstallDir, 'Include'),
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 840, in VCInstallDir
raise distutils.errors.DistutilsPlatformError(msg)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.3 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0.448s)
Finished command: build (0.448s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"E:\Python3\python.exe" -u build.py build
Command '"E:\Python3\python.exe" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for wxPython
Running setup.py clean for wxPython
Failed to build wxPython
Installing collected packages: wxPython, robotframework-ride
Attempting uninstall: wxPython
Found existing installation: wxPython 4.2.0
Uninstalling wxPython-4.2.0:
Successfully uninstalled wxPython-4.2.0
Running setup.py install for wxPython ... error
error: subprocess-exited-with-error
× Running setup.py install for wxPython did not run successfully.
│ exit code: 1
╰─> [53 lines of output]
E:\Python3\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
E:\Python3\lib\site-packages\setuptools\config\setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
E:\Python3\lib\site-packages\setuptools\dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
running install
E:\Python3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
Will build using: "E:\Python3\python.exe"
3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.0.7.post2
Running command: build
Running command: build_wx
Command '"E:\Python3\python.exe" -c "import distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\Python3\lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 393, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1740, in return_env
[self.VCIncludes,
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1282, in VCIncludes
return [join(self.si.VCInstallDir, 'Include'),
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 840, in VCInstallDir
raise distutils.errors.DistutilsPlatformError(msg)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.3 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0.392s)
Finished command: build (0.392s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"E:\Python3\python.exe" -u build.py build
Command '"E:\Python3\python.exe" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of wxPython
Moving to e:\python3\lib\site-packages\wx\
from E:\Python3\Lib\site-packages\~x
Moving to e:\python3\lib\site-packages\wxpython-4.2.0.dist-info\
from E:\Python3\Lib\site-packages\~xpython-4.2.0.dist-info
Moving to e:\python3\scripts\helpviewer.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\helpviewer.exe
Moving to e:\python3\scripts\img2png.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\img2png.exe
Moving to e:\python3\scripts\img2py.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\img2py.exe
Moving to e:\python3\scripts\img2xpm.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\img2xpm.exe
Moving to e:\python3\scripts\pycrust.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pycrust.exe
Moving to e:\python3\scripts\pyshell.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pyshell.exe
Moving to e:\python3\scripts\pyslices.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pyslices.exe
Moving to e:\python3\scripts\pyslicesshell.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pyslicesshell.exe
Moving to e:\python3\scripts\pywxrc.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pywxrc.exe
Moving to e:\python3\scripts\wxdemo.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\wxdemo.exe
Moving to e:\python3\scripts\wxdocs.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\wxdocs.exe
Moving to e:\python3\scripts\wxget.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\wxget.exe
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> wxPython
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I am trying to make an app with android studio, i imported chaquopy and python runs it.. (app is ok fine but when start python script cv2 is missing)
in the python program I use opencv so I have to import the library the fact is that if I add:
python {
pip {
install "opencv-python"
}
}
in the defaultconfig and try sync now:
***
Process 'command 'python3.8'' finished with non-zero exit value 1
***
***
Execution failed for task ':app:generateDebugPythonRequirements'.
ModuleNotFoundError: No module named 'distutils.util'
***
***
> Process 'command 'python3.8'' finished with non-zero exit value 1
***
***
ModuleNotFoundError: No module named 'distutils.util'
***
***
Process 'command '/usr/bin/python3.8'' finished with non-zero exit value 1
***
gradle is update at last version
My bad I just need sudo apt-get install python3.8-distutils
now work
You probably need to install the python3-distutils or python3.8-distutils package.
Source: https://askubuntu.com/questions/1239829, which is the first Google result for this error message.
I'm trying to install pytorch
python setup.py install
but it fails as it can't locate libavutil/motion_vector.h
[ 66%] Building CXX object caffe2/CMakeFiles/torch.dir/video/video_input_op.cc.o
In file included from /root/pytorch/caffe2/video/video_input_op.h:15:0,
from /root/pytorch/caffe2/video/video_input_op.cc:1:
/root/pytorch/caffe2/video/video_decoder.h:15:37: fatal error: libavutil/motion_vector.h: No such file or directory
#include <libavutil/motion_vector.h>
^
compilation terminated.
[ 66%] Building CXX object caffe2/CMakeFiles/torch.dir/video/video_io.cc.o
make[2]: *** [caffe2/CMakeFiles/torch.dir/video/video_input_op.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /root/pytorch/caffe2/video/video_io.h:6:0,
from /root/pytorch/caffe2/video/video_io.cc:1:
/root/pytorch/caffe2/video/video_decoder.h:15:37: fatal error: libavutil/motion_vector.h: No such file or directory
#include <libavutil/motion_vector.h>
^
compilation terminated.
make[2]: *** [caffe2/CMakeFiles/torch.dir/video/video_io.cc.o] Error 1
make[1]: *** [caffe2/CMakeFiles/torch.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 759, in <module>
build_deps()
File "setup.py", line 321, in build_deps
cmake=cmake)
File "/root/pytorch/tools/build_pytorch_libs.py", line 63, in build_caffe2
cmake.build(my_env)
File "/root/pytorch/tools/setup_helpers/cmake.py", line 330, in build
self.run(build_args, my_env)
File "/root/pytorch/tools/setup_helpers/cmake.py", line 143, in run
check_call(command, cwd=self.build_dir, env=env)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 2
What I've tried so far:
installed libavutil-dev
ensured ffmpeg is installed
followed https://github.com/facebookresearch/VMZ/blob/master/tutorials/Installation_guide.md
Any other ideas?
Missing headers of libraries commonly indicate missing development packages. For Debian and Ubuntu the package you are looking for is most likely called libavutil-dev. Try installing this package using you package manager and re-running the pip installation. For Fedora and SUSE the package should end with -devel.
For conda installation, firstly create an env, very important because you've used pip (pip stops conda seeing it's base env).
conda create -n pytorch_env python=3.7
source activate pytorch_env
conda install -c anaconda mkl
Then install pytorch and torch vision
conda install -c pytorch pytorch torchvision
You might want to run these as administrator, for me not needed.
You will need to install Caffe via
conda install -c caffe2 pytorch-nightly
There's a bug for caffe2 installation (not nightly). Corrected below,
conda create -n pytorch_env python=3.6
source activate pytorch_env
conda install -c caffe2 caffe2
Having done this I found opencv and ffmpeg were loaded .. I can only assume they were a dependency of caffe2. Thus in summary yes you can do the whole thing easily via conda once the 3.7 -> 3.6 bug is resolved
I need install cx_Oracle for Python 2.5 on Linux (Linux 2.6.18-371.1.2.el5 i686). I have installed Oracle client 10.2.0.4.
I have tried following:
1. Download cx_Oracle tar.gz from http://sourceforge.net/projects/cx-oracle/files/.
I don't know which of listed version are suitable for python 2.5 and Oracle client 10.2.0.4, so try cx_Oracle-5.1.tar.gz. Unpacked tar,
go to unpacked folder and run python setup.py install. I got error:
Traceback (most recent call last):
File "setup.py", line 187, in <module>
raise DistutilsSetupError("cannot locate Oracle include files")
distutils.errors.DistutilsSetupError: cannot locate Oracle include files
In .bash_profile I have setted oracle path:
export ORACLE_HOME=/usr/oracle/10.2.0.4/client
export PATH=$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
How fix such error, maybe I need another version of cx_Oracle tar?
Run pip install cx_Oracle. Got error:
Downloading/unpacking cx-Oracle
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement cx-Oracle
No distributions at all found for cx-Oracle
Could someone advise me right solution?
Update
After suggestion in response I got following error:
...
cx_Oracle.c:496: warning: passing argument 3 of âPyModule_AddIntConstantâ makes integer from pointer without a cast
cx_Oracle.c:497: error: âOCI_UCBTYPE_EXITâ undeclared (first use in this function)
cx_Oracle.c:497: warning: passing argument 3 of âPyModule_AddIntConstantâ makes integer from pointer without a cast
cx_Oracle.c:498: error: âOCI_UCBTYPE_REPLACEâ undeclared (first use in this function)
cx_Oracle.c:498: warning: passing argument 3 of âPyModule_AddIntConstantâ makes integer from pointer without a cast
error: command 'gcc' failed with exit status 1
When you run setup.py it will check for any of these folders on your ORACLE_HOME.
possibleIncludeDirs = ["rdbms/demo", "rdbms/public", "network/public",
"sdk/include"]
Also the instant client sometimes places the include files, such as oci.h, in /usr/include/oracle//client, if there is no 'include' directory under ORACLE_HOME create a symbolic link to it.
sudo ln -s /usr/include/oracle/11.2/client $ORACLE_HOME/include
Looks like you're missing the Client SDK
Make sure you install the instant client sdk for you OS.
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Install oracle_client_basic
oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
Using pip install
python -m pip install cx_Oracle
Adding ldconfig
Find your client location, for example: /u01/app/oracle/product/11.2.0/client_1/lib
vi /etc/ld.so.conf.d/oracle.conf
Add this location into it:
/u01/app/oracle/product/11.2.0/client_1/lib
ldconfig
import cx_oracle
Make sure that you've a client sdk present in your path.
Also I had to do add this to my .bash_rc
export DYLD_LIBRARY_PATH=$ORACLE_HOME
In addition to this, Python 2.7 does not come with Python.h which is available by default in Python 3.4. So I would also suggest to install python-devel package
yum install python-devel
That should resolve the issue.