Giter Club home page Giter Club logo

Comments (16)

dickwolff avatar dickwolff commented on August 17, 2024

Seems to be the same issue as #64. Can you try and run npm install and then run the tool again?

from export-to-ghostfolio.

alex27riva avatar alex27riva commented on August 17, 2024

Seems to be the same issue as #64. Can you try and run npm install and then run the tool again?

Sorry for the duplicate Issue, i ran npm install but still same error

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

As a test, can you run npm install dayjs and then run again? This seemed to have resolved the issue on my machine.

It should update the dayjs dependency from 1.11.10 to 1.11.11.

from export-to-ghostfolio.

alex27riva avatar alex27riva commented on August 17, 2024

As a test, can you run npm install dayjs and then run again? This seemed to have resolved the issue on my machine.

It should update the dayjs dependency from 1.11.10 to 1.11.11.

Same error again.
Dependences list:

➜  Export-To-Ghostfolio git:(main) ✗ npm list            
[email protected] /home/username/Scaricati/Export-To-Ghostfolio
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

Thanks. I do see some mismatches in versions I have locally. Will look into this when I have some time later today.

I think this error is due to my migration from commonjs to esm and there were some import things I had to change.


Edit: Yep, I updated tsx to the latest version (I had 4.7.2, now 4.9.1) and I have the same issue as you do. Will try and find a fix!

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

When you install tsx 4.9.0 manually you can run the tool again. Something broke in tsx 4.9.1. Will push a hard pinned fix now and then look into resolving 4.9.1+

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

Closed by accident. Can you verify if this fix works?

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

Issue is already known at tsx. Fill follow this.

from export-to-ghostfolio.

alex27riva avatar alex27riva commented on August 17, 2024

Closed by accident. Can you verify if this fix works?

The fix works, but I the conversion fails with either degiro or degiro-v2.

> [email protected] start
> tsx ./src/manual.ts "degiro"

[i] Restored 0 ISIN-symbol pairs and 0 symbols from cache..
[i] Processing file using DeGiro converter
[i] NOTE: There is a new version available of the DeGiro converter
[i] The new converter has multiple record parsing improvements and also supports platform fees.
[i] The new converter is currently in beta and we're looking for your feedback!
[i] You can run the beta converter with the command 'npm run start degiro-v2'.
[i] Read CSV file. Start processing..
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8% | ETA 0s | Duration: 2s | 8/93/home/username/Scaricati/Ex9
            if (result.activities[result.activities.length - 1].comment === "txfees") {
                                                                

TypeError: Cannot read properties of undefined (reading 'comment')
    at <anonymous> (/home/username/Scaricati/Export-To-Ghostfolio/src/converters/degiroConverter.ts:1)
➜  Export-To-Ghostfolio git:(main) npm run start degiro-v2

> [email protected] start
> tsx ./src/manual.ts "degiro-v2"

[i] Restored 1 ISIN-symbol pairs and 1 symbols from cache..
[i] Processing file using DeGiro converter (V2 Beta)
[i] NOTE: You are running a converter that is currently in beta.
[i] If you have any issues, please report them on GitHub. Many thanks!
[i] Read CSV file. Start processing..
[d]     Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d] 	Retrieved symbol IE00BK5BQT80.SG from cache!
[d]             getSymbolsByQuery(): No match found when searching by name for NL0010661914. Trying a p.
[d]     getSecurity(): Found 0 matches by ISIN NL0010661914
[d] 	getSecurity(): No match found for symbol not provided, trying by name FUNDSHARE UCITS EUR CASH D
[d]             getSymbolsByQuery(): No match found when searching by name for FUNDSHARE UCITS EUR CASH.
[i] No result found for NL0010661914 with currency EUR! Please add this manually..
[d]             getSymbolsByQuery(): No match found when searching by name for NL0010661914. Trying a p.
[d] 	getSecurity(): Found 0 matches by ISIN NL0010661914
[d] 	getSecurity(): No match found for symbol not provided, trying by name FUNDSHARE UCITS EUR CASH D
████████████████████████████████████████ 100% | ETA 0s | Duration: 1s | 93/93
[i] Processing complete, writing to file..
[i] Wrote data to 'e2g-output/ghostfolio-degiro-v2-20240505132743.json'!
[i] You can now automatically validate the generated file against Ghostfolio. Set GHOSTFOLIO_VALIDATE=true in your environment variables to enable this feature.
[i] You can now automatically import the generated file into Ghostfolio. Set GHOSTFOLIO_IMPORT=true in your environment variables to enable this feature
[i] THIS IS AN EXPERIMENTAL FEATURE!! Use this at your own risk!

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

I haven't put effort in the old DEGIRO converter because I want to replace it with the V2. I can try to fix the old one it but I prefer people move to V2.

It seems (according to the logs), the V2 converter succeeds and outputs a file. What exactly do you mean it fails? Does the V2 output file not import in Ghostfolio?

from export-to-ghostfolio.

alex27riva avatar alex27riva commented on August 17, 2024

I haven't put effort in the old DEGIRO converter because I want to replace it with the V2. I can try to fix the old one it but I prefer people move to V2.

It seems (according to the logs), the V2 converter succeeds and outputs a file. What exactly do you mean it fails? Does the V2 output file not import in Ghostfolio?
I can't import the file to Ghostfolio because a Symbol is missing
Schermata del 2024-05-05 13-51-45

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

Do you perhaps have a clean Ghostfolio setup (without any previous activities)? I had the same issue yesterday when I did a clean install. Whatever symbol I entered, nothing was accepted. I believe I had to do a market sync job before it worked, but I don't recall exactly what I did that made it work.

from export-to-ghostfolio.

alex27riva avatar alex27riva commented on August 17, 2024

Do you perhaps have a clean Ghostfolio setup (without any previous activities)? I had the same issue yesterday when I did a clean install. Whatever symbol I entered, nothing was accepted.

Yes

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

Gotcha, that's a Ghostfolio issue then. @dtslvr Do you have Instructions somewhere on how to do the initial setup with Yahoo symbols?

from export-to-ghostfolio.

dtslvr avatar dtslvr commented on August 17, 2024

Yes

@alex27riva which version of Ghostfolio are you using?

from export-to-ghostfolio.

dickwolff avatar dickwolff commented on August 17, 2024

Closing due to inactivity, and because it's not an issue with export to Ghostfolio.

from export-to-ghostfolio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.