nedsociety / pysandboxie

A python binding to Sandboxie
MIT License
12 stars 2 forks source link

AssertionError #5

Closed Advik-B closed 2 years ago

Advik-B commented 2 years ago
Traceback (most recent call last):
  File "e:\Github\PythonEval\test.py", line 8, in <module>
    sbie.create_sandbox('testpy', settings=settings)
  File "E:\Github\PythonEval\lib\pysandboxie\sandboxie\sandboxie.py", line 231, in create_sandbox
    cfg = self._readini()
  File "E:\Github\PythonEval\lib\pysandboxie\sandboxie\sandboxie.py", line 154, in _readini
    assert currentsection is not None
AssertionError
nedsociety commented 2 years ago

Can you upload the Sandboxie.ini file? Sounds like it's ill-formed somewhere at the beginning.

leonardoamaro-dev commented 2 years ago

I have same problem

nedsociety commented 2 years ago

From what @leonardoamaro-dev provided it seems the latest Sandboxie-plus adds some pre-section comments at the beginning of the file:

#
# Sandboxie-Plus configuration file
#

The latest commit (87ec0fa06ca20dfc060d33eee8412ca18fd52fe3) should have fixed this problem.

Advik-B commented 2 years ago

thanks