-
Notifications
You must be signed in to change notification settings - Fork 2
remove dependency to ip2asn #31
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
Comments
@romain-fontugne, |
@romain-fontugne |
sure you can work on this. I can help you to query IYP, if you need help for that. The error you have is due to a recent problem with py-radix. You can try to install it from the source, the git repo has a fix: |
yeah i have installed py-radix from link you provided, but after that running the cmd: python3 setup.py build_ext --inplace ""running build_ext |
there is a cython module you have to compile with a C++ compiler. So yes you need that compiler |
While testing the functionality of the project, getting this: |
ah yes sorry, we should update the old configuration files (especially the ones mentioned in the readme). In production we use |
after setting chunk_size value, getting this error: Traceback (most recent call last): |
ig, there is some problem in the code of file: sqlitesaver.py, |
Hi, please try running the project on Linux instead of Windows, as the file paths are configured for a Linux environment. |
but i don't know, how to use linux |
Try WSL |
Here are two courses you can explore. The first is from the Linux Foundation and consists of about 60 hours of course material, covering a wide range of topics related to Linux. The second course is from freeCodeCamp and is approximately 6 hours long. Since you are not yet familiar with the Linux environment, I recommend starting with the second course. It will provide you with a solid overview of Linux, including how to run applications and manage files. After completing the second course, I think you will be able to run this project in a Linux environment, and if you find yourself interested in Linux, you can continue with the first course for a more in-depth understanding. Here are the links to the courses:
|
ok sir |
@dpgiakatos @romain-fontugne I am now using WSL for linux environment, but while deploying the code locally, i am now facing this error: I want to know if this is reason the current code is tricky to deploy? |
Could you please guide me on how to query IYP to get prefix to ASN and prefix to IXP mappings? I’m encountering some difficulty in understanding how to integrate it into the project as a replacement for ip2asn. |
Hi, please install Kafka locally and then define the To obtain the prefix-to-ASN and prefix-to-IXP mappings, we currently use a pickle file, as I observe in the source code. My understanding is that we aim to replace this logic with IYP queries. IYP refers to our Internet Yellow Pages project, and you can refer to the corresponding documentation for guidance on querying the IYP. Here are the Cypher queries to assist you: Prefix to ASN: MATCH (a:AS)-[:ORIGINATE]-(p:Prefix)
RETURN p.prefix, a.asn Prefix to IXP: MATCH (p:Prefix)-[:MANAGED_BY]-(i:IXP)
RETURN p.prefix, i.name |
if, dependancy on ip2asn is causing kafka issue |
and does it require an id password for query IYP? |
The functionality of the code should not be changed. You need to locate the code within the ip2asn that needs to be replaced with the IYP query. From Kafka, you will retrieve the prefix, so you must use it. It is important to understand how the code works before making any changes, as the functionality must remain the same. Therefore, first, try to run the code locally without any errors, and then work on understanding the data. You do not need credentials to log in to the IYP; the username and password are empty. P.S. For Kafka support you can tag the @InternetHealthReport/iij team. |
Sir, I have installed and set up the kafka now and its working, python3 raclette/raclette.py -C conf/asc-start.conf |
The error you are encountering is an import pickle
import bz2
# Create a sample object and save it to a BZ2 file
data = {'key': 'value'}
with bz2.BZ2File('sample_data.bz2', 'wb') as f:
pickle.dump(data, f)
# Read the BZ2 file
with bz2.BZ2File('sample_data.bz2', 'rb') as f:
loaded_data = pickle.load(f)
print(loaded_data) # Should output: {'key': 'value'} |
@InternetHealthReport/iij can you help with the above variable? |
in the data/ folder there is a file 'ixs_202310.jsonl' you can just put |
I'll push a quick fix for that. For the configuration file you are using you shouldn't need kafka |
It should be fixed now. |
hi guys |
This code is currently tricky to deploy because of its dependency to ip2asn. One way to fix this is to use IYP instead.
Steps:
The text was updated successfully, but these errors were encountered: