Macrecovery py error the following arguments are required action

Hello Hackintosh fans. If you monitoring the Dortania page recently, you will find an important and critical update. Especially for Windows and Linux users. There [...]

Hello Hackintosh fans. If you monitoring the Dortania page recently, you will find an important and critical update. Especially for Windows and Linux users. There is a fix on the downloading issue of macOS Installation file. Previously, we can download any macOS files using the macrecovery script inside the OpenCore 0.6.4 package. But the script in the OpenCore 0.6.4 or older were broken. You will get the following error when trying to download the file

This issue only happen for Windows and Linux users. But don’t worry, the OpenCore team has the fix for this issue. So now in order to download the macOS installation file on Windows and Linux, first you will need to download the OpenCore master package. Use the link below.

https://github.com/acidanthera/OpenCorePkg/archive/master.zip

Extract the zip file and then open Terminal and cd to the folder Utilities/macrecovery. For example:

cd ~/Desktop/Hackintosh Big Sur/OpenCore-0.6.3-RELEASE/Utilities/macrecovery

And then use the command below. Here is the list for the command to download various macOS versions

# Lion(10.7):
python macrecovery.py -b Mac-2E6FAB96566FE58C -m 00000000000F25Y00 download
python macrecovery.py -b Mac-C3EC7CD22292981F -m 00000000000F0HM00 download

# Mountain Lion(10.8):
python macrecovery.py -b Mac-7DF2A3B5E5D671ED -m 00000000000F65100 download

# Mavericks(10.9):
python macrecovery.py -b Mac-F60DEB81FF30ACF6 -m 00000000000FNN100 download

# Yosemite(10.10):
python macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000GDVW00 download

# El Capitan(10.11):
python macrecovery.py -b Mac-FFE5EF870D7BA81A -m 00000000000GQRX00 download

# Sierra(10.12):
python macrecovery.py -b Mac-77F17D7DA9285301 -m 00000000000J0DX00 download

# High Sierra(10.13)
python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m 00000000000J80300 download
python macrecovery.py -b Mac-BE088AF8C5EB4FA2 -m 00000000000J80300 download

# Mojave(10.14)
python macrecovery.py -b Mac-7BA5B2DFE22DDD8C -m 00000000000KXPG00 download

# Catalina(10.15)
python macrecovery.py -b Mac-00BE6ED71E35EB86 -m 00000000000000000 download

# Latest version
# ie. Big Sur(11)
python macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 download

This script is very helpful for us who don’t own a Mac or existing Hackintosh. We can use the Windows 10 and Linux machine to create the USB macOS installer. You can also use the VMware or Virtualbox running Linux or Windows and then execute the script above.

  • hackintosh
  • linux
  • windows 10

0 / 0 / 0

Регистрация: 23.12.2021

Сообщений: 35

1

Ошибка при выполнении скрипта по распознаванию предметов (

04.09.2022, 13:03. Показов 532. Ответов 4


Добрый день.

Надеюсь кто-то сможет подсказать.
Вопрос в следующем: есть код, который позволяет распознавать некоторые предметы с изображения веб-камеры (code.py). При распознавании использует два дополнительных файла MobileNetSSD_deploy.caffemodel и MobileNetSSD_deploy.prototxt.txt. Но при запуске скрипта в Anaconda Powershell Promt (Anaconda 3) показывает ошибку:

Запрос:
python code.py —prototxt MobileNetSSD_deplloy.prototxt.txt—model MobileNetSSD_deploy.caffemodel

Ответ:
usage: code.py [-h] -p PROTOTXT -m MODEL [-c CONFIDENCE]
code.py: error: the following arguments are required: -m/—model

Что не так с переменной m? Или дело в чем-то ином?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



3690 / 2270 / 491

Регистрация: 07.11.2019

Сообщений: 3,829

04.09.2022, 19:54

2

Цитата
Сообщение от Peter_1
Посмотреть сообщение

MobileNetSSD_deplloy.prototxt. txt—model

Что у вас за пробел в названии файла перед точкой? Что за обратный слеш?



0



0 / 0 / 0

Регистрация: 23.12.2021

Сообщений: 35

04.09.2022, 20:57

 [ТС]

3

Приношу извинения, это при копировании пробел поставил. Без пробела и с любым слешем — итог один:

python code.py —prototxt MobileNetSSD_deplloy.prototxt.txt/—model MobileNetSSD_deploy.caffemodel
usage: code.py [-h] -p PROTOTXT -m MODEL [-c CONFIDENCE]
code.py: error: the following arguments are required: -m/—model

python code.py —prototxt MobileNetSSD_deplloy.prototxt.txt—model MobileNetSSD_deploy.caffemodel
usage: code.py [-h] -p PROTOTXT -m MODEL [-c CONFIDENCE]
code.py: error: the following arguments are required: -m/—model



0



3690 / 2270 / 491

Регистрация: 07.11.2019

Сообщений: 3,829

04.09.2022, 21:16

4

Peter_1, а черта дроби, слэш зачем? Без слэша пробовали, точнее с пробелом вместо слэша?



0



0 / 0 / 0

Регистрация: 23.12.2021

Сообщений: 35

06.09.2022, 10:10

 [ТС]

5

Спасибо, помогло)



0



  • Index
  • » AUR Issues, Discussion & PKGBUILD Requests
  • » [SOLVED] .py error: the following arguments are required

Pages: 1

#1 2020-02-07 08:31:47

SunnyFlopper
Member
Registered: 2020-02-02
Posts: 7

[SOLVED] .py error: the following arguments are required

New to linux & trying to run program «theharvester» & keep getting this error

$ theharvester

