Skip to content

'Data.Map.fromList' throws error #180

@suesslin

Description

@suesslin

I've tried to install tensorflow v0.1.0.2, but it throws the following errors.
I'm on macOS High Sierra and have installed all the tools mentioned in the script.

Any ideas?

Warning: The package list for 'hackage.haskell.org' is 56 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Configuring tensorflow-proto-0.1.0.0...
Building tensorflow-proto-0.1.0.0...
Failed to install tensorflow-proto-0.1.0.0
Build log ( /Users/lukas/.cabal/logs/ghc-8.2.2/tensorflow-proto-0.1.0.0-D7saAu502llB6QqUq2V7pm.log ):
cabal: Entering directory '/var/folders/2n/wsfq37nn2dv23rx8wcsn9d6m0000gn/T/cabal-tmp-49665/tensorflow-proto-0.1.0.0'
[1 of 1] Compiling Main             ( /var/folders/2n/wsfq37nn2dv23rx8wcsn9d6m0000gn/T/cabal-tmp-49665/tensorflow-proto-0.1.0.0/dist/setup/setup.hs, /var/folders/2n/wsfq37nn2dv23rx8wcsn9d6m0000gn/T/cabal-tmp-49665/tensorflow-proto-0.1.0.0/dist/setup/Main.o )
Linking /var/folders/2n/wsfq37nn2dv23rx8wcsn9d6m0000gn/T/cabal-tmp-49665/tensorflow-proto-0.1.0.0/dist/setup/setup ...
Configuring tensorflow-proto-0.1.0.0...
Preprocessing library for tensorflow-proto-0.1.0.0..
Building library for tensorflow-proto-0.1.0.0..
[ 1 of 18] Compiling Proto.Tensorflow.Core.Framework.AllocationDescription ( dist/build/autogen/Proto/Tensorflow/Core/Framework/AllocationDescription.hs, dist/build/Proto/Tensorflow/Core/Framework/AllocationDescription.o )

dist/build/autogen/Proto/Tensorflow/Core/Framework/AllocationDescription.hs:159:15: error:
    • Couldn't match expected type ‘Data.ProtoLens.MessageDescriptor
                                      AllocationDescription’
                  with actual type ‘Data.Map.Map
                                      Prelude.String
                                      (Data.ProtoLens.FieldDescriptor AllocationDescription)
                                    -> Data.ProtoLens.MessageDescriptor AllocationDescription’
    • Probable cause: ‘Data.ProtoLens.MessageDescriptor’ is applied to too few arguments
      In the expression:
        Data.ProtoLens.MessageDescriptor
          (Data.Map.fromList
             [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
              (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
              (Data.ProtoLens.Tag 3, allocatorName__field_descriptor),
              (Data.ProtoLens.Tag 4, allocationId__field_descriptor), ....])
          (Data.Map.fromList
             [("requested_bytes", requestedBytes__field_descriptor),
              ("allocated_bytes", allocatedBytes__field_descriptor),
              ("allocator_name", allocatorName__field_descriptor),
              ("allocation_id", allocationId__field_descriptor), ....])
      In the expression:
        let
          requestedBytes__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "requested_bytes"
                (Data.ProtoLens.Int64Field ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional requestedBytes) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          allocatedBytes__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "allocated_bytes"
                (Data.ProtoLens.Int64Field ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional allocatedBytes) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          allocatorName__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "allocator_name"
                (Data.ProtoLens.StringField ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional allocatorName) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          ....
        in
          Data.ProtoLens.MessageDescriptor
            (Data.Map.fromList
               [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
                (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
                (Data.ProtoLens.Tag 3, allocatorName__field_descriptor), ....])
            (Data.Map.fromList
               [("requested_bytes", requestedBytes__field_descriptor),
                ("allocated_bytes", allocatedBytes__field_descriptor),
                ("allocator_name", allocatorName__field_descriptor), ....])
      In an equation for ‘Data.ProtoLens.descriptor’:
          Data.ProtoLens.descriptor
            = let
                requestedBytes__field_descriptor = ...
                allocatedBytes__field_descriptor = ...
                ....
              in
                Data.ProtoLens.MessageDescriptor
                  (Data.Map.fromList
                     [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
                      (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor), ....])
                  (Data.Map.fromList
                     [("requested_bytes", requestedBytes__field_descriptor),
                      ("allocated_bytes", allocatedBytes__field_descriptor), ....])
    |
159 |               Data.ProtoLens.MessageDescriptor
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

dist/build/autogen/Proto/Tensorflow/Core/Framework/AllocationDescription.hs:160:18: error:
    • Couldn't match expected type ‘Data.Text.Text’
                  with actual type ‘Data.Map.Map
                                      Data.ProtoLens.Tag
                                      (Data.ProtoLens.FieldDescriptor AllocationDescription)’
    • In the first argument of ‘Data.ProtoLens.MessageDescriptor’, namely
        ‘(Data.Map.fromList
            [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
             (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
             (Data.ProtoLens.Tag 3, allocatorName__field_descriptor),
             (Data.ProtoLens.Tag 4, allocationId__field_descriptor), ....])’
      In the expression:
        Data.ProtoLens.MessageDescriptor
          (Data.Map.fromList
             [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
              (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
              (Data.ProtoLens.Tag 3, allocatorName__field_descriptor),
              (Data.ProtoLens.Tag 4, allocationId__field_descriptor), ....])
          (Data.Map.fromList
             [("requested_bytes", requestedBytes__field_descriptor),
              ("allocated_bytes", allocatedBytes__field_descriptor),
              ("allocator_name", allocatorName__field_descriptor),
              ("allocation_id", allocationId__field_descriptor), ....])
      In the expression:
        let
          requestedBytes__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "requested_bytes"
                (Data.ProtoLens.Int64Field ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional requestedBytes) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          allocatedBytes__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "allocated_bytes"
                (Data.ProtoLens.Int64Field ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional allocatedBytes) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          allocatorName__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "allocator_name"
                (Data.ProtoLens.StringField ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional allocatorName) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          ....
        in
          Data.ProtoLens.MessageDescriptor
            (Data.Map.fromList
               [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
                (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
                (Data.ProtoLens.Tag 3, allocatorName__field_descriptor), ....])
            (Data.Map.fromList
               [("requested_bytes", requestedBytes__field_descriptor),
                ("allocated_bytes", allocatedBytes__field_descriptor),
                ("allocator_name", allocatorName__field_descriptor), ....])
    |
160 |                 (Data.Map.fromList
    |                  ^^^^^^^^^^^^^^^^^...

dist/build/autogen/Proto/Tensorflow/Core/Framework/AllocationDescription.hs:167:18: error:
    • Couldn't match type ‘[Prelude.Char]’ with ‘Data.ProtoLens.Tag’
      Expected type: Data.Map.Map
                       Data.ProtoLens.Tag
                       (Data.ProtoLens.FieldDescriptor AllocationDescription)
        Actual type: Data.Map.Map
                       [Prelude.Char]
                       (Data.ProtoLens.FieldDescriptor AllocationDescription)
    • In the second argument of ‘Data.ProtoLens.MessageDescriptor’, namely
        ‘(Data.Map.fromList
            [("requested_bytes", requestedBytes__field_descriptor),
             ("allocated_bytes", allocatedBytes__field_descriptor),
             ("allocator_name", allocatorName__field_descriptor),
             ("allocation_id", allocationId__field_descriptor), ....])’
      In the expression:
        Data.ProtoLens.MessageDescriptor
          (Data.Map.fromList
             [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
              (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
              (Data.ProtoLens.Tag 3, allocatorName__field_descriptor),
              (Data.ProtoLens.Tag 4, allocationId__field_descriptor), ....])
          (Data.Map.fromList
             [("requested_bytes", requestedBytes__field_descriptor),
              ("allocated_bytes", allocatedBytes__field_descriptor),
              ("allocator_name", allocatorName__field_descriptor),
              ("allocation_id", allocationId__field_descriptor), ....])
      In the expression:
        let
          requestedBytes__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "requested_bytes"
                (Data.ProtoLens.Int64Field ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional requestedBytes) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          allocatedBytes__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "allocated_bytes"
                (Data.ProtoLens.Int64Field ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional allocatedBytes) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          allocatorName__field_descriptor
            = Data.ProtoLens.FieldDescriptor
                "allocator_name"
                (Data.ProtoLens.StringField ::
                   Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
                (Data.ProtoLens.PlainField
                   Data.ProtoLens.Optional allocatorName) ::
                Data.ProtoLens.FieldDescriptor AllocationDescription
          ....
        in
          Data.ProtoLens.MessageDescriptor
            (Data.Map.fromList
               [(Data.ProtoLens.Tag 1, requestedBytes__field_descriptor),
                (Data.ProtoLens.Tag 2, allocatedBytes__field_descriptor),
                (Data.ProtoLens.Tag 3, allocatorName__field_descriptor), ....])
            (Data.Map.fromList
               [("requested_bytes", requestedBytes__field_descriptor),
                ("allocated_bytes", allocatedBytes__field_descriptor),
                ("allocator_name", allocatorName__field_descriptor), ....])
    |
167 |                 (Data.Map.fromList
    |                  ^^^^^^^^^^^^^^^^^...
cabal: Leaving directory '/var/folders/2n/wsfq37nn2dv23rx8wcsn9d6m0000gn/T/cabal-tmp-49665/tensorflow-proto-0.1.0.0'
cabal: Error: some packages failed to install:
hs-ml-0.1.0.0-363V9CZ7RT7C3io8MyqwFB depends on hs-ml-0.1.0.0 which failed to
install.
tensorflow-0.1.0.2-7XYTRIMIoHSHYi9V7yt0q0 depends on tensorflow-0.1.0.2 which
failed to install.
tensorflow-proto-0.1.0.0-D7saAu502llB6QqUq2V7pm failed during the building
phase. The exception was:
ExitFailure 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions