Coder Social home page Coder Social logo

FileNotFoundError: [Errno 2] No such file or directory: '...\\site-packages\\aanalytics2\\eventType_usageLogs.pickle' about adobe-analytics-api-2.0 HOT 16 CLOSED

pitchmuc avatar pitchmuc commented on July 25, 2024
FileNotFoundError: [Errno 2] No such file or directory: '...\\site-packages\\aanalytics2\\eventType_usageLogs.pickle'

from adobe-analytics-api-2.0.

Comments (16)

pitchmuc avatar pitchmuc commented on July 25, 2024 1

Hello,
yes, I noticed and it is already fixed.
please update to version 0.2.4.

For unknown reason, one file was not uploaded to pypi.
https://github.com/pitchmuc/adobe_analytics_api_2.0/blob/master/docs/releases.md

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024 1

I install via git+https://github.com/pitchmuc/adobe_analytics_api_2.0.git@832ada23c9daaec358eb12267aaa096ad7c51925#egg=aanalytics2

BUt that should be your latest commit in Github.

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024 1

Note however that the pickle files are still not downloaded (cannot see them in my aanalytics2 folders).

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024 1

Local Test: Very interesting, this time the pickle files were indeed downloaded to the folders. Strange because that would mean there is no synchronicity between GIthub and pip modules in some cases.

Now for the cloud test...

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024 1

"I am not sure why you couldn't with your pip command."
I never used a pip command. I always did it via requirements.txt.

Cloud test also successful! :)

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024 1

Thanks for letting me know.
As a note:
Normally for major fix (when there is something broken) I tend to do a quick release on pypi.
It may be then the preferred default method.
For other elements (adding new endpoints, etc..) I may be slower and then you may want to re-use the pip git+https...

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024

Thanks, but still does not work.

ERROR:root:Fatal Error in xxx.py: [Errno 2] No such file or directory: 'D:\xxx\venv2\lib\site-packages\aanalytics2\eventType_usageLogs.pickle'

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

"Interesting", your folder after installation should looks like this.
You may are missing the pickle files.
image

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

Downloading the file from pypi, I can confirm that the file are in the wheel installation...
image

Source : https://pypi.org/project/aanalytics2/#files

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024

are these pickle files a standard everywhere?

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

They are files storing information to help with the use of the module.
Basically, encapsulating the documentation references as dataframe.
Example:
image

or
image

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

@loldenburg Can you try again with the latest commit (71384e7) ?
I have made modification and added a MANIFEST.IN file to include the data.
So it should work (you should have the files), if not I have put safeguard so it doesn't break anymore.
You just won't have the references I have provided directly in the python module.

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024

wonderful, that fixed it! THANKS!

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

OK... they are in the repo as well...
It seems that you do not pick them for some reason.

Is there a specific reason for not using pip install aanalytics2 --upgrade ?

from adobe-analytics-api-2.0.

loldenburg avatar loldenburg commented on July 25, 2024

In Google Cloud Repositories, you specify the module dependencies in a requirements.txt file, so there is no pip.
But in that file, you can simply do
aanalytics2==0.2.4

I think the fact that I include your lib via Github is still from the time when your library did not support pip, it is also needed to get library versions or forks thereof which were not officially released (yet), e.g. to work around issues or test sth befor releasing it. Most importantly, it is probably one of those "never touch a running system" as every change I make usually breaks sth somewhere in the many scripts that already run on your wrapper (thanks!).

As long as the pip release version is avaible and stable, I think I could switch to pip for this library as well.
Will try.

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

I also tested your way of installing it and it downloaded the files as well.
I am not sure why you couldn't with your pip command.
As you said, it can be a cache issue that you were still retrieveing old setup.

from adobe-analytics-api-2.0.

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.