Error occurred during load

Доброго времени суток!Столкнулся с проблемой при открытии файла Excel: "Errors occurred during load". Далее жму "ОК" и... "Can`t load or unload this object". Снова "ОК" и далее Excel предлагает попробовать восстановить содержимое книги. В итоге после открытия файла появляется окно в котором написано, что «Потерян проект Visual Basic. Удалён один или несколько недопустимых условных форматов из книги».Как решается эта проблему? Прошу...
 

Activus

Пользователь

Сообщений: 6
Регистрация: 17.12.2015

Доброго времени суток!

Столкнулся с проблемой при открытии файла Excel: «Errors occurred during load». Далее жму «ОК» и… «Can`t load or unload this object». Снова «ОК» и далее Excel предлагает попробовать восстановить содержимое книги. В итоге после открытия файла появляется окно в котором написано, что «Потерян проект Visual Basic. Удалён один или несколько недопустимых условных форматов из книги».

Как решается эта проблему? Прошу сориентировать и решении проблемы ибо я не спец в этом вопросе.

 

The_Prist

Пользователь

Сообщений: 13997
Регистрация: 15.09.2012

Профессиональная разработка приложений для MS Office

Тут не особо-то понятно чем помочь, если честно.
Проблема либо в книге, либо в ПК. Попробуйте отключить антивирус на время открытия книги. Или добавить файлы Excel в исключения антивируса.
Если проблема в самом файле — то без файла ничем не помочь.

Даже самый простой вопрос можно превратить в огромную проблему. Достаточно не уметь формулировать вопросы…

 

Activus

Пользователь

Сообщений: 6
Регистрация: 17.12.2015

Странность в том, что на одном компе открывается, а на другом нет. На первом стоит система х86 (если это имеет какое-то значение) — всё хорошо, на втором х64 — не работает. Если миновать таки все «ОК» и открыть файл, то в нём ничего не работает. В настройках макросы включены, антивирус пробовал отключать.

Картинка:

https://gyazo.com/31d5acc118a7cb0b575807d3fe10f750

Изменено: Activus17.12.2015 13:16:14

 

SuperCat

Пользователь

Сообщений: 2737
Регистрация: 21.12.2012

Может, в VBA используется какая-либо библиотека, которой нет на другом компе? Попробуйте на «рабочем» компе отключить эту библиотеку и открыть потом на нерабочем.

There is no knowledge that is not power

 

Activus

Пользователь

Сообщений: 6
Регистрация: 17.12.2015

Скорее всего так и есть, всё сводится к этому. Вот только как понять что за библиотека и как бы её установить на второй комп. Отключить на одном и перекинуть на другой не получится — файл является программой для экономических расчётов и формирования таблиц. Пздц, кароче)))

 

The_Prist

Пользователь

Сообщений: 13997
Регистрация: 15.09.2012

Профессиональная разработка приложений для MS Office

Если битность различается — есть веротяность, что крах вызывает некорректное объявления API функций.
Ради эксперимента попробуйте поискать в проекте все строки, которые начинаются с: Declare
Закомментируйте их и сохранить проект под другим именем.
Откройте на другом ПК — возможно VBA ругнется, что не может вызвать функцию или процедуру (Sub or Function not defined). Это логично, т.к. мы закомментировали определенные функции API. Однако проект может открыться в том виде, в котором был сохранен. Если все будет именно так — значит дело реально в некорректном объявлении API функций или в том, что все же антивирус видит в них угрозу.

Даже самый простой вопрос можно превратить в огромную проблему. Достаточно не уметь формулировать вопросы…

 

Activus

Пользователь

Сообщений: 6
Регистрация: 17.12.2015

 

The_Prist

Пользователь

Сообщений: 13997
Регистрация: 15.09.2012

Профессиональная разработка приложений для MS Office

В личную почту форума :) Видел, сейчас посмотрим.

Даже самый простой вопрос можно превратить в огромную проблему. Достаточно не уметь формулировать вопросы…

 

The_Prist

Пользователь

Сообщений: 13997
Регистрация: 15.09.2012

Профессиональная разработка приложений для MS Office

Скорее всего проблема в ПК. У меня на 64 битах нормально работает, ничего не вылетает, формы появляются. Никаких критичных кодов тоже не нашел.

Поэтому все же отключите на время антивирус. Плюс попробуйте скачать с сети любой файл с макросами(можно прям здесь из приемов что-нибудь найти) и попробуйте открыть на проблемном ПК. Вдруг проблема в офисе.

Даже самый простой вопрос можно превратить в огромную проблему. Достаточно не уметь формулировать вопросы…

 

Activus

Пользователь

Сообщений: 6
Регистрация: 17.12.2015

Ок, понял. Видимо выход только в переустановке Офиса ибо антивирус отключался, как вариант.
В любом случае спасибо за отклик! Ежели Переустановка решит проблему, то обязательно отпишусь.
Удачи!

 

Activus

Пользователь

Сообщений: 6
Регистрация: 17.12.2015

#11

17.12.2015 19:05:36

Значится так: ситуация разрулилась после установки Офиса 2013. Офис 2010 при этом не удалялся.
Затем Офис 2013 был удалён, реестры и система почищены.
Клик на файл и…. Офис 2010 успешно открывает файл. Что к чему не знаю…))
Как-то так….))

Изменено: Activus17.12.2015 19:33:03

Click here follow the steps to fix Microsoft Visual Basic Errors Occurred During Load and related errors.

Instructions

 

To Fix (Microsoft Visual Basic Errors Occurred During Load) error you need to
follow the steps below:

Step 1:

 
Download
(Microsoft Visual Basic Errors Occurred During Load) Repair Tool
   

Step 2:

 
Click the «Scan» button
   

Step 3:

 
Click ‘Fix All‘ and you’re done!
 

Compatibility:
Windows 7, 8, Vista, XP

Download Size: 6MB
Requirements: 300 MHz Processor, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. To unlock all features and tools, a purchase is required.

Microsoft Visual Basic Errors Occurred During Load Error Codes are caused in one way or another by misconfigured system files
in your windows operating system.

If you have Microsoft Visual Basic Errors Occurred During Load errors then we strongly recommend that you

Download (Microsoft Visual Basic Errors Occurred During Load) Repair Tool.

This article contains information that shows you how to fix
Microsoft Visual Basic Errors Occurred During Load
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to Microsoft Visual Basic Errors Occurred During Load error code that you may receive.

Note:
This article was updated on 2023-02-03 and previously published under WIKI_Q210794

Contents

  •   1. What is Microsoft Visual Basic Errors Occurred During Load error?
  •   2. What causes Microsoft Visual Basic Errors Occurred During Load error?
  •   3. How to easily fix Microsoft Visual Basic Errors Occurred During Load errors

What is Microsoft Visual Basic Errors Occurred During Load error?

The Microsoft Visual Basic Errors Occurred During Load error is the Hexadecimal format of the error caused. This is common error code format used by windows and other windows compatible software and driver vendors.

This code is used by the vendor to identify the error caused. This Microsoft Visual Basic Errors Occurred During Load error code has a numeric error number and a technical description. In some cases the error may have more parameters in Microsoft Visual Basic Errors Occurred During Load format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded at the time of the error.

What causes Microsoft Visual Basic Errors Occurred During Load error?

The Microsoft Visual Basic Errors Occurred During Load error may be caused by windows system files damage. The corrupted system files entries can be a real threat to the well being of your computer.

There can be many events which may have resulted in the system files errors. An incomplete installation, an incomplete uninstall, improper deletion of applications or hardware. It can also be caused if your computer is recovered from a virus or adware/spyware
attack or by an improper shutdown of the computer. All the above actives
may result in the deletion or corruption of the entries in the windows
system files. This corrupted system file will lead to the missing and wrongly
linked information and files needed for the proper working of the
application.

How to easily fix Microsoft Visual Basic Errors Occurred During Load error?

There are two (2) ways to fix Microsoft Visual Basic Errors Occurred During Load Error:

Advanced Computer User Solution (manual update):

1) Start your computer and log on as an administrator.

2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore.

3) In the new window, select «Restore my computer to an earlier time» option and then click Next.

4) Select the most recent system restore point from the «On this list, click a restore point» list, and then click Next.

5) Click Next on the confirmation window.

6) Restarts the computer when the restoration is finished.

Novice Computer User Solution (completely automated):

1) Download (Microsoft Visual Basic Errors Occurred During Load) repair utility.

2) Install program and click Scan button.

3) Click the Fix Errors button when scan is completed.

4) Restart your computer.

How does it work?

This tool will scan and diagnose, then repairs, your PC with patent
pending technology that fix your windows operating system registry
structure.
basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.)

Hello,

When I call ua.random, I get timeout error. I have searched and found similar issue. I updated my code accordingly. My code:

ua = UserAgent(verify_ssl=False, cache=False)

 firefox_profile.set_preference("general.useragent.override", ua.random)
  • Python: 3.6.8
  • Fake-useragent: 0.1.11

Error stack trace:

Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
  File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.local/share/virtualenvs/YR0vVpCM/lib/python3.6/site-packages/fake_useragent/utils.py", line 67, in get
    context=context,
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error timed out>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.local/share/virtualenvs/apartment-scraper-YR0vVpCM/lib/python3.6/site-packages/fake_useragent/utils.py", line 166, in load
    verify_ssl=verify_ssl,
  File "/home/user/.local/share/virtualenvs/apartment-scraper-YR0vVpCM/lib/python3.6/site-packages/fake_useragent/utils.py", line 122, in get_browser_versions
    verify_ssl=verify_ssl,
  File "/home/user/.local/share/virtualenvs/apartment-scraper-YR0vVpCM/lib/python3.6/site-packages/fake_useragent/utils.py", line 84, in get
    raise FakeUserAgentError('Maximum amount of retries reached')
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached

I’ve been reading countless posts on various forums to try to find a solution, but none have been found yet. I hope someone can tell me how to solve this problem.

I created a workbook to track my finances, and it’s quite involved as I have been tweaking it over several years. Currently, I’m using it on my Windows 10 OS computer with MS Office 2007. The workbook involves several pages, macros, and userforms. The problem arose seemingly out of nowhere and for no reason.

Lately, when I try to open the workbook, I’m met with the «Errors occurred during load.» message. I click OK to continue in order to find out what the problem is. Then I get «Excel found unreadable content in ‘Finances2017.xlsm’. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.» Since I am the source of the workbook, I click «Yes» only to be met with

«Errors occurred during load.»

again. I click «OK» to be met with the same message again. Clicking «OK» once more gives me «Excel was able to open the file by repairing or removing the unreadable content. Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))».

Somehow my UserForm and VB coding won’t load, and that’s why I get the rigamarole described above. In trying to fix the issue, I uninstalled MS Office Suite from my computer, and then re-installed it from the factory disks — thinking that whatever program file or registrations that have been corrupted or missing will be replenished with the new install. Nope! Problem persists.

On the advice found in various forums, I’ve disabled ActiveX controls and Macros by way of the Trust Center, and then, upon opening, click the «Enable Content» button that appears. No good. Also on forum advice, I downloaded and ran something called «vbrun60sp6», which was supposed to correct the operation of VB applications. No good. Problem still persists.

<strike></strike>
Other excel workbooks will open just fine, but none of these include UserForms or VB coding. To further complicate the diagnosis, when I open the workbook using another computer, it all works just fine like it’s supposed to. So, now I’m thinking that the problem is not with the program, but with the computer itself. AAAARRRGGHH!!! By now, my head is swimming with too much information about probable causes and fixes, and I’m losing track of which rabbit holes I’ve gone down and which ones I haven’t. I find myself running in circles. That’s when I come crying to Mr. Excel to help make it all better.

Not only do I miss being able to use the workbook on my newer computer, I’d also like to (someday) be able to offer the thing as a product for other users. So, I can’t have any corruption hidden in it. Does anyone know what has happened? -why this happened? -how to remedy the problem? -ensure against it occurring in the future?

Thanks in advance for the help! Mr. Excel has always been able to help me, and so has become my «go-to» when I’m at wit’s end.

  • Home
  • VBForums
  • Visual Basic
  • Visual Basic 6 and Earlier
  • Errors during load

  1. Sep 13th, 2006, 08:13 AM


    #1

    anatasia is offline

    Thread Starter


    Lively Member


    Question Errors during load

    Im facing problem when i debug my system. It prompted me an error messages:

    1) Errors during load. Refer to ‘C:DOCUME~1UserDesktopNEWSYS~1KirinKirin SystemPrjMainfrmWorkstationOption.log’ for details

    2) When i clicked OK, it prompted «Error occured during load» for 11 times

    I’ve checked the Project References, that wasn’t a problem of it. Would appreciate for helps. Thanks.

    Last edited by anatasia; Sep 13th, 2006 at 08:16 AM.


  2. Sep 13th, 2006, 08:13 AM


    #2

    Re: Errors during load

    what does it say in the log file?


  3. Sep 13th, 2006, 08:20 AM


    #3

    anatasia is offline

    Thread Starter


    Lively Member


    Re: Errors during load

    How do i check the log file?


  4. Sep 13th, 2006, 08:25 AM


    #4

    Re: Errors during load

    you just open it. the error message tells you where it’s located.


  5. Sep 13th, 2006, 08:46 AM


    #5

    anatasia is offline

    Thread Starter


    Lively Member


    Re: Errors during load

    What i found in the log file are:

    Line 34: Class FlatButton.XFlatButton of control cmdCancel was not a loaded control class.
    Line 54: Class FlatButton.XFlatButton of control cmdOK was not a loaded control class.
    What should i do next?


  6. Sep 13th, 2006, 08:57 AM


    #6

    Re: Errors during load

    have a look at this thread, i think it might be the same problem


  7. Sep 13th, 2006, 09:14 AM


    #7

    Re: Errors during load

    Check the project’s components (not the references). The form uses an ActiveX control (in this case a FlatButton) that is not selected in the projects components. Add the component to the project and reload the form.


  8. Sep 14th, 2006, 04:55 AM


    #8

    anatasia is offline

    Thread Starter


    Lively Member


    Re: Errors during load

    You are right frans, the flatbutton is unchecked at project component. but after i added, the system prompted me «compile error: User defined-type not defined» at

    Private Sub vbalListBar1_BarClick(Bar As vbalLbar6.cListBar)
    On Error Resume Next
    Dim i As Integer

    Call ClearCommandOption(False)
    mstrCurrentBarKey = Bar.Key

    lblContextDetail.Caption = Bar.Tag
    For i = 1 To Bar.Items.Count
    cmdOption(i).Visible = True
    cmdOption(i).Caption = Bar.Items(i).Caption
    cmdOption(i).Tag = Bar.Items(i).Caption
    Next
    StatusBar1.Panels(1) = Bar.Tag

    End Sub

    What was wrong with it?


  9. Sep 14th, 2006, 10:13 AM


    #9

    Re: Errors during load

    I assume the error occurred in the line:

    Bar As vbalLbar6.cListBar

    If you’re using the vbAccelerator ListBar control, either include the source modules in your project or register the .ocx file you downloaded.

    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you’re going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT=»VB»] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana


  10. Sep 14th, 2006, 10:26 AM


    #10

    anatasia is offline

    Thread Starter


    Lively Member


    Re: Errors during load

    You are right, Frans. The error is occur on that line. I have .ocx but what should i do to reload the .ocx with the program? Thanks for your advice.


  11. Sep 14th, 2006, 09:07 PM


    #11

    anatasia is offline

    Thread Starter


    Lively Member


    Re: Errors during load

    i tried to register the .ocx but the error still occur, could anyone help??


  12. Sep 14th, 2006, 11:30 PM


    #12

    Re: Errors during load

    is it got registered correctly…or may you need to reinstal the control if required…

    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  13. Sep 14th, 2006, 11:36 PM


    #13

    anatasia is offline

    Thread Starter


    Lively Member


    Re: Errors during load

    yes, i re-registered as usual, by the way, if i would like to reinstall the control, how do i do it?


  14. Sep 14th, 2006, 11:39 PM


    #14

    Re: Errors during load

    does it has an entry in the Add/Remove Programs…if so, you can use that link to uninstall…else delete the control’s files from your system seach for system folder for this and search for the control’s entry in the registry and then remove it…but you should take more caution to remove from the registry…

    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  • Home
  • VBForums
  • Visual Basic
  • Visual Basic 6 and Earlier
  • Errors during load


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules


Click Here to Expand Forum to Full Width

2019.5.17 Все обновлено, linux и windows

Я установил fake-useragent на новый компьютер (windows), но он не работает должным образом, и появляется ошибка типа вопроса

fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached

Затем, обратившись к связанным сообщениям, я не обнаружил, что это могло бы решить мою проблему. Есть одно, которое, я думаю, должно быть связано. Но я не мог получить доступ к адресу json-файла в блоге даже с помощью лестницы.

адрес блога:https://blog.csdn.net/weixin_33893473/article/details/86031932

Тогда попробуйте сами:

1. Во-первых, моя проблема в том, что об ошибке сообщили без подвешивания лестницы, поэтому первым делом я повесил мою простую маленькую лестницу, сказав, что это проба в течение 7 дней, но я зря пользуюсь проституцией. Позже, это относительно просто использовать, хорошо проверить небольшой файл на веб-странице;

2. Повесив трубку, запустите код и убедитесь, что он работает нормально;

3. Отключите запущенную программу vpn и обнаружите, что она все еще может нормально работать, поэтому я предполагаю, что файл, упомянутый в вышеупомянутом сообщении, был загружен, когда работала лестница, и был указан конкретный

позиция.

Лестничная ссылка: https://pan.baidu.com/s/14T9cqC2pXAs0LuyeOgKN1A Код извлечения: 2hvw

Продолжайте читать, и полное решение будет предоставлено позже:

Дополните полное сообщение об ошибке (linux), (2019.5.17 19:21 Обновлено), см. конкретный метод ниже,

Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/python3/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/python3/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/python3/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/python3/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/python3/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/python3/lib/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/local/python3/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/local/python3/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/local/python3/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 67, in get
    context=context,
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error timed out>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 154, in load
    for item in get_browsers(verify_ssl=verify_ssl):
  File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 97, in get_browsers
    html = get(settings.BROWSERS_STATS_PAGE, verify_ssl=verify_ssl)
  File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 84, in get
    raise FakeUserAgentError('Maximum amount of retries reached')
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached

————————————————— —Разделяющая линия———————————————

После ссылки:https://blog.csdn.net/yilovexing/article/details/89044980

Обнаружен кешfake_useragent_0.1.11.jsonПроблема (последняя версия), но я не могу загрузить этот файл json с помощью метода wget или браузера.

Просто поместите этот файл кеша в каталог кеша Windows или Linux:

1. Получите временный каталог: (применимо как к Linux, так и к Windows)

#windows

import tempfile

a = tempfile.gettempdir()
print(a)

C:UsersSHAOOP~1AppDataLocalTemp
[Finished in 0.2s]

#linux

[[email protected] ~]# python
Python 3.6.5 (default, Mar 20 2019, 21:55:20) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tempfile
>>> tempfile.gettempdir()
'/tmp'

2. Поместите fake_useragent_0.1.11.json во временный каталог linux или windows выше (здесь я предоставлю ссылку на файл json, который я успешно запустил:

https://pan.baidu.com/s/1_Qv1LGBSjO2bnF4ocMqhwQ Код извлечения: 2hpu)

На данный момент ошибка поддельного агента пользователя моих локальных окон, локального Linux и удаленных серверов Linux устранена. Добро пожаловать в общение.

  Играл себе спокойно с модами, решил отдохнуть от игры, выключил Майн, потом снова включаю, а тут это!

  Версия игры 1.16.3

    Error loading mods 1 error has occurred during loading                                                                                                                                                                                                                        TraJectory Preview (traJectory_preview) encountered an error during the load_registries event phase

—- Minecraft Crash Report —-
// Don’t do that.

Time: 27.10.20 17:23
Description: Mod loading error has occurred

java.lang.Exception: Mod Loading has failed
    at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:494) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.util.Util.func_215077_a(Util.java:418) ~[?:?] {re:classloading,xf:OptiFine:default}
    at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:490) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.gui.ResourceLoadProgressGui.func_230430_a_(ResourceLoadProgressGui.java:172) ~[?:?] {re:classloading,xf:OptiFine:default}
    at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:802) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:953) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:584) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:184) ~[ForgeOptiFine%201.16.3.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] {}
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.3-34.1.32.jar:34.1] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-8.0.5.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
—————————————————————————————

— Head —
Thread: Render thread
Stacktrace:
    at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:56) ~[forge:?] {re:classloading}
— MOD trajectory_preview —
Details:
    Mod File: Trajectory+Preview-3.0.1-1.16.3.jar
    Failure message: Trajectory Preview (trajectory_preview) encountered an error during the load_registries event phase
        java.lang.IllegalStateException: Can not register to a locked registry. Modder should use Forge Register methods.
    Mod Version: 3.0.0-1.16.3
    Mod Issue URL: NOT PROVIDED
    Exception message: java.lang.IllegalStateException: Can not register to a locked registry. Modder should use Forge Register methods.
Stacktrace:
    at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:56) ~[forge:?] {re:classloading}
    at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:72) ~[forge:?] {re:classloading}
    at net.minecraftforge.registries.NamespacedWrapper.func_218381_a(NamespacedWrapper.java:40) ~[forge:?] {re:classloading}
    at net.minecraft.util.registry.Registry.func_218322_a(Registry.java:456) ~[?:?] {re:classloading}
    at dev.buildtool.tp.TrajectoryPreview.registerPaticle(TrajectoryPreview.java:196) ~[trajectory_preview:3.0.1-1.16.3] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_22_TrajectoryPreview_registerPaticle_Register.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-3.0.3-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) ~[eventbus-3.0.3-service.jar:?] {}
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[forge:34.1] {re:classloading}
    at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:111) ~[forge:?] {re:classloading}
    at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) ~[?:1.8.0_201] {}
    at net.minecraftforge.fml.ModWorkManager$SyncExecutor.driveOne(ModWorkManager.java:56) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.ModWorkManager$DrivenExecutor.drive(ModWorkManager.java:40) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.waitForTransition(ModLoader.java:242) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:229) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:195) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.client.ClientModLoader.lambda$begin$1(ClientModLoader.java:103) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:123) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:103) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:424) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:149) ~[ForgeOptiFine%201.16.3.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] {}
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.3-34.1.32.jar:34.1] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-8.0.5.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-8.0.5.jar:?] {}


— System Details —
Details:
    Minecraft Version: 1.16.3
    Minecraft Version ID: 1.16.3
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.8.0_201, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 272100296 bytes (259 MB) / 576430080 bytes (549 MB) up to 3132358656 bytes (2987 MB)
    CPUs: 2
    JVM Flags: 5 total; -Xmn128M -Xmx3000M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+UseConcMarkSweepGC
    ModLauncher: 8.0.5+84+master.3310fe0
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.2.jar mixin PLUGINSERVICE 
        /eventbus-3.0.3-service.jar eventbus PLUGINSERVICE 
        /forge-1.16.3-34.1.32.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.16.3-34.1.32.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.16.3-34.1.32.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.16.3-34.1.32.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE 
        /OptiFine-OptiFine-1.16.3_HD_U_G4_pre2.jar OptiFine TRANSFORMATIONSERVICE 
        /forge-1.16.3-34.1.32.jar fml TRANSFORMATIONSERVICE 
    FML: 34.1
    Forge: net.minecraftforge:34.1.32
    FML Language Providers: 
        javafml@34.1
        minecraft@1
    Mod List: 
        forge-1.16.3-34.1.32-client.jar                   |Minecraft                     |minecraft                     |1.16.3              |COMMON_SET|NOSIGNATURE
        Animalium-0.6.1.jar                               |Animalium                     |animalium                     |0.6.1               |COMMON_SET|NOSIGNATURE
        usefulhats-1.8.5-1.16.2+.jar                      |Useful Hats                   |usefulhats                    |1.8.5-1.16.2+       |COMMON_SET|NOSIGNATURE
        ToolBelt-1.16.2-1.14.4.jar                        |Tool Belt                     |toolbelt                      |1.14.4              |COMMON_SET|NOSIGNATURE
        extractpoison_1.16.3_1.2.jar                      |Extract Poison                |extractpoison                 |1.2                 |COMMON_SET|NOSIGNATURE
        worldedit_forge_mc1.16.3_7.2.0_beta_05.jar        |WorldEdit                     |worldedit                     |7.2.0-beta-05+20b3da|COMMON_SET|NOSIGNATURE
        Trajectory+Preview-3.0.1-1.16.3.jar               |Trajectory Preview            |trajectory_preview            |3.0.0-1.16.3        |VALIDATE  |NOSIGNATURE
        ShoulderSurfing-1.16.3-2.0.jar                    |Shoulder Surfing              |shouldersurfing               |1.16.3-2.0          |COMMON_SET|NOSIGNATURE
        MenuCompanions_v1.0_1.16.3.jar                    |Menu Companions               |menucompanions                |1.0                 |COMMON_SET|d3:cc:6f:1b:30:87:fa:d9:8f:91:15:20:27:63:95:aa:d5:cb:1b:5b:e6:36:cc:57:20:a9:b3:d4:d5:1a:5d:b8
        jei_1.16.3_7.3.2.36.jar                           |Just Enough Items             |jei                           |7.3.2.29            |COMMON_SET|NOSIGNATURE
        forge-1.16.3-34.1.32-universal.jar                |Forge                         |forge                         |34.1.32             |COMMON_SET|22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
        SignButton-1.16.3-2.1.3.jar                       |Sign Button                   |signbutton                    |2.1.3               |COMMON_SET|NOSIGNATURE
        RoRmod-1.16.3-1.0.7-Forge.jar                     |Risk of Rain Mod              |riskofrainmod                 |1.0.6               |COMMON_SET|NOSIGNATURE
        tl_skin_cape_forge_1.16.3-1.13.jar                |TLSkinCape                    |tlskincape                    |1.6                 |COMMON_SET|19:f5:ce:44:81:0c:e4:22:05:5e:73:c5:a8:cd:de:f3:c8:cf:a9:b3:01:70:40:a0:ee:2d:50:7a:1c:3d:1c:8a
        collective_1.16.3_1.45.jar                        |Collective                    |collective                    |1.45                |COMMON_SET|NOSIGNATURE
    Crash Report UUID: 2f8da0d2-e9a3-4e66-9f3d-54c2b22a8e85
    OptiFine Version: OptiFine_1.16.3_HD_U_G4_pre2
    OptiFine Build: 20201007-190609
    Render Distance Chunks: 8
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.5.0 NVIDIA 381.65
    OpenGlRenderer: GeForce GTS 450/PCIe/SSE2
    OpenGlVendor: NVIDIA Corporation
    CpuCount: 2

            Помогите решить проблему. Пожалуйста!

Понравилась статья? Поделить с друзьями:
  • Error occurred during initialization of vm что делать
  • Error occurred during initialization of vm майнкрафт
  • Error occurred during initialization of vm too small maximum heap
  • Error occurred during initialization of vm too small initial heap
  • Error occurred during initialization of vm minecraft