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

make pypff Python3 compatible #68

Closed
wants to merge 2 commits into from
Closed

Conversation

TimRepke
Copy link

I constantly got errors by setup.py during installation of the package. After these changes (sorry, my IDE messed with the indentation) things worked for me using Python 3.6.6

Essentially, Python 3 handles str/bytes differently, that's all

@joachimmetz
Copy link
Member

Sorry, my IDE messed with the indentation

This makes it hard for me to see what has changed.

I constantly got errors by setup.py during installation of the package

Can you provide me with the error messages?

Also know pypff is work in progress #2

@joachimmetz joachimmetz self-assigned this Jul 27, 2018
@codecov
Copy link

codecov bot commented Jul 27, 2018

Codecov Report

Merging #68 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #68   +/-   ##
=======================================
  Coverage   33.53%   33.53%           
=======================================
  Files          53       53           
  Lines       19454    19454           
=======================================
  Hits         6523     6523           
  Misses      12931    12931

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2e2d1c...f3f65b0. Read the comment docs.

@TimRepke
Copy link
Author

TimRepke commented Jul 27, 2018

Can you provide me with the error messages?

Unfortunately not really. I do have this screenshot though. All the errors were along the same kind.
image

Also know pypff is work in progress #2

I saw that but assumed it stagnated as it's from 2014. Everything else works fine, just the setup script had errors.

This makes it hard for me to see what has changed.

True. Tried to fix it. Not sure if your interpreter is not as strict as mine, but I had to change some indentation, otherwise Python tells me, that the indentation is not all the same.

@joachimmetz
Copy link
Member

joachimmetz commented Jul 27, 2018

Unfortunately not really. I do have this screenshot though. All the errors were along the same kind.

Thanks, that is sufficient.

I saw that but assumed it stagnated as it's from 2014. Everything else works fine, just the setup script had errors.

I have limited time to work on it.

True. Tried to fix it. Not sure if your interpreter is not as strict as mine, but I had to change some indentation, otherwise Python tells me, that the indentation is not all the same.

I'll have a look to see what changed and make the changes manually. For your context setup.py is generated by https://github.com/libyal/libyal/blob/master/scripts/source-generate.py

@joachimmetz
Copy link
Member

joachimmetz commented Jul 28, 2018

@TimRepke thanks for the proposed changes though I'll not directly merge this PR. Since setup.py is generated elsewhere and this PR will need some clean up. I'll incorporate the necessary changes and regenerate setup.py for libpff.

Tracking changes to setup.py in libyal/libyal#63
I'll close this PR once a regenerated setup.py has been committed for libpff.

@joachimmetz
Copy link
Member

Adopted version of proposed changes integrated into fecb691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants