You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "Zainab-Saad (via GitHub)" <gi...@apache.org> on 2023/05/01 17:15:52 UTC

[GitHub] [age] Zainab-Saad opened a new issue, #886: Import statement gives error

Zainab-Saad opened a new issue, #886:
URL: https://github.com/apache/age/issues/886

   While testing the samples for python driver in apache-age-note.ipynb here,
   ```
   import age
   from age.gen.ageParser import *
   GRAPH_NAME = "test_graph"
   DSN = "host=172.17.0.2 port=5432 dbname=postgres user=postgres password=agens"
   ag = age.connect(graph=GRAPH_NAME, dsn=DSN)
   ```
   The statement `from age.gen.agePareser import *` gives error 'ModuleNotFoundError: No module named 'age.gen.ageParser''.
   
   I have tested the sample cells without this statement and everything works fine. Is there a reason this statement is here or is it by mistake?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] M4rcxs commented on issue #886: Import statement gives error

Posted by "M4rcxs (via GitHub)" <gi...@apache.org>.
M4rcxs commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1531993481

   The module `age.gen.ageParser` has been named to `age.gen.AgtypeParser`, the `age.gen.ageParser` is an old version of it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] humzakt commented on issue #886: Import statement gives error

Posted by "humzakt (via GitHub)" <gi...@apache.org>.
humzakt commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1533431646

   You should replace `from age.gen.ageParser import *` with `age.gen.AgtypeParser`. I believe this will fix your errors.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] FahadZaheerfzr commented on issue #886: Import statement gives error

Posted by "FahadZaheerfzr (via GitHub)" <gi...@apache.org>.
FahadZaheerfzr commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1530055414

   I just looked into the code and in this directory, I couldn't find any such file or module. It's also possible that the module was only necessary for earlier versions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] Zainab-Saad closed issue #886: Import statement gives error

Posted by "Zainab-Saad (via GitHub)" <gi...@apache.org>.
Zainab-Saad closed issue #886: Import statement gives error
URL: https://github.com/apache/age/issues/886


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] titoausten commented on issue #886: Import statement gives error

Posted by "titoausten (via GitHub)" <gi...@apache.org>.
titoausten commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1530111268

   It was renamed. Instead of that use ` AgtypeParser`. I guess it hasn't been updated in the notebook.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] hammadsaleemm commented on issue #886: Import statement gives error

Posted by "hammadsaleemm (via GitHub)" <gi...@apache.org>.
hammadsaleemm commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1537363434

   The issue reason is basically simple, it seems that the module 'age.gen.ageParser' is not installed or cannot be found in your environment. This module is used to parse the AgeQL language, which is the query language used by Apache AGE. As mentioned by others, this has been changed so use now `age.gen.AgtypeParser`. Also check the PR#900 As fahad mentioned.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] FahadZaheerfzr commented on issue #886: Import statement gives error

Posted by "FahadZaheerfzr (via GitHub)" <gi...@apache.org>.
FahadZaheerfzr commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1537197790

   This issue is resolved in Pull Request # 900
   Here is the link to Pull Request: https://github.com/apache/age/pull/900


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] WendelLana commented on issue #886: Import statement gives error

Posted by "WendelLana (via GitHub)" <gi...@apache.org>.
WendelLana commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1530078100

   I believe this module was renamed from `age.gen.AgeParser` to `age.gen.AgtypeParser` in PR #150, so this might need a fix


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] titoausten commented on issue #886: Import statement gives error

Posted by "titoausten (via GitHub)" <gi...@apache.org>.
titoausten commented on issue #886:
URL: https://github.com/apache/age/issues/886#issuecomment-1530013949

   Yes, Instead of that use `import AgtypeParser`. I guess it hasn't been updated in the notebook.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org