Giter Site home page Giter Site logo

Comments (8)

HandyGuySoftware avatar HandyGuySoftware commented on June 5, 2024 1

OK, pushed an update. Also fixed #38 . Give it a try. (Fingers crossed)

from dupreport.

HandyGuySoftware avatar HandyGuySoftware commented on June 5, 2024

What version of Python are you running?

from dupreport.

mr-flibble avatar mr-flibble commented on June 5, 2024

Hello, I use Python 3.2.5.1 on Windows - from this portable package http://portablepython.com/wiki/PortablePython3.2.5.1/

But if you think that may cause problem, I can try it to another version

from dupreport.

HandyGuySoftware avatar HandyGuySoftware commented on June 5, 2024

I am suspecting that Portable Python does not have the full datetime libraries that regular Python has. dupReport 2.1 uses a more extensive library set than 2.0 did, which is why it requires Python 3 to run. It also appears that Portable Python is no longer under development, which would explain why it is still on Python Version 2. Would it be possible to install a full current Python 3 distribution?

from dupreport.

mr-flibble avatar mr-flibble commented on June 5, 2024

Thanks and sorry - from the beginning I was afraid I could use the problem version.

Now I tried it on two Windows PC, one with latest installed Python 3.6.3

And second PC with WinPython 3.4.4.2 (portable python still in development)

This is error message from Python 3.6.3

C:\Users\kratkoruky\Desktop\python>dupReport.py -i
Traceback (most recent call last):
  File "C:\Users\kratkoruky\Desktop\python\dupReport.py", line 182, in <module>
    globs.inServer.processMessage(nxtMsg)
  File "C:\Users\kratkoruky\Desktop\python\dremail.py", line 425, in processMessage
    globs.log.write(3, 'endTimeStamp=[{}] beginTimeStamp=[{}]'.format(drdatetime.fromTimestamp(dateParts['endTimestamp']
datetime.fromTimestamp(dateParts['beginTimestamp'])))
  File "C:\Users\kratkoruky\Desktop\python\drdatetime.py", line 131, in fromTimestamp
    dt = datetime.datetime.fromtimestamp(ts)
TypeError: an integer is required (got type str)

And from WinPython

PS D:\WinPython-64bit-3.4.4.2\python-3.4.4.amd64> .\python.exe D:\dupReport-2.1.0_Beta\dupReport-2.1.0_Beta\dupReport.py
 -i
Traceback (most recent call last):
  File "D:\dupReport-2.1.0_Beta\dupReport-2.1.0_Beta\dupReport.py", line 187, in <module>
    globs.inServer.processMessage(nxtMsg)
  File "D:\dupReport-2.1.0_Beta\dupReport-2.1.0_Beta\dremail.py", line 425, in processMessage
    globs.log.write(3, 'endTimeStamp=[{}] beginTimeStamp=[{}]'.format(drdatetime.fromTimestamp(dateParts['endTimestamp']), drdatetime.fromTimestamp(dateParts['beginTimestamp'])))
  File "D:\dupReport-2.1.0_Beta\dupReport-2.1.0_Beta\drdatetime.py", line 131, in fromTimestamp
    dt = datetime.datetime.fromtimestamp(ts)
TypeError: a float is required
PS D:\WinPython-64bit-3.4.4.2\python-3.4.4.amd64>

End of WinPython log:

]

Warnings: []

Errors: []



, Failed: .*, 0, 1
drdatetime.fromTimestamp(1512214115, DD.MM.YYYY, HH:MM:SS)

from dupreport.

dcurrey avatar dcurrey commented on June 5, 2024

Keep runing into the TypeError: a float is required myself.

Should dt = datetime.datetime.fromtimestamp(float(ts))?

from dupreport.

HandyGuySoftware avatar HandyGuySoftware commented on June 5, 2024

Yeah, just seeing that now. Not sure why it works here but tripping you guys up. Give me a minute...

from dupreport.

mr-flibble avatar mr-flibble commented on June 5, 2024

THANKS ! :-)

It works.

WinPython nad Python 3.6.3 they no longer have a problem
On the other hand PortablePython3.2.5.1 has still library problem ( #36 (comment) ), so he is not compatible with 2.1.0 beta.

I'm switching to WinPython - thanks again.

from dupreport.

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.