2.0.6 import does not work on macOS14 sonoma

Asked by Yoshi Kamino

I tried to migrate my scripts from macOS 12 to macOS 14.
On macOS 12, I used Sikulix 2.0.5 and now I use 2.0.6 on macOS 14.

When I check script, it stop at importing module which worked on 2.0.5.
I tried to check other post and try to fix it, but not work.

Can anybody check where is wrong?

=========

logfolder.py

=========

import shutil
import os
import os.path
import datetime

from sikuli import *
use()

def mklogfolderlogout():
    now = datetime.datetime.now()
    new_dir_path = 'screenshots/logout/' + now.strftime('%Y%m%d_%H%M%S')
    os.makedirs(new_dir_path)
    return(new_dir_path)

def mklogfolderlogin():
    now = datetime.datetime.now()
    new_dir_path = 'screenshots/login/' + now.strftime('%Y%m%d_%H%M%S')
    os.makedirs(new_dir_path)
    return(new_dir_path)
=============

UItest.py

============
import datetime
import os

import sys
sys.path.append("\logfolder.sikuli")
import logfolder

#import sys
#sys.path.append(".\check_signin_status")
#import check_signin_status

import sys
sys.path.append(".\account_screen")
import account_screen

logpath = logfolder.mklogfolderlogout()
print(logpath)
wait(3)

launch_MF.launch_mf(logpath)
wait(3)

=======

From UItest.py, I try to call logfolder.py's code.
but It stop at the [import logfolder] part.

Error message is

[error] script [ UITest ] stopped with error in line 14
[error] ImportError ( No module named logfolder )
[error] --- Traceback --- error source first
line: module ( function ) statement
14: main ( <module> ) import logfolder
[error] --- Traceback --- end --------------

Please help....

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

to be checked

Revision history for this message
Chetan (cshamdas) said :
#3

on a side question.. 2.0.6 is not yet rleased or is it avialable?

Revision history for this message
Yoshi Kamino (ykamino-morisawa) said :
#4

Chetan
It is not stabled version, but exist and can downlaod it.

I wished that it works on future version and stabled version of 2.0.6 (or farther version) comes out soon.

Can you help with this problem?

Provide an answer of your own, or ask Yoshi Kamino for more information if necessary.

To post a message you must log in.