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

Issues with installing rdflib #1760

Closed
SubaSiva95 opened this issue Mar 15, 2022 · 4 comments · Fixed by #1761
Closed

Issues with installing rdflib #1760

SubaSiva95 opened this issue Mar 15, 2022 · 4 comments · Fixed by #1761

Comments

@SubaSiva95
Copy link

Hi, I am trying to install rdflib through pip to integrate with the dynamo platform. But, I am getting an error message,

"Warning: AttributeError : ‘NoneType’ object has no attribute ‘isatty’ [’ File “”, line 4, in \n’, ’ File “----------------\rdflib\init.py”, line 99, in \n and sys.stderr.isatty()\n’]".

The "init.py" is one of the default files existing within the rdflib folder.

Could anyone help me to resolve this issue?
Thanks

@eggplants
Copy link
Contributor

Related issue and its fix:
tornadoweb/tornado#920
tornadoweb/tornado@689d9c8

@aucampia
Copy link
Member

aucampia commented Mar 15, 2022

Hi, I am trying to install rdflib through pip to integrate with the dynamo platform. But, I am getting an error message,

"Warning: AttributeError : ‘NoneType’ object has no attribute ‘isatty’ [’ File “”, line 4, in \n’, ’ File “----------------\rdflib\init.py”, line 99, in \n and sys.stderr.isatty()\n’]".

The "init.py" is one of the default files existing within the rdflib folder.

Could anyone help me to resolve this issue? Thanks

Please share the command you use to install it and some details of your environment. Technically, according to python docs sys.stderr should not be None, so I suspect there is something wrong with your environment, thought he code that is causing this error should likely be removed.

@SubaSiva95
Copy link
Author

I am using dynamo 2.10 (which is built-in with Revit 2022). I followed "https://github.com/DynamoDS/Dynamo/wiki/Customizing-Dynamo's-Python-3-installation" and installed rdflib through pip.

Based on the previous comments, I added a line in the following section of the (init.py) file.

if (
not hasattr(main, "file")
and sys.stdout is not None
and hasattr(sys.stderr, 'isatty')
and sys.stderr.isatty()
):

Now, I am free from errors, but unfortunately, the results that I get from the script is always null.

@semanticmachinelearning

Hi I use pycharm and pip to install rdflib but waiting for the whole day still not able to accessing it. I tested on Jupiter notebook, the same thing. I believe there are something wrong to receive the installation package at the moment.

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

Successfully merging a pull request may close this issue.

4 participants