mattsta / icli

interactive brokers ibkr api command line interface cli giving you the fastest way to lose all your money
Other
84 stars 19 forks source link

i am getting this error, i already tried using CMD and Powershell also on ADMIN mode #8

Closed MethAddicted closed 3 months ago

MethAddicted commented 3 months ago

Traceback (most recent call last): File "", line 1, in File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64qbz5n2kfra8p0\Lib\importlib__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "C:\Users\mohit\icli\icli__main.py", line 7, in import icli.cli as cli File "C:\Users\mohit\icli\icli\cli.py", line 102, in logging.basicConfig( File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64qbz5n2kfra8p0\Lib\logging__init.py", line 2125, in basicConfig h = FileHandler(filename, mode, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64qbz5n2kfra8p0\Lib\logging__init.py", line 1231, in init StreamHandler.init__(self, self._open()) ^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64qbz5n2kfra8p0\Lib\logging__init__.py", line 1263, in _open return open_func(self.baseFilename, self.mode, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument: 'C:\Users\mohit\icli\runlogs\icli-id=0-2024-03-21 12:49:33.460926-04:00-ibkr.log'

mattsta commented 3 months ago

Yeah, the log file filenames have special characters Windows may not like. Works fine on macOS and Linux platforms at least.

MethAddicted commented 3 months ago

Yeah, the log file filenames have special characters Windows may not like. Works fine on macOS and Linux platforms at least.

i fixed it by modifying the logger file, basically windows doesnt like using ":" in file names