Post

Replies

Boosts

Views

Activity

Xcode 13 doesn't stay paused on breakpoint
I'm on Xcode 13 GM (13A233) and I'm noticing that it won't stay paused when it hits a breakpoint. It stops, but about a minute later it just resumes. Is there a new default setting that might cause this? I don't see anything relevant in "Behaviors," but maybe I'm missing something. Has anybody else encountered this issue? The only unusual thing about my project is that I am calling Python from it, using PythonKit. But this breakpoint pause issue isn't isolated to code involving PythonKit. I've tried all the usual "fixes"—i.e., clean build, delete derived data, relaunch, etc. The app is just a simple SwiftUI app for macOS. Any thoughts appreciated.
2
0
1.4k
Oct ’21
PythonKit error loading modules
I've been trying to get some PythonKit code running on Ubuntu and having a terrible time. The issue is coming up when Python tries to load from packages/modules called by a script. Code I'm able to run from Xcode on macOS, calling into PythonKit, doesn't run in Vapor. The odd thing is the error: iPythonKit/Python.swift:674: Fatal error: 'try!' expression unexpectedly raised an error: Python exception: ('invalid syntax', ('/home/james/swift/vapor/SpliqsAPI/Sources/SpliqsLib/SpliqsML/core/helper_functions.py', 13, 26, 'def get_model_config(args: ModelDataArguments):\n')) This seems to suggest that it's not parsing the module file itself properly—i.e., seeing 'invalid syntax' just because the text file has a carriage return??? Any thoughts what might be going on? I realize this may specifically be a Vapor problem, but it’s such a particular error that I thought someone might have an idea about what’s going on.
0
0
542
Sep ’21
Xcode 13 doesn't stay paused on breakpoint
I'm on Xcode 13 GM (13A233) and I'm noticing that it won't stay paused when it hits a breakpoint. It stops, but about a minute later it just resumes. Is there a new default setting that might cause this? I don't see anything relevant in "Behaviors," but maybe I'm missing something. Has anybody else encountered this issue? The only unusual thing about my project is that I am calling Python from it, using PythonKit. But this breakpoint pause issue isn't isolated to code involving PythonKit. I've tried all the usual "fixes"—i.e., clean build, delete derived data, relaunch, etc. The app is just a simple SwiftUI app for macOS. Any thoughts appreciated.
Replies
2
Boosts
0
Views
1.4k
Activity
Oct ’21
PythonKit error loading modules
I've been trying to get some PythonKit code running on Ubuntu and having a terrible time. The issue is coming up when Python tries to load from packages/modules called by a script. Code I'm able to run from Xcode on macOS, calling into PythonKit, doesn't run in Vapor. The odd thing is the error: iPythonKit/Python.swift:674: Fatal error: 'try!' expression unexpectedly raised an error: Python exception: ('invalid syntax', ('/home/james/swift/vapor/SpliqsAPI/Sources/SpliqsLib/SpliqsML/core/helper_functions.py', 13, 26, 'def get_model_config(args: ModelDataArguments):\n')) This seems to suggest that it's not parsing the module file itself properly—i.e., seeing 'invalid syntax' just because the text file has a carriage return??? Any thoughts what might be going on? I realize this may specifically be a Vapor problem, but it’s such a particular error that I thought someone might have an idea about what’s going on.
Replies
0
Boosts
0
Views
542
Activity
Sep ’21