*******************************************************************
*  _   _                                            _             *
* | |_| |__   ___    /  /__ _ _ ____   _____  ___| |_ ___ _ __  *
* | __|  _  / _   / /_/ / _` | '__  / / _ / __| __/ _  '__| *
* | |_| | | |  __/ / __  / (_| | |    V /  __/__  ||  __/ |    *
*  __|_| |_|___| / /_/ __,_|_|    _/ ___||___/_____|_|    *
*                                                                 *
* theHarvester 3.1.1dev3                                          *
* Coded by Christian Martorella                                   *
* Edge-Security Research                                          *
* cmartorella@edge-security.com                                   *
*                                                                 *
*******************************************************************


usage: theHarvester.py [-h] -d DOMAIN [-l LIMIT] [-S START] [-g] [-p] [-s] [-v] [-e DNS_SERVER] [-t DNS_TLD] [-n] [-c]
                                      [-f FILENAME] [-b SOURCE]
theHarvester.py: error: the following arguments are required: -d/--domain

The program then closes itself & brings me back to the terminal

Last edited by SunnyFlopper (2020-02-08 09:35:15)

#2 2020-02-07 08:55:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,019
Website

Re: [SOLVED] .py error: the following arguments are required

And? That is a pretty clear error message.

What is your question?

Out of interest, how did you install this application?

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

#3 2020-02-07 09:00:03

SunnyFlopper
Member
Registered: 2020-02-02
Posts: 7

Re: [SOLVED] .py error: the following arguments are required

Thanks for the reply. The problem is that I don’t know how to proceed, i know it may be stupid but idk what the error means.

I installed the program with yay

#4 2020-02-07 09:11:56

SunnyFlopper
Member
Registered: 2020-02-02
Posts: 7

Re: [SOLVED] .py error: the following arguments are required

I did forget to mention, Idk if it was the right thing to try but I tried to run the program as «theharvester -d» & «theharvester —domain» but it gave me a different error

theHarvester.py: error: argument -d/--domain: expected one argument

Last edited by SunnyFlopper (2020-02-07 09:13:17)

#5 2020-02-07 11:08:54

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,652

Re: [SOLVED] .py error: the following arguments are required

run theharvester -h .

If that doesn’t help, do a search with theharvester and example as keywords.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Laptop’s Motherboard : Asus VivoBook Pro 14 OLED M3401QC

CPU : HexaCore AMD Ryzen 5 5600H, 3273 MHz Rev. 00A50F00h

Integrated graphics : AMD Radeon Graphics Cezanne (Integrated 1002 / 1638, Rev C6)

Dedicated GPU : NVIDIA GeForce RTX 3050 Laptop GPU

Bios : AMI M3401QC.305

Hi there,

I’ve found the consequent mismatch using these 2 tools

— «macrecovery»:https://dortania.github.io/OpenCore-Install-Guide/installer-guide/winblows-install.html#downloading-macos

— «gibMacOS-master»:https://github.com/corpnewt/gibMacOS

finding the consequent mismatch :

  • with «macrecovery.py» i’ve downloaded the «012-51692» BaseSystem.dmg version with the string «python ./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 download»
  • with «gibMacOS-master» i’ve got the following list of :

    • [macOS Monterey 12.6 (21G115) — 012-40494 — Added 2022-09-20 17:14:37 — 12.40 GB];
    • [macOS Monterey 12.5.1 (21G83) — 012-51693 — Added 2022-08-24 17:13:27 — 12.41 GB];

I think it’s a mismatch but… how can i pair? Maybe i must use one of those commands with «macrecovery.py» like :

./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 -os latest
./macrecovery.py -b Mac-E43C1C25D4880AD6 -m <real MLB> -os latest

where <real MLB> is a somewhat number or string?

Other questions are, supposing the 2 version are matching :

  • in the most common Internet guides, i must have an USB stick with 2 partions : EFI_partition1 (usually 200 Mb) and OS_partition2 (X Gb)
  • in the Dortania guide is sufficient an only FAT32 partition with 2 folders like «com.apple.recovery.boot -> BaseSystem.dmg, EFI -> BOOT, OC -> ….»
     
  • i’ve got my files «BaseSystem.dmg» then i must create a folder in the root of the USB stick called «com.apple.recovery.boot» but… in which partion? Maybe i’ve to resize the EFI_partition1 of more than 200 Mb or maybe i must have only one partitioin like Rufus method do?
  • I’ve got my files downloaded with «gibMacOS-master» which are «InstallAssistant.pkg, UpdateBrain.zip, BuildManifest.plist, Info.plist, InstallInfo.plist, MajorOSInfo.pkg» and restoring disk with the image «InstallAssistant.pkg» with Transmac it transfer in the OS_partition2 (X Gb) the folders «Shared support -> com_apple_MobileAsset_MACSoftwareUpdate, SFR -> ….» but i cannot assign any letter to the EFI partition so it results unmountable with diskpart or disk managment methods like «Errore del servizio Dischi virtuali: Operazione non supportata su un supporto rimovibile».

How can i merge these files?

It is sufficient the «BaseSystem.dmg» file downloaded with macrecovery python’ script OR i need the macOS Monterey files downloaded with gibMacOS-master which are «InstallAssistant.pkg, UpdateBrain.zip, BuildManifest.plist, Info.plist, InstallInfo.plist, MajorOSInfo.pkg» too?

Thanks.

  • Become a Premium Member for $25/year with no ads to improve your community experience.

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

EliteMacx86

Joined
Jul 22, 2018
Messages
4,419
Motherboard

Supermicro X11SPA-T

CPU

Intel Xeon W-3275 28 Core

Graphics

2xAMD RX 580 8GB

OS X/macOS

12.0.x

Bootloader
  1. OpenCore (UEFI)
Mac
  1. Mac mini
  2. MacBook Pro
Mobile Phone
  1. Android
  2. iOS


  • #1

How to use macOS Internet Recovery using OpenCore

Method #1: Using macOS

STEP 1: Download macOS (aka Recovery Image)
Before you start using the Internet Recovery feature, you’ll need to have the exact Recovery image of the target OS you want to install. To download the recovery image, follow the steps below.

1. Download OpenCore Pkg from the downloads section of this forum.
2. Extract the downloaded file to your Desktop.
3. Open Terminal and move into the OpenCore directory using

cd Desktop/OpenCore-0.X.X-RELEASE/Utilities/macrecovery

NOTE:

  • Replace the X with the OpenCore version.

4. Depending on the macOS version you need (See Recovery Table below), type the command.

Recovery Table

OS Version Command
OS X Lion ./macrecovery.py -b Mac-C3EC7CD22292981F -m 00000000000F0HM00 download
OS X Mountain Lion ./macrecovery.py -b Mac-7DF2A3B5E5D671ED -m 00000000000F65100 download
OS X Mavericks ./macrecovery.py -b Mac-F60DEB81FF30ACF6 -m 00000000000FNN100 download
OS X Yosemite ./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000GDVW00 download
OS X El Capitan ./macrecovery.py -b Mac-FFE5EF870D7BA81A -m 00000000000GQRX00 download
macOS Sierra ./macrecovery.py -b Mac-77F17D7DA9285301 -m 00000000000J0DX00 download
macOS High Sierra ./macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m 00000000000J80300 download
macOS Mojave ./macrecovery.py -b Mac-7BA5B2DFE22DDD8C -m 00000000000KXPG00 download
macOS Catalina ./macrecovery.py -b Mac-CFF7D910A743CAAF -m 00000000000PHCD00 download
macOS Big Sur ./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 download

5. Once the download is completed, you’ll see something like below

Downloading 694-44177...
Saving http://oscdn.apple.com/content/downloads/43/08/002-55353/wjqymtilqz139hpcx4lu2i2h5ndrmuydno/RecoveryImage/BaseSystem.dmg to BaseSystem.dmg...
Download complete!               
Saving http://oscdn.apple.com/content/downloads/43/08/002-55353/wjqymtilqz139hpcx4lu2i2h5ndrmuydno/RecoveryImage/BaseSystem.chunklist to BaseSystem.chunklist...
Download complete!               
Verifying image with chunklist...
Image verification complete!

You can find BaseSystem.dmg and BaseSystem.chunklist in OpenCore/Utilities/macrecovery directory.

STEP 2: Create Bootable Recovery Drive
Once you have obtained the recovery image, the next step is to create a bootable Recovery Drive. To create a bootable Recovery Drive, follow the steps below.

1. Insert your USB Flash Drive (less than 64GB ) into your Mac.
2. Open Disk Utility. The Disk Utility is located at /Applications/Utilities/Disk Utility
2. Select your USB Flash Drive in the left pane and click on Erase button, at the top and a popup will appear.
3. Under Name type EFI
4. Under Format select MS-DOS (FAT)
5. Under Scheme select Master Boot Record, and click on Erase.
6. When done, click on Done and close Disk Utility.
7. Now open your USB Flash Drive and create a folder named com.apple.recovery.boot
8. Copy BaseSystem.dmg and BaseSystem.chunklist downloaded in STEP #1 to the above created directory.
9. Copy your created OpenCore EFI for your target hardware to the root of the USB Flash Drive.

NOTE:

  • For Flash Drive with more than 64 Capacity, you will need to create a separate EFI partition and is therefore not recommended.

STEP 3: Booting into macOS Recovery
Now, as you have the Bootable Recovery Drive, you can boot into macOS Recovery. To boot into macOS Recovery, follow the steps below.

1. Turn on your target System.
2. Boot to Boot Menu.
3. Select your USB Flash Drive with the UEFI Prefix and press enter to boot.
4. When at OC Boot picker, select the Recovery and press enter to boot and the installer will load in a while.

NOTES:

  • An internet connection is required to download the required files and perform the clean installation.
  • Ethernet or native WiFi is preferred for the purpose. USB WiFi Adapter will not serve the purpose.
  • The network must be configured correctly.

Last edited: Jul 14, 2022

Similar threads

  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.

Понравилась статья? Поделить с друзьями:
  • Macpostfactor error code 1
  • Macos как изменить разрешение экрана
  • Machinist rs9 x99 при включении ошибка ff
  • Machine error fe00
  • Machine check exception windows 10 как исправить при установке