Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while running pyscp with example code andd Python 3.11.1 #21

Open
sebamarana opened this issue Feb 18, 2023 · 0 comments
Open

Issue while running pyscp with example code andd Python 3.11.1 #21

sebamarana opened this issue Feb 18, 2023 · 0 comments

Comments

@sebamarana
Copy link

sebamarana commented Feb 18, 2023

Ok so i tried running this example code:

import pyscp

wiki = pyscp.wikidot.Wiki('www.scp-wiki.net')
p = wiki('scp-837')
print(p.title)

But then i get this error, is it because i am using 3.11.1 python version?

Traceback (most recent call last):
  File "W:\Desktop\Codici\Python\SCP\Test2.py", line 1, in <module>
    import pyscp
  File "C:\Users\MyName\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyscp\__init__.py", line 1, in <module>
    from pyscp import core, utils, snapshot, wikidot
  File "C:\Users\MyName\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyscp\core.py", line 34, in <module>   
    import pyscp.utils
  File "C:\Users\MyName\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyscp\utils.py", line 61, in <module>  
    @decorator
     ^^^^^^^^^
  File "C:\Users\MyName\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyscp\utils.py", line 34, in decorator 
    spec = inspect.getargspec(deco)
           ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant