Error: no such module 'PythonKit'

Hi, I'm just starting out with swift and trying to use PythonKit.

I've modified Package.swift file and was able to build it without errors (although there were several warnings like /home/tushar/dev/swiftDSP/.build/x86_64-unknown-linux-gnu/debug/ warning: umbrella directory '/home/tushar/dev/swiftDSP/.build/checkouts/swift-zip/Sources/Cminizip/include' not found umbrella "/home/tushar/dev/swiftDSP/.build/checkouts/swift-zip/Sources/Cminizip/include")

// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "swiftDSP",
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
            name: "swiftDSP",
            targets: ["swiftDSP"]),
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        .package(url: "", .branch("master")),
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages this package depends on.
            name: "swiftDSP",
            dependencies: ["PythonKit"]),
            name: "swiftDSPTests",
            dependencies: ["swiftDSP"]),

But when I try to import PythonKit I get an import error. I'm not sure what I'm doing wrong here.

P.S. I'm working on Ubuntu 20.04


Terms of Service

Privacy Policy

Cookie Policy