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

Unable to load sample data #808

Closed
forestlzj opened this issue Nov 12, 2020 · 3 comments
Closed

Unable to load sample data #808

forestlzj opened this issue Nov 12, 2020 · 3 comments
Labels
status:completed Issue is completed and on master type:bug An unexpected problem or unintended behavior

Comments

@forestlzj
Copy link

forestlzj commented Nov 12, 2020

Expected Behavior

Sample data should be loaded successfully

Current Behavior

I am following the guideline https://github.com/amundsen-io/amundsen/blob/master/docs/installation.md , docker containers are up. when loading the sample data after with step:

$ python3 -m venv venv
 $ source venv/bin/activate  
 $ pip3 install -r requirements.txt
 $ python3 setup.py install
 $ python3 example/scripts/sample_data_loader.py

It raised error:

 python3 example/scripts/sample_data_loader.py

Traceback (most recent call last):
  File "example/scripts/sample_data_loader.py", line 285, in <module>
    'databuilder.models.table_stats.TableColumnStats')
  File "example/scripts/sample_data_loader.py", line 115, in run_csv_job
    publisher=Neo4jCsvPublisher()).launch()
  File "/home/app/amundsen/amundsendatabuilder/venv/lib64/python3.6/site-packages/amundsen_databuilder-4.0.3-py3.6.egg/databuilder/job/job.py", line 77, in launch
  File "/home/app/amundsen/amundsendatabuilder/venv/lib64/python3.6/site-packages/amundsen_databuilder-4.0.3-py3.6.egg/databuilder/job/job.py", line 67, in launch
  File "/home/app/amundsen/amundsendatabuilder/venv/lib64/python3.6/site-packages/amundsen_databuilder-4.0.3-py3.6.egg/databuilder/task/task.py", line 65, in run
  File "/home/app/amundsen/amundsendatabuilder/venv/lib64/python3.6/site-packages/amundsen_databuilder-4.0.3-py3.6.egg/databuilder/loader/file_system_neo4j_csv_loader.py", line 119, in load
  File "/usr/lib64/python3.6/csv.py", line 155, in writerow
    return self.writer.writerow(self._dict_to_list(rowdict))
  File "/usr/lib64/python3.6/csv.py", line 151, in _dict_to_list
    + ", ".join([repr(x) for x in wrong_fields]))
ValueError: dict contains fields not in fieldnames: 'stat_val'

How to fix it?

Possible Solution

Steps to Reproduce

Screenshots (if appropriate)

Context

Your Environment

  • Amunsen version used: current master version
  • Data warehouse stores:
  • Deployment (k8s or native):
    Docker version 19.03.13, build 4484c46d9d
  • Link to your fork or repository:
@lxlguy
Copy link

lxlguy commented Nov 12, 2020

same issue as #803?
I realised i was not on master branch when i cloned the project and switching to master solved the issue.

@feng-tao
Copy link
Member

the issue should be fixed in latest master. Please let us know if you still see the issue and feel free to reopen the issue.

@forestlzj
Copy link
Author

fixed after getting the master

dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
…mundsen-io#808)

Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.1.0 to 8.2.2.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](babel/babel-loader@v8.1.0...v8.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
feng-tao pushed a commit that referenced this issue May 7, 2021
)

Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.1.0 to 8.2.2.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](babel/babel-loader@v8.1.0...v8.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zacr pushed a commit to SaltIO/amundsen that referenced this issue May 13, 2022
…mundsen-io#808)

Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.1.0 to 8.2.2.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](babel/babel-loader@v8.1.0...v8.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this issue Jun 30, 2022
…mundsen-io#808)

Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.1.0 to 8.2.2.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](babel/babel-loader@v8.1.0...v8.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
@Golodhros Golodhros added the status:completed Issue is completed and on master label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:completed Issue is completed and on master type:bug An unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants