Skip to content

Running this prime.py script  #27

@core022

Description

@core022

I'm running into errors running this python script located here https://github.com/PacktPublishing/Artificial-Intelligence-with-Python/blob/master/Chapter%2006/code/prime.py

I'm also using this python logpy script found here https://github.com/MHordecki/LogPy

This is the error i receive when I try to run it. Please see below. Any suggestions on what I can be doing wrong. I'm new to python coding.

Traceback (most recent call last):
File "C:\Users\user022\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.11\prime.py", line 2, in
import logpy.core as lc
File "C:\Users\user022\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.11\logpy.py", line 11, in
from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' (C:\Users\user022\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.11\collections_init_.py)

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