repo init -u https://android.googlesource.com/platform/manifest
this is what I entered
It was working fine but now I don't know why but it isn't able to clone the repo dir, the .repo/repo folder is empty.
If I manually git clone it then I can initialize the repo.
Downloading Repo source from https://gerrit.googlesource.com/git-repo
Traceback (most recent call last):
File "/usr2/ashuk/bin/repo", line 1349, in <module>
main(sys.argv[1:])
File "/usr2/ashuk/bin/repo", line 1314, in main
_Init(args, gitc_init=(cmd == 'gitc-init'))
File "/usr2/ashuk/bin/repo", line 616, in _Init
_Clone(url, dst, opt.clone_bundle, opt.quiet, opt.verbose)
File "/usr2/ashuk/bin/repo", line 922, in _Clone
if clone_bundle and _DownloadBundle(url, cwd, quiet, verbose):
File "/usr2/ashuk/bin/repo", line 867, in _DownloadBundle
dest = open(os.path.join(cwd, '.git', 'clone.bundle'), 'w+b')
FileNotFoundError: [Errno 2] No such file or directory:
'/local/mnt/workspace/aosp_google/.repo/repo/.git/clone.bundle'```
Related
So, i am using ubuntu and installed msdt-follina on it. I run command python3 follina.py -c "calc.exe". It worked. Now i ran python3 follina.py -r 9999, and it gives me error:
[+] copied staging doc /tmp/9oiqeh0y
Traceback (most recent call last):
File "/home/programersandco/msdt-follina/follina.py", line 166, in <module>
main(parser.parse_args())
File "/home/programersandco/msdt-follina/follina.py", line 104, in main
shutil.make_archive(args.output, "zip", doc_path)
File "/usr/lib/python3.10/shutil.py", line 1123, in make_archive
filename = func(base_name, base_dir, **kwargs)
File "/usr/lib/python3.10/shutil.py", line 1008, in _make_zipfile
zf.write(path, arcname)
File "/usr/lib/python3.10/zipfile.py", line 1773, in write
with open(filename, "rb") as src, self.open(zinfo, 'w') as dest:
OSError: [Errno 22] Invalid argument: '/tmp/9oiqeh0y/doc/word/_rels/document.xml.rels'
I tried with first command (python3 follina.py -c "calc.exe"), but it gives me the same error. Also i deleted whole folder and install it from github again, but nothing changed.
Traceback (most recent call last):
File "C:\Users\SAMSUNG\Desktop\Whisper\test.py", line 4, in
audio = whisper.load_audio("audio.mp3")
File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python37\lib\site-packages\whisper\audio.py", line 44, in load_audio
.run(cmd=["ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True)
File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python37\lib\site-packages\ffmpeg_run.py", line 320, in run
overwrite_output=overwrite_output,
File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python37\lib\site-packages\ffmpeg_run.py", line 285, in run_async
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\SAMSUNG\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
When I try using pip install to get GDAL I run into an error about a file not found. I went to the location and there is definitely no folder there but shouldn't the installer install the folder it needs first?
Collecting GDAL
Using cached https://files.pythonhosted.org/packages/7c/b0/a2ecb10a68a319910c4681f452c83843b99c4ef6231d33a8e55b0104a50c/GDAL-2.4.0.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/GDAL.egg-info
writing pip-egg-info/GDAL.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/GDAL.egg-info/top_level.txt
writing manifest file 'pip-egg-info/GDAL.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "/private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/setup.py", line 151, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/setup.py", line 237, in get_gdal_config
return fetch_config(option, gdal_config=self.gdal_config)
File "/private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/setup.py", line 154, in fetch_config
raise gdal_config_error(e)
__main__.gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/setup.py", line 151, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/setup.py", line 430, in <module>
setup(**setup_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 143, in setup
return distutils.core.setup(**attrs)
.................................
File "/private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/setup.py", line 154, in fetch_config
raise gdal_config_error(e)
__main__.gdal_config_error: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/js/c2_gdy711m7933z9bxcv2q5h0000gn/T/pip-install-jv2fugnm/GDAL/
$virtualenv -p python3.6m ../venv-nerapi
Above command gives following error.
Running virtualenv with interpreter /usr/local/bin/python3.6m
Using base prefix '/usr/local'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 352, in copyfile
os.symlink(srcpath, dest)
FileExistsError: [Errno 17] File exists: '/usr/local/lib/python3.6/lib-dynload' -> '/root/analytics/venv-nerapi/lib/python3.6/lib-dynload'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 2343, in <module>
main()
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 712, in main
symlink=options.symlink)
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 927, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 1132, in install_python
copyfile(join(stdlib_dir, fn), join(lib_dir, fn), symlink)
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 355, in copyfile
copyfileordir(src, dest, symlink)
File "/usr/local/lib/python3.6/site-packages/virtualenv.py", line 330, in copyfileordir
shutil.copytree(src, dest, symlink)
File "/usr/local/lib/python3.6/shutil.py", line 315, in copytree
os.makedirs(dst)
File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/root/analytics/venv-nerapi/lib/python3.6/lib-dynload'
I followed following Github issue thread but din't find any luck.
Could any body tell whats went wrong ?
Thanks
Turns out that there was existing venv-nerapi . Deleting existing virtual env and re-creating it worked fine.
I have installed virtual environment properly but it is showing me assertion error. Please help me with this I have added pythonpath also
C:\Users\welcome>pip install virtualenv<br>
Requirement already satisfied: virtualenv in d:\lib\site-packages (16.0.0)
C:\Users\welcome>cd desktop
C:\Users\welcome\Desktop>virtualenv env
Using base prefix 'd:'
Traceback (most recent call last):
File "D:\Scripts\virtualenv-script.py", line 11, in <module>
load_entry_point('virtualenv==1.10.1', 'console_scripts', 'virtualenv')()
File "d:\lib\site-packages\virtualenv-1.10.1-py3.7.egg\virtualenv.py", line 821, in main
symlink=options.symlink)
File "d:\lib\site-packages\virtualenv-1.10.1-py3.7.egg\virtualenv.py", line 956, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))<br>
File "d:\lib\site-packages\virtualenv-1.10.1-py3.7.egg\virtualenv.py", line 1151, in install_python
copy_required_modules(home_dir, symlink)
File "d:\lib\site-packages\virtualenv-1.10.1-py3.7.egg\virtualenv.py", line 1089, in copy_required_modules
dst_filename = change_prefix(filename, dst_prefix)<br>
File "d:\lib\site-packages\virtualenv-1.10.1-py3.7.egg\virtualenv.py", line 1054, in change_prefix
(filename, prefixes)
AssertionError: Filename d:\lib\os.py does not start with any of these prefixes: ['D:\\', 'D:\\